Skip to content

Commit

Permalink
[Merge] Merged homecoach refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
philippelt committed Nov 23, 2024
1 parent 495bf7b commit 8243fc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ There is no longer credential load at library import, credentials are loaded at
> For most users (if not all) of this library, this is totally useless as we are accessing only OUR devices thus are not concerned by RGPD. You can then put your netatmo account email address, just in case some mail would be sent to it.
> It is only an information for the Netatmo records, there is absolutely no use of this information by the library.
>[!CAUTION]
> There are currently frequent authentication failures with Netatmo servers, returning exception ranging from 500 errors to invalid scope. Please check that you are not facing a transient failure by retrying your code some minutes later before reporting an issue.
### Install ###

To install lnetatmo simply run:
Expand Down
2 changes: 1 addition & 1 deletion lnetatmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def __init__(self, clientId=None,

self._clientId = clientId or cred["CLIENT_ID"]
self._clientSecret = clientSecret or cred["CLIENT_SECRET"]
self._accessToken = None #accessToken or cred["ACCESS_TOKEN"] # Will be refreshed before any use
self._accessToken = None # Will be refreshed before any use
self.refreshToken = refreshToken or cred["REFRESH_TOKEN"]
self.expiration = 0 # Force refresh token

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='lnetatmo',
version='4.1.5',
version='4.2.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand All @@ -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.5.tar.gz',
download_url='https://github.com/philippelt/netatmo-api-python/archive/v4.2.0.tar.gz',
license='GPL V3',
description='Simple API to access Netatmo weather station data from any python script.'
)

0 comments on commit 8243fc9

Please sign in to comment.