New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add firmware and config version attributes to harmony component #19647
Conversation
Use aioharmony to interact with Harmony hub. Due to this following improvements: -) Setting of available state for entity -) Automatic config update if configuration changes (including updating file containing config) -) Allow using of device name instead of number -) When sending command with repeat, nothing else will be able to put a IR command in between
Updated requirements
Small version bump increase for aioharmony
Add firmware and config version attributes
0a55797
to
c755231
Compare
return {'current_activity': self._current_activity} | ||
return { | ||
ATTR_CURRENT_ACTIVITY: self._current_activity, | ||
ATTR_FIRMWARE_VERSION: self._client.fw_version, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Static info like firmware version and config version should not be part of state attributes. State attributes are meant for dynamic info related to the state of the entity.
Device info can hold this kind of static info. But it requires config entry.
https://developers.home-assistant.io/docs/en/device_registry_index.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, Ok. I thought in having it in there due to our latest issues around firmware :-)
Config entry is something I wanna move this platform to, but not there yet. Will cancel out this PR. :-)
Description:
Add attributes the following 2 attributes to the harmony component:
firmware_version: Version of the Harmony HUB version
config_version: Configuration version of the Harmony HUB
This PR depends on PR #19595 to be merged first.
Checklist:
tox
. Your PR cannot be merged unless tests pass