From 1f0a6b178e47e19b3a0bfa4c1733d40c4959b190 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 1 Jan 2021 15:11:25 +0100 Subject: [PATCH] Fix Gree climate turn on/off (#44731) --- homeassistant/components/gree/climate.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/gree/climate.py b/homeassistant/components/gree/climate.py index 17d2045ee90..8d0170fbe50 100644 --- a/homeassistant/components/gree/climate.py +++ b/homeassistant/components/gree/climate.py @@ -221,15 +221,17 @@ class GreeClimateEntity(CoordinatorEntity, ClimateEntity): """Turn on the device.""" _LOGGER.debug("Turning on HVAC for device %s", self._name) - self._device.power = True - await self._push_state_update() + self.coordinator.device.power = True + await self.coordinator.push_state_update() + self.async_write_ha_state() async def async_turn_off(self) -> None: """Turn off the device.""" _LOGGER.debug("Turning off HVAC for device %s", self._name) - self._device.power = False - await self._push_state_update() + self.coordinator.device.power = False + await self.coordinator.push_state_update() + self.async_write_ha_state() @property def hvac_modes(self) -> List[str]: