File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change 44
55setup (
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' ,
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)
You can’t perform that action at this time.
0 commit comments