Fix discovery issue with netatmo climate devices (#33040)

This commit is contained in:
cgtobi 2020-03-20 15:20:42 +01:00 committed by Pascal Vizeli
parent fa650b648c
commit e36bdd717a

View File

@ -441,6 +441,11 @@ class ThermostatData:
except TypeError: except TypeError:
_LOGGER.error("ThermostatData::setup() got error") _LOGGER.error("ThermostatData::setup() got error")
return False return False
except pyatmo.exceptions.NoDevice:
_LOGGER.debug(
"No climate devices for %s (%s)", self.home_name, self.home_id
)
return False
return True return True
@Throttle(MIN_TIME_BETWEEN_UPDATES) @Throttle(MIN_TIME_BETWEEN_UPDATES)