Add return for certified devices to not apply availability check (#62728)

This commit is contained in:
flfue
2021-12-27 08:31:51 +01:00
committed by GitHub
parent e00406c7b8
commit a3e526d6cf

View File

@@ -145,6 +145,7 @@ class HueBaseEntity(Entity):
if self.device.product_data.certified:
# certified products report their state correctly
self._ignore_availability = False
return
# some (3th party) Hue lights report their connection status incorrectly
# causing the zigbee availability to report as disconnected while in fact
# it can be controlled. Although this is in fact something the device manufacturer