From 86ba48b3fc2abb532bfc562e7aff105d33e83e32 Mon Sep 17 00:00:00 2001 From: jleeca Date: Wed, 6 May 2020 13:16:48 -0400 Subject: [PATCH] fixed startup failure with missing device https://github.com/ThomDietrich/miflora-mqtt-daemon/issues/117 --- miflora-mqtt-daemon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/miflora-mqtt-daemon.py b/miflora-mqtt-daemon.py index 31deeea..3985fcf 100644 --- a/miflora-mqtt-daemon.py +++ b/miflora-mqtt-daemon.py @@ -204,6 +204,7 @@ def on_publish(client, userdata, mid): flora['location_clean'] = location_clean flora['location_pretty'] = location_pretty flora['stats'] = {"count": 0, "success": 0, "failure": 0} + flora['firmware'] = "0.0.0" try: flora_poller.fill_cache() flora_poller.parameter_value(MI_LIGHT)