Fix available property for Xiaomi Miio fan platform (#55889)

* Fix available

* Suggested change
This commit is contained in:
Maciej Bieniek 2021-09-07 11:34:41 +02:00 committed by GitHub
parent 53ea24ec15
commit 86247c93fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,7 +311,7 @@ class XiaomiGenericDevice(XiaomiCoordinatedMiioEntity, FanEntity):
@property @property
def available(self): def available(self):
"""Return true when state is known.""" """Return true when state is known."""
return self._available return super().available and self._available
@property @property
def extra_state_attributes(self): def extra_state_attributes(self):