From 7bb14aae23c306da1043f88a99a999147ef2f9aa Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Tue, 15 Feb 2022 13:43:31 -0800 Subject: [PATCH] Override and disable nest stream `unavailable` behavior (#66571) --- homeassistant/components/nest/camera_sdm.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/homeassistant/components/nest/camera_sdm.py b/homeassistant/components/nest/camera_sdm.py index fca79bde040..858561dd3ea 100644 --- a/homeassistant/components/nest/camera_sdm.py +++ b/homeassistant/components/nest/camera_sdm.py @@ -127,6 +127,15 @@ class NestCamera(Camera): return STREAM_TYPE_WEB_RTC return super().frontend_stream_type + @property + def available(self) -> bool: + """Return True if entity is available.""" + # Cameras are marked unavailable on stream errors in #54659 however nest streams have + # a high error rate (#60353). Given nest streams are so flaky, marking the stream + # unavailable has other side effects like not showing the camera image which sometimes + # are still able to work. Until the streams are fixed, just leave the streams as available. + return True + async def stream_source(self) -> str | None: """Return the source of the stream.""" if not self.supported_features & SUPPORT_STREAM: