Skip to content
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

Closed
wants to merge 10 commits into from

Conversation

ehendrix23
Copy link
Contributor

@ehendrix23 ehendrix23 commented Dec 29, 2018

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:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

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
return {'current_activity': self._current_activity}
return {
ATTR_CURRENT_ACTIVITY: self._current_activity,
ATTR_FIRMWARE_VERSION: self._client.fw_version,
Copy link
Member

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

Copy link
Contributor Author

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. :-)

@ehendrix23 ehendrix23 closed this Dec 30, 2018
@ghost ghost removed the in progress label Dec 30, 2018
@ehendrix23 ehendrix23 deleted the Add-attributes branch December 30, 2018 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants