mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-15 00:04:05 +02:00
indentation
This commit is contained in:
parent
c8a3e9acac
commit
3261e9f78c
1 changed files with 10 additions and 10 deletions
|
|
@ -2059,20 +2059,20 @@ class AdaptiveLightingManager:
|
|||
transition=transition,
|
||||
force=True,
|
||||
)
|
||||
|
||||
if skipped:
|
||||
# Modify the service data inplace
|
||||
modify_service_data(data, skipped)
|
||||
if not has_intercepted:
|
||||
pass # The call will be intercepted with the modified data
|
||||
else:
|
||||
# Call light turn_on service for skipped entities
|
||||
await self.hass.services.async_call(
|
||||
LIGHT_DOMAIN,
|
||||
SERVICE_TURN_ON,
|
||||
data,
|
||||
blocking=True,
|
||||
context=call.context,
|
||||
)
|
||||
return # The call will be intercepted with the modified data
|
||||
# Call light turn_on service for skipped entities
|
||||
await self.hass.services.async_call(
|
||||
LIGHT_DOMAIN,
|
||||
SERVICE_TURN_ON,
|
||||
data,
|
||||
blocking=True,
|
||||
context=call.context,
|
||||
)
|
||||
|
||||
async def _service_interceptor_turn_on_single_light_handler(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue