Skip to content

Commit

Permalink
abode: Set device_type in state attributes (#9515)
Browse files Browse the repository at this point in the history
This gets displayed when clicking on the binary sensors. It is
useful to distinguish different devices with the same name (e.g.
the room name) but different types.
  • Loading branch information
vickyg3 authored and pvizeli committed Sep 20, 2017
1 parent 2531d54 commit 2e66898
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/abode.py
Expand Up @@ -297,7 +297,8 @@ def device_state_attributes(self):
ATTR_ATTRIBUTION: CONF_ATTRIBUTION,
'device_id': self._device.device_id,
'battery_low': self._device.battery_low,
'no_response': self._device.no_response
'no_response': self._device.no_response,
'device_type': self._device.type
}

def _update_callback(self, device):
Expand Down

0 comments on commit 2e66898

Please sign in to comment.