Prevent ZHA coordinator from showing unavailable (#61068)
parent
ac263acb1c
commit
5e90e178aa
|
@ -341,6 +341,9 @@ class ZHADevice(LogMixin):
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _check_available(self, *_):
|
async def _check_available(self, *_):
|
||||||
|
# don't flip the availability state of the coordinator
|
||||||
|
if self.is_coordinator:
|
||||||
|
return
|
||||||
if self.last_seen is None:
|
if self.last_seen is None:
|
||||||
self.update_available(False)
|
self.update_available(False)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue