Update climate.py

Fix error : Allowed values: ['2', '4', '5', '6', '7', '8'] But was: 0
This commit is contained in:
sgmckay25 2025-01-01 16:31:36 +01:00 committed by GitHub
parent 70eb6c0111
commit f12407a300
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,7 +199,7 @@ class HonACClimateEntity(HonEntity, ClimateEntity):
self._attr_hvac_mode = hvac_mode
if hvac_mode == HVACMode.OFF:
await self._device.commands["stopProgram"].send()
self._device.sync_command("stopProgram", "settings")
self._device.settings["settings.onOffStatus"].value = "0"
else:
self._device.settings["settings.onOffStatus"].value = "1"
setting = self._device.settings["settings.machMode"]