From 4eec6ae597e4fc6236dd687d81c6e040cda253ea Mon Sep 17 00:00:00 2001 From: timniklas Date: Sat, 9 Nov 2024 20:47:40 +0100 Subject: [PATCH 1/2] added default image on connection lost --- custom_components/ilifestyle/camera.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/ilifestyle/camera.py b/custom_components/ilifestyle/camera.py index 89a3b00..8625fd0 100644 --- a/custom_components/ilifestyle/camera.py +++ b/custom_components/ilifestyle/camera.py @@ -88,12 +88,13 @@ async def async_camera_image( ) -> bytes | None: """Return a still image response from the camera.""" + url = self._url if self.is_streaming == False: - return None + url = "/config/custom_components/ilifestyle/blank_image.jpg" return await ffmpeg.async_get_image( self.hass, - self._url, + url, output_format=IMAGE_JPEG, extra_cmd=self._options, ) From 88e8f24a4fe1229f073d415a8242ca5b36a74b46 Mon Sep 17 00:00:00 2001 From: timniklas Date: Sat, 9 Nov 2024 20:49:04 +0100 Subject: [PATCH 2/2] Add files via upload --- custom_components/ilifestyle/blank_image.jpg | Bin 0 -> 25562 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 custom_components/ilifestyle/blank_image.jpg diff --git a/custom_components/ilifestyle/blank_image.jpg b/custom_components/ilifestyle/blank_image.jpg new file mode 100644 index 0000000000000000000000000000000000000000..adab2f002dd03f8c2ee6d07d3460df8d05de21e5 GIT binary patch literal 25562 zcmeI42{e@9-}i4@V=Iv;+Ypi@vJ-}6OF~4lOoeO-Wy><7WM3vKN?AhIm}Dzt>`Thd zSjsTS&WvRYW_j)#G07N)<)A!cSK7RVt84A1->|0A*_GT_&+=7jQ}?*V;>8^#Bd5=NRdvmmueHrBt!?ccon7At28V`6u%lz+)A*U$xj*v@i%Z0f&8=+UENDiA`Mb zI^p=;hyCn)5=zsO#J{Hfi)H_NhCThivh05t_CM_!2RNA+z{O+Y24DciJ16c8a4-&@ z!2tsY3>+|Uz`y|m2MioAaKOL;0|yKoFmS-Y0RsmN958UezySjX3>+|Uz`y|m2M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