diff --git a/TheengsGateway/discovery.py b/TheengsGateway/discovery.py index aedacc33..d6f4c386 100644 --- a/TheengsGateway/discovery.py +++ b/TheengsGateway/discovery.py @@ -201,7 +201,8 @@ def publish_device_data(self, uuid: str, data: str) -> None: def get_val_tpl(self, k: str) -> str: """Get value_template.""" if k == "unlocked": - val_tpl = "{% if value_json.get('unlocked') is true -%}True{%- else -%}False{%- endif %}" # noqa: E501 + # val_tpl = "{% if value_json.get('unlocked') is true -%}True{%- else -%}False{%- endif %}" # noqa: E501 + val_tpl = "{% if value_json.get('unlocked') -%}True{%- else -%}False{%- endif %}" # noqa: E501 elif self.configuration["hass_discovery"]: val_tpl = "{{ value_json." + k + " | is_defined }}" else: