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 Paulus Schoutsen
parent e7fd24eade
commit 980fcef36f

View File

@ -301,7 +301,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):