Fix error when setting Netatmo climate preset (#80700)

This commit is contained in:
Tobias Sauerwein
2022-10-21 05:06:49 +02:00
committed by GitHub
parent 57bf130837
commit 6c23de94e1

View File

@@ -315,7 +315,7 @@ class NetatmoThermostat(NetatmoBase, ClimateEntity):
elif preset_mode in (PRESET_BOOST, STATE_NETATMO_MAX):
await self._room.async_therm_set(PRESET_MAP_NETATMO[preset_mode])
elif preset_mode in (PRESET_SCHEDULE, PRESET_FROST_GUARD, PRESET_AWAY):
await self._room.async_therm_set(PRESET_MAP_NETATMO[preset_mode])
await self._room.home.async_set_thermmode(PRESET_MAP_NETATMO[preset_mode])
else:
_LOGGER.error("Preset mode '%s' not available", preset_mode)