fix: climate error (#690)
Some checks failed
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled

This commit is contained in:
Paul Shawn 2025-01-22 20:01:39 +08:00 committed by GitHub
parent 52fd6371ab
commit 2e60962e94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,7 +260,7 @@ class AirConditioner(MIoTServiceEntity, ClimateEntity):
# set air-conditioner on
if self.get_prop_value(prop=self._prop_on) is False:
await self.set_property_async(
prop=self._prop_on, value=True, update=False)
prop=self._prop_on, value=True, write_ha_state=False)
# set mode
mode_value = self.get_map_key(
map_=self._hvac_mode_map, value=hvac_mode)