Skip to content

Commit

Permalink
Add attributes
Browse files Browse the repository at this point in the history
Add firmware and config version attributes
  • Loading branch information
ehendrix23 committed Dec 29, 2018
1 parent e420159 commit 0a55797
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion homeassistant/components/remote/harmony.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
_LOGGER = logging.getLogger(__name__)

ATTR_CURRENT_ACTIVITY = 'current_activity'
ATTR_CONFIG_VERSION = 'config_version'
ATTR_FIRMWARE_VERSION = 'firmware_version'

DEFAULT_PORT = 8088
DEVICES = []
Expand Down Expand Up @@ -197,7 +199,11 @@ def should_poll(self):
@property
def device_state_attributes(self):
"""Add platform specific attributes."""
return {ATTR_CURRENT_ACTIVITY: self._current_activity}
return {
ATTR_CURRENT_ACTIVITY: self._current_activity,
ATTR_FIRMWARE_VERSION: self._client.fw_version,
ATTR_CONFIG_VERSION: self._client.hub_config.config_version
}

@property
def is_on(self):
Expand Down

0 comments on commit 0a55797

Please sign in to comment.