Fix the crash due to absence of the "default_home" in HomeData from pyatmo (netatmo/climate) (#22363)

This commit is contained in:
shanbs 2019-03-25 01:31:22 +01:00 committed by Fabian Affolter
parent d2a83c2732
commit 0d46e2c0b5

View file

@ -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.")