mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-03 08:15:30 +08:00
fix: set prop
This commit is contained in:
parent
bff5b3bf44
commit
dbf943386e
@ -265,7 +265,7 @@ class AirConditioner(MIoTServiceEntity, ClimateEntity):
|
|||||||
# set air-conditioner on
|
# set air-conditioner on
|
||||||
if hvac_mode != HVACMode.OFF and not self.get_prop_value(
|
if hvac_mode != HVACMode.OFF and not self.get_prop_value(
|
||||||
prop=self._prop_on):
|
prop=self._prop_on):
|
||||||
await self.async_turn_on()
|
await self.set_property_async(prop=self._prop_on, value=True)
|
||||||
# set mode
|
# set mode
|
||||||
mode_value = self.get_map_value(
|
mode_value = self.get_map_value(
|
||||||
map_=self._hvac_mode_map, description=hvac_mode)
|
map_=self._hvac_mode_map, description=hvac_mode)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user