Skip to content

Commit 301d2a1

Browse files
committed
Ability to use station_id in place of name for lastData in station parameter
1 parent e2ec96a commit 301d2a1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lnetatmo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def moduleById(self, mid, sid=None):
247247
return self.modules[mid]
248248

249249
def lastData(self, station=None, exclude=0):
250-
s = self.stationByName(station)
250+
s = self.stationByName(station) or self.stationById(station)
251251
if not s : return None
252252
lastD = dict()
253253
# Define oldest acceptable sensor measure event

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.2',
7+
version='1.4.3',
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.2.tar.gz',
20+
download_url='https://github.com/philippelt/netatmo-api-python/tarball/v1.4.3.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)