Handle service calls that do not refer entity IDs (#31317)
This commit is contained in:
parent
24f4f53f16
commit
d24e397a80
2 changed files with 5 additions and 0 deletions
|
@ -201,6 +201,10 @@ class Script:
|
|||
continue
|
||||
|
||||
entity_ids = data.get(ATTR_ENTITY_ID)
|
||||
|
||||
if entity_ids is None:
|
||||
continue
|
||||
|
||||
if isinstance(entity_ids, str):
|
||||
entity_ids = [entity_ids]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue