Black
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user