Bugfix ZigBee / Move from eventbus to dispatcher (#6333)

* Bugfix ZigBee / Move from eventbus to dispatcher

* fix lint
This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2017-03-01 08:57:23 -08:00
1 parent 64cb3390ea
commit 67f3910f03
3 files changed
+21 -31

No files matched your search

+1 -3
View File
@@ -44,7 +44,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
_LOGGER.exception("Unknown ZigBee sensor type: %s", typ)
return
add_devices([sensor_class(hass, config_class(config))])
add_devices([sensor_class(hass, config_class(config))], True)
class ZigBeeTemperatureSensor(Entity):
@@ -54,8 +54,6 @@ class ZigBeeTemperatureSensor(Entity):
"""Initialize the sensor."""
self._config = config
self._temp = None
# Get initial state
self.schedule_update_ha_state(True)
@property
def name(self):