mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Prevent ZHA coordinator from showing unavailable (#61068)
This commit is contained in:
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…
x
Reference in New Issue
Block a user