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 Franck Nijhof
parent fb26398ea7
commit 117fb8ef4c
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

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