Fix the crash due to absence of the "default_home" in HomeData from pyatmo (netatmo/climate) (#22363)
This commit is contained in:
parent
d2a83c2732
commit
0d46e2c0b5
1 changed files with 2 additions and 0 deletions
|
@ -315,6 +315,8 @@ class HomeData:
|
|||
self.home_id = self.homedata.gethomeId(self.home)
|
||||
except TypeError:
|
||||
_LOGGER.error("Error when getting home data.")
|
||||
except AttributeError:
|
||||
_LOGGER.error("No default_home in HomeData.")
|
||||
except pyatmo.NoDevice:
|
||||
_LOGGER.debug("No thermostat devices available.")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue