doorstate: publish state on startup

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2020-06-06 21:26:59 +02:00
parent 58e93f4e15
commit 8c0ba51e9b
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ global mqtt_connected
mqtt_connected = False
mqttc.loop_start()
publish_doorstate()
while True:
# Synchronous loop: GPIO