mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-08-02 13:29:14 +08:00
fix: set the device on when the switch status is False or None (#1303)
Some checks failed
Some checks failed
* fix: set the air conditioner on if its switch status property is False or None (#1277) * feat: add a standalone switch for 090615.aircondition.ktf * fix: add an alongside switch for juhl.aircondition.hvac (#1287)
This commit is contained in:
@ -168,7 +168,7 @@ class WaterHeater(MIoTServiceEntity, WaterHeaterEntity):
|
||||
if operation_mode == STATE_ON:
|
||||
await self.set_property_async(prop=self._prop_on, value=True)
|
||||
return
|
||||
if self.get_prop_value(prop=self._prop_on) is False:
|
||||
if self.get_prop_value(prop=self._prop_on) is not True:
|
||||
await self.set_property_async(prop=self._prop_on,
|
||||
value=True,
|
||||
write_ha_state=False)
|
||||
|
Reference in New Issue
Block a user