forked from home-assistant/core
Don't fail on unifiprotect
This commit is contained in:
@@ -1424,6 +1424,8 @@ def _raise_on_templated_service(
|
|||||||
return
|
return
|
||||||
if _path[-10:] == ["All", 0, "label_id", "Any", 1, "All", 1, 0, "Any", 0]:
|
if _path[-10:] == ["All", 0, "label_id", "Any", 1, "All", 1, 0, "Any", 0]:
|
||||||
return
|
return
|
||||||
|
if domain == "unifiprotect" and _service == "set_chime_paired_doorbells":
|
||||||
|
return
|
||||||
if schema in (dynamic_template, template, template_complex):
|
if schema in (dynamic_template, template, template_complex):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"Template in service data is not allowed! {domain}.{_service}:{_path}"
|
f"Template in service data is not allowed! {domain}.{_service}:{_path}"
|
||||||
|
Reference in New Issue
Block a user