Skip to content

Commit eab2766

Browse files
committed
[Change] Restore optional station parameter to lastData()
1 parent b8ec3db commit eab2766

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lnetatmo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ def moduleByName(self, module):
336336
def moduleById(self, mid):
337337
return self.modules.get(mid)
338338

339-
def lastData(self, exclude=0):
340-
s = self.default_station_data
339+
def lastData(self, station=None, exclude=0):
340+
s = self.stationByName(station)
341341
# Breaking change from Netatmo : dashboard_data no longer available if station lost
342342
if not s or 'dashboard_data' not in s : return None
343343
lastD = dict()

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='3.0.0',
7+
version='3.0.1',
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/archive/v3.0.0.tar.gz',
20+
download_url='https://github.com/philippelt/netatmo-api-python/archive/v3.0.1.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)