mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 14:54:04 +02:00
simplify
This commit is contained in:
parent
e98c5b19be
commit
bed616343e
1 changed files with 2 additions and 2 deletions
|
|
@ -2077,10 +2077,10 @@ class AdaptiveLightingManager:
|
|||
)
|
||||
|
||||
if skipped:
|
||||
if not has_intercepted:
|
||||
return # The call will be intercepted with the original data
|
||||
# Modify the service data inplace
|
||||
modify_service_data(data, skipped)
|
||||
if not has_intercepted:
|
||||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue