Fix discovery issue with netatmo climate devices (#33040)

This commit is contained in:
cgtobi
2020-03-20 15:20:42 +01:00
committed by GitHub
parent f81464161a
commit 6ab14a3729

View File

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