no more duplicate sensors

This commit is contained in:
Per Sandstrom committed 2015-08-16 08:03:19 +02:00
1 parent a0f2f3814b
commit e37869616b
2 files changed
+4 -8

No files matched your search

+1 -3
View File
@@ -12,8 +12,6 @@ from homeassistant.const import TEMP_CELCIUS
_LOGGER = logging.getLogger(__name__)
DEPENDENCIES = ['verisure']
def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the Verisure platform. """
@@ -79,7 +77,7 @@ class VerisureAlarmDevice(Entity):
@property
def state(self):
""" Returns the state of the device. """
return verisure.STATUS[self._device][self._id].status
return verisure.STATUS[self._device][self._id].label
def update(self):
verisure.update()