Skip to content

Commit 26384a0

Browse files
authored
Merge pull request #19 from atkaper/patch-1
Add client.loop_forever() for auto-reconnect
2 parents 40cda9a + 81c0a55 commit 26384a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hc2mqtt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def hc2mqtt(config_file: str, mqtt_host: str, mqtt_prefix: str):
3131
thread = Thread(target=client_connect, args=(client, device, mqtt_topic))
3232
thread.start()
3333

34+
client.loop_forever()
3435

3536

3637
# Map their value names to easier state names

0 commit comments

Comments
 (0)