michaelmiklis / loxberry-plugin-netatmo-weather

A Plugin for Loxberry to send Netatmo Weather Station data to your Loxone Miniserver
http://www.loxwiki.eu/display/LOXBERRY/Netatmo+Weather
Apache License 2.0
4 stars 4 forks source link

Error if Station has no modules attached #1

Closed michaelmiklis closed 4 years ago

michaelmiklis commented 6 years ago

If a station has no modules attached, the netatmo.py script will break with the following error after processing the base station:

Traceback (most recent call last): File "data/plugins/netatmo-weather/netatmo.py", line 310, in main() File "data/plugins/netatmo-weather/netatmo.py", line 208, in main for module in device["modules"]: KeyError: 'modules'