mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Fix fan is_on status in xiaomi_miio (#146592)
This commit is contained in:
parent
c3e3a36b4c
commit
e7a88e99f9
@ -330,6 +330,12 @@ class XiaomiGenericDevice(
|
||||
"""Return the percentage based speed of the fan."""
|
||||
return None
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool | None:
|
||||
"""Return true if device is on."""
|
||||
# Base FanEntity uses percentage to determine if the device is on.
|
||||
return self._attr_is_on
|
||||
|
||||
async def async_turn_on(
|
||||
self,
|
||||
percentage: int | None = None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user