We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey
do we somewhere have a "working" piece of code for this repository - so what are the 5 lines of code that we need to use the library?
e.g. how to I use async_update_weather_stations?
In my current code I had been using
authorization = pyatmo.NetatmoOAuth2( client_id=CLIENT_ID, client_secret=CLIENT_SECRET, # scope="read_station", ) authorization.extra["refresh_token"]="xxx" authorization.refresh_tokens() # 2 : Get devices list weatherData = pyatmo.WeatherStationData(authorization)
but somehow pyatmo.WeatherStationData does not show any stations anymore...
pyatmo.WeatherStationData
What's the adviced implementation way right now? Do I need to switch to async_update_weather_stations?
async_update_weather_stations
The text was updated successfully, but these errors were encountered:
Yes, you have to use async_account.async_update_weather_stations
async_account.async_update_weather_stations
Here is a rough sketch:
account = pyatmo.AsyncAccount(auth) await account.async_update_topology() await account.async_update_weather_stations() async_account.homes[home_id].modules
Check
pyatmo/tests/test_weather.py
Line 21 in 4296c98
I hope this helps a bit.
Sorry, something went wrong.
No branches or pull requests
Hey
do we somewhere have a "working" piece of code for this repository - so what are the 5 lines of code that we need to use the library?
e.g. how to I use async_update_weather_stations?
In my current code I had been using
but somehow
pyatmo.WeatherStationData
does not show any stations anymore...What's the adviced implementation way right now? Do I need to switch to
async_update_weather_stations
?The text was updated successfully, but these errors were encountered: