Skip to content

Commit 8eead90

Browse files
author
Dennis Braun
committed
Fix: Fallback to 'homeassistant' if MQTT discovery prefix is empty
1 parent ddbd3d1 commit 8eead90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def polling_loop(config_mgr, storage, stop_event):
4343
user=mqtt_user,
4444
password=mqtt_password,
4545
topic_prefix=config["mqtt_topic_prefix"],
46-
ha_prefix=config["mqtt_discovery_prefix"],
46+
ha_prefix=config["mqtt_discovery_prefix"] or "homeassistant",
4747
)
4848
try:
4949
mqtt_pub.connect()

0 commit comments

Comments
 (0)