mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
run black
This commit is contained in:
parent
ed9389a1e7
commit
dee9dd10f8
1 changed files with 5 additions and 3 deletions
|
|
@ -336,9 +336,11 @@ class CircadianSwitch(SwitchEntity, RestoreEntity):
|
|||
if service_data.get(ATTR_BRIGHTNESS, False):
|
||||
service_data[ATTR_WHITE_VALUE] = service_data[ATTR_BRIGHTNESS]
|
||||
|
||||
tasks.append(self.hass.services.async_call(
|
||||
LIGHT_DOMAIN, SERVICE_TURN_ON, service_data
|
||||
))
|
||||
tasks.append(
|
||||
self.hass.services.async_call(
|
||||
LIGHT_DOMAIN, SERVICE_TURN_ON, service_data
|
||||
)
|
||||
)
|
||||
if tasks:
|
||||
await asyncio.wait(tasks)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue