mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix fan is_on status in xiaomi_miio (#146592)
This commit is contained in:
parent
9d1e60cf7e
commit
64e503bc27
@ -330,6 +330,12 @@ class XiaomiGenericDevice(
|
|||||||
"""Return the percentage based speed of the fan."""
|
"""Return the percentage based speed of the fan."""
|
||||||
return None
|
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(
|
async def async_turn_on(
|
||||||
self,
|
self,
|
||||||
percentage: int | None = None,
|
percentage: int | None = None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user