From 8e1f50c083c995b3a940e2633f9d950b56cc5718 Mon Sep 17 00:00:00 2001 From: fuatakgun Date: Fri, 14 Jan 2022 13:52:26 +0100 Subject: [PATCH] fix: clean unnecessary state_attributes --- custom_components/eufy_security/camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/eufy_security/camera.py b/custom_components/eufy_security/camera.py index 21e55f9..5df8439 100644 --- a/custom_components/eufy_security/camera.py +++ b/custom_components/eufy_security/camera.py @@ -322,6 +322,7 @@ def set_is_streaming(self): _LOGGER.debug( f"{DOMAIN} {self.name} - set_is_streaming - end - {self.device.is_rtsp_streaming} - {self.device.is_p2p_streaming} - {self.device.is_streaming}" ) + async def initiate_turn_on(self): await self.coordinator.hass.async_add_executor_job(self.turn_on) @@ -381,7 +382,6 @@ async def async_camera_image(self, width=None, height=None) -> bytes: f"{DOMAIN} {self.name} - camera_image -{current_picture_url} - {len(self.picture_bytes)}" ) return self.picture_bytes - def turn_on(self) -> None: asyncio.run_coroutine_threadsafe(