mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 14:24:03 +02:00
deal with 'light.turn_on' with multiple lights, which appear as csv list
Solves the bug reported in #39 (https://github.com/basnijholt/adaptive-lighting/issues/39)
This commit is contained in:
parent
fa9ad171a5
commit
4257d27dee
1 changed files with 1 additions and 1 deletions
|
|
@ -1175,7 +1175,7 @@ class TurnOnOffListener:
|
|||
|
||||
service = event.data[ATTR_SERVICE]
|
||||
service_data = event.data[ATTR_SERVICE_DATA]
|
||||
entity_ids = cv.ensure_list(service_data[ATTR_ENTITY_ID])
|
||||
entity_ids = cv.ensure_list_csv(service_data[ATTR_ENTITY_ID])
|
||||
|
||||
if not any(eid in self.lights for eid in entity_ids):
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue