Skip to content

Commit

Permalink
True False
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiH committed Jan 16, 2024
1 parent 5a65ab8 commit 706dc67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TheengsGateway/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 706dc67

Please sign in to comment.