mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
Take care of edge case where no area_id or entity_id in service_data
This commit is contained in:
parent
1fd6787505
commit
9e22e70d63
1 changed files with 5 additions and 0 deletions
|
|
@ -1291,6 +1291,11 @@ class TurnOnOffListener:
|
|||
_LOGGER.debug(
|
||||
"Found entity_ids '%s' for area_id '%s'", entity_ids, area_id
|
||||
)
|
||||
else:
|
||||
_LOGGER.debug(
|
||||
"No entity_ids or area_ids found in service_data: %s", service_data
|
||||
)
|
||||
return
|
||||
|
||||
if not any(eid in self.lights for eid in entity_ids):
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue