From 2e66898bec4696c38efe6bebd8e4af57089fe624 Mon Sep 17 00:00:00 2001 From: Vignesh Venkat Date: Wed, 20 Sep 2017 11:51:09 -0700 Subject: [PATCH] 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. --- homeassistant/components/abode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/abode.py b/homeassistant/components/abode.py index ca089a3a165..73c4756477b 100644 --- a/homeassistant/components/abode.py +++ b/homeassistant/components/abode.py @@ -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):