mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 21:37:07 +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, *_):
|
||||
# don't flip the availability state of the coordinator
|
||||
if self.is_coordinator:
|
||||
return
|
||||
if self.last_seen is None:
|
||||
self.update_available(False)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user