This commit is contained in:
Paulus Schoutsen 2019-07-31 12:25:30 -07:00
parent da05dfe708
commit 4de97abc3a
2676 changed files with 163166 additions and 140084 deletions

View file

@ -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