Fix error when setting Netatmo climate preset (#80700)

pull/80714/head
Tobias Sauerwein 2022-10-21 05:06:49 +02:00 committed by GitHub
parent 57bf130837
commit 6c23de94e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)