mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
abode: Set device_type in state attributes (#9515)
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.
This commit is contained in:
parent
2531d54515
commit
2e66898bec
@ -297,7 +297,8 @@ class AbodeDevice(Entity):
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user