Fix referenced entity extraction when service call entity contains a template (#41107)

This commit is contained in:
Franck Nijhof 2020-10-03 20:55:59 +02:00 committed by GitHub
parent 00b3b9f183
commit 38d132addd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -850,7 +850,7 @@ class Script:
entity_ids = data.get(ATTR_ENTITY_ID)
if entity_ids is None:
if entity_ids is None or isinstance(entity_ids, template.Template):
continue
if isinstance(entity_ids, str):