Don't fail on unifiprotect

This commit is contained in:
Erik 2024-10-21 13:53:00 +02:00
parent e88092dc52
commit d8716b6b72

View File

@ -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}"