Skip to content

Commit

Permalink
Fix typo - remove space
Browse files Browse the repository at this point in the history
  • Loading branch information
saveriol authored Oct 10, 2024
1 parent 86a2517 commit 3dfbd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HADiscovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def publish_ha_discovery(device, client, mqtt_topic):
if component_type == "button":
discovery_payload.setdefault("command_topic", f"{mqtt_topic}/activeProgram")
discovery_payload.setdefault("command_template", f'{{ "program":{uid} }}')
discovery_payload.setdefault("availability_topic ", f"{mqtt_topic}/state")
discovery_payload.setdefault("availability_topic", f"{mqtt_topic}/state")
discovery_payload.setdefault(
"availability_template",
"{{ 'online' if value_json.OperationState == 'Ready' else 'offline' }}",
Expand Down

0 comments on commit 3dfbd7e

Please sign in to comment.