Skip to content

Commit

Permalink
Fix firmware sesnor attributes (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu authored Feb 25, 2022
1 parent 12c43f8 commit 4820075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_scripts/shellies_discovery_gen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
TPL_ETH_IP = "{{value_json.result.eth.ip}}"
TPL_FIRMWARE_STABLE = "{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}"
TPL_FIRMWARE_STABLE_ATTRS = (
"{{value_json.result.sys.available_updates.get(^stable^, {})}}"
"{{value_json.result.sys.available_updates.get(^stable^, {})|to_json}}"
)
TPL_INPUT = "{%if value_json.state%}ON{%else%}OFF{%endif%}"
TPL_MQTT_CONNECTED = (
Expand Down

0 comments on commit 4820075

Please sign in to comment.