Skip to content

Commit

Permalink
Fix startup failure with homeassistant-mqtt + missing device (#118)
Browse files Browse the repository at this point in the history
Fixes #117
  • Loading branch information
jleeca authored May 7, 2020
1 parent 0e77798 commit 34ca2b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miflora-mqtt-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 34ca2b6

Please sign in to comment.