Skip to content

Commit

Permalink
Retain HASS MQTT autodiscovery topics
Browse files Browse the repository at this point in the history
Make them survive a hass reboot.
  • Loading branch information
rubenbe committed May 29, 2024
1 parent 419f55f commit 161bd9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions comfospot40/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def send_config(self, mqttprefix):
topic,
payload=payloadstr.encode(),
qos=1,
retain=True,
)
task = asyncio.create_task(x)
self.background_tasks.add(task)
Expand Down

0 comments on commit 161bd9a

Please sign in to comment.