From 5e90e178aaa5ba63f5291b8804043f1b4a7d97b2 Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" <david.mulcahey@me.com> Date: Sun, 5 Dec 2021 18:24:20 -0500 Subject: [PATCH] Prevent ZHA coordinator from showing unavailable (#61068) --- homeassistant/components/zha/core/device.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/zha/core/device.py b/homeassistant/components/zha/core/device.py index 82e2b85173e..e8b38fb9699 100644 --- a/homeassistant/components/zha/core/device.py +++ b/homeassistant/components/zha/core/device.py @@ -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