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
def available(self):
"""Return true when state is known."""
return self._available
return super().available and self._available
@property
def extra_state_attributes(self):