File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -336,8 +336,8 @@ def moduleByName(self, module):
336
336
def moduleById (self , mid ):
337
337
return self .modules .get (mid )
338
338
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 )
341
341
# Breaking change from Netatmo : dashboard_data no longer available if station lost
342
342
if not s or 'dashboard_data' not in s : return None
343
343
lastD = dict ()
Original file line number Diff line number Diff line change 4
4
5
5
setup (
6
6
name = 'lnetatmo' ,
7
- version = '3.0.0 ' ,
7
+ version = '3.0.1 ' ,
8
8
classifiers = [
9
9
'Development Status :: 5 - Production/Stable' ,
10
10
'Intended Audience :: Developers' ,
17
17
scripts = [],
18
18
data_files = [],
19
19
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' ,
21
21
license = 'GPL V3' ,
22
22
description = 'Simple API to access Netatmo weather station data from any python script.'
23
23
)
You can’t perform that action at this time.
0 commit comments