FIX entity_not found error

This commit is contained in:
Jean-Marc Collin
2023-10-21 13:25:49 +00:00
parent 6dc078871d
commit 954fc6271c

View File

@@ -655,7 +655,11 @@ class VersatileThermostat(ClimateEntity, RestoreEntity):
# Initialize all UnderlyingEntities
for under in self._underlyings:
under.startup()
try:
under.startup()
except UnknownEntity:
# Not found, we will try later
pass
temperature_state = self.hass.states.get(self._temp_sensor_entity_id)
if temperature_state and temperature_state.state not in (