Fix Netatmo climate issue (#25830)

* Bump pyatmo to v2.2.1

* Fix issue 25778
This commit is contained in:
cgtobi 2019-08-10 15:49:29 +02:00 committed by GitHub
parent e9705af055
commit d89e8ead61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -109,8 +109,9 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
auth = hass.data[DATA_NETATMO_AUTH] auth = hass.data[DATA_NETATMO_AUTH]
home_data = HomeData(auth)
try: try:
home_data = HomeData(auth) home_data.setup()
except pyatmo.NoDevice: except pyatmo.NoDevice:
return return
@ -352,7 +353,6 @@ class HomeData:
def get_home_ids(self): def get_home_ids(self):
"""Get all the home ids returned by NetAtmo API.""" """Get all the home ids returned by NetAtmo API."""
self.setup()
if self.homedata is None: if self.homedata is None:
return [] return []
for home_id in self.homedata.homes: for home_id in self.homedata.homes:

View file

@ -3,7 +3,7 @@
"name": "Netatmo", "name": "Netatmo",
"documentation": "https://www.home-assistant.io/components/netatmo", "documentation": "https://www.home-assistant.io/components/netatmo",
"requirements": [ "requirements": [
"pyatmo==2.2.0" "pyatmo==2.2.1"
], ],
"dependencies": [ "dependencies": [
"webhook" "webhook"

View file

@ -1053,7 +1053,7 @@ pyalarmdotcom==0.3.2
pyarlo==0.2.3 pyarlo==0.2.3
# homeassistant.components.netatmo # homeassistant.components.netatmo
pyatmo==2.2.0 pyatmo==2.2.1
# homeassistant.components.apple_tv # homeassistant.components.apple_tv
pyatv==0.3.12 pyatv==0.3.12