mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix Gree climate turn on/off (#44731)
This commit is contained in:
parent
f0e96f739b
commit
1f0a6b178e
@ -221,15 +221,17 @@ class GreeClimateEntity(CoordinatorEntity, ClimateEntity):
|
|||||||
"""Turn on the device."""
|
"""Turn on the device."""
|
||||||
_LOGGER.debug("Turning on HVAC for device %s", self._name)
|
_LOGGER.debug("Turning on HVAC for device %s", self._name)
|
||||||
|
|
||||||
self._device.power = True
|
self.coordinator.device.power = True
|
||||||
await self._push_state_update()
|
await self.coordinator.push_state_update()
|
||||||
|
self.async_write_ha_state()
|
||||||
|
|
||||||
async def async_turn_off(self) -> None:
|
async def async_turn_off(self) -> None:
|
||||||
"""Turn off the device."""
|
"""Turn off the device."""
|
||||||
_LOGGER.debug("Turning off HVAC for device %s", self._name)
|
_LOGGER.debug("Turning off HVAC for device %s", self._name)
|
||||||
|
|
||||||
self._device.power = False
|
self.coordinator.device.power = False
|
||||||
await self._push_state_update()
|
await self.coordinator.push_state_update()
|
||||||
|
self.async_write_ha_state()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_modes(self) -> List[str]:
|
def hvac_modes(self) -> List[str]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user