From fa8700b555cfdbc7b780bcbc877f154c2070a55f Mon Sep 17 00:00:00 2001 From: philippelt Date: Wed, 9 Oct 2024 10:37:15 +0200 Subject: [PATCH] Bug fix in modulesNamesList (see #86 issue discussion) --- lnetatmo.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lnetatmo.py b/lnetatmo.py index eaf9ba23..cd5af7a6 100644 --- a/lnetatmo.py +++ b/lnetatmo.py @@ -464,7 +464,7 @@ def modulesNamesList(self, station=None): for m in self.default_station_data['modules']: self.modules[ m['_id'] ] = m res = [m['module_name'] for m in self.modules.values()] - res.append(station['module_name']) + res.append(s['module_name']) return res # Both functions (byName and byStation) are here for historical reason, diff --git a/setup.py b/setup.py index 1146d060..993b752e 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='lnetatmo', - version='4.1.1', + version='4.1.2', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', @@ -17,7 +17,7 @@ scripts=[], data_files=[], url='https://github.com/philippelt/netatmo-api-python', - download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.1.1.tar.gz', + download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.1.2.tar.gz', license='GPL V3', description='Simple API to access Netatmo weather station data from any python script.' )