Fix available property for Xiaomi Miio fan platform (#55889)
* Fix available * Suggested change
This commit is contained in:
parent
53ea24ec15
commit
86247c93fc
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ class XiaomiGenericDevice(XiaomiCoordinatedMiioEntity, FanEntity):
|
|||
@property
|
||||
def available(self):
|
||||
"""Return true when state is known."""
|
||||
return self._available
|
||||
return super().available and self._available
|
||||
|
||||
@property
|
||||
def extra_state_attributes(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue