Fix Netatmo climate issue (#25830)
* Bump pyatmo to v2.2.1 * Fix issue 25778
This commit is contained in:
parent
e9705af055
commit
d89e8ead61
3 changed files with 4 additions and 4 deletions
|
@ -109,8 +109,9 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
|
||||
auth = hass.data[DATA_NETATMO_AUTH]
|
||||
|
||||
home_data = HomeData(auth)
|
||||
try:
|
||||
home_data = HomeData(auth)
|
||||
home_data.setup()
|
||||
except pyatmo.NoDevice:
|
||||
return
|
||||
|
||||
|
@ -352,7 +353,6 @@ class HomeData:
|
|||
|
||||
def get_home_ids(self):
|
||||
"""Get all the home ids returned by NetAtmo API."""
|
||||
self.setup()
|
||||
if self.homedata is None:
|
||||
return []
|
||||
for home_id in self.homedata.homes:
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Netatmo",
|
||||
"documentation": "https://www.home-assistant.io/components/netatmo",
|
||||
"requirements": [
|
||||
"pyatmo==2.2.0"
|
||||
"pyatmo==2.2.1"
|
||||
],
|
||||
"dependencies": [
|
||||
"webhook"
|
||||
|
|
|
@ -1053,7 +1053,7 @@ pyalarmdotcom==0.3.2
|
|||
pyarlo==0.2.3
|
||||
|
||||
# homeassistant.components.netatmo
|
||||
pyatmo==2.2.0
|
||||
pyatmo==2.2.1
|
||||
|
||||
# homeassistant.components.apple_tv
|
||||
pyatv==0.3.12
|
||||
|
|
Loading…
Add table
Reference in a new issue