This commit is contained in:
Paulus Schoutsen committed 2019-07-31 12:25:30 -07:00
1 parent da05dfe708
commit 4de97abc3a
2676 files changed
+163166 -140084

No files matched your search

@@ -14,7 +14,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
if not discovery_info:
return
device = hass.data[DATA_YEELIGHT][discovery_info['host']]
device = hass.data[DATA_YEELIGHT][discovery_info["host"]]
if device.is_nightlight_supported:
_LOGGER.debug("Adding nightlight mode sensor for %s", device.name)
@@ -37,7 +37,7 @@ class YeelightNightlightModeSensor(BinarySensorDevice):
async_dispatcher_connect(
self.hass,
DATA_UPDATED.format(self._device.ipaddr),
self._schedule_immediate_update
self._schedule_immediate_update,
)
@property