Skip to content

Commit ddcf7f2

Browse files
committed
Fix lost modules missing data (thanks Jarkko)
1 parent 5a706ba commit ddcf7f2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lnetatmo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ def lastData(self, station=None, exclude=0):
318318
lastD[s['module_name']]['wifi_status'] = s['wifi_status']
319319
if 'modules' in s:
320320
for module in s["modules"]:
321+
# Skip lost modules that no longer have dashboard data available
322+
if 'dashboard_data' not in module : continue
321323
ds = module['dashboard_data']
322324
if ds.get('time_utc',limit+10) > limit :
323325
# If no module_name has been setup, use _id by default

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='lnetatmo',
7-
version='1.4.5',
7+
version='1.5.0',
88
classifiers=[
99
'Development Status :: 5 - Production/Stable',
1010
'Intended Audience :: Developers',
@@ -17,7 +17,7 @@
1717
scripts=[],
1818
data_files=[],
1919
url='https://github.com/philippelt/netatmo-api-python',
20-
download_url='https://github.com/philippelt/netatmo-api-python/tarball/v1.4.5.tar.gz',
20+
download_url='https://github.com/philippelt/netatmo-api-python/tarball/v1.5.0.tar.gz',
2121
license='GPL V3',
2222
description='Simple API to access Netatmo weather station data from any python script.'
2323
)

0 commit comments

Comments
 (0)