From c82de28cdc20e5ad2a68b0beb8ad54630895c5d2 Mon Sep 17 00:00:00 2001 From: Jules Dejaeghere Date: Thu, 28 Dec 2023 21:42:37 +0100 Subject: [PATCH] Remove some logging --- custom_components/irm_kmi/camera.py | 3 --- custom_components/irm_kmi/weather.py | 1 - 2 files changed, 4 deletions(-) diff --git a/custom_components/irm_kmi/camera.py b/custom_components/irm_kmi/camera.py index d2c3b5e..8931db7 100644 --- a/custom_components/irm_kmi/camera.py +++ b/custom_components/irm_kmi/camera.py @@ -19,7 +19,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback): """Set up the camera entry.""" - _LOGGER.debug(f'async_setup_entry entry is: {entry}') coordinator = hass.data[DOMAIN][entry.entry_id] async_add_entities([IrmKmiRadar(coordinator, entry)]) @@ -66,13 +65,11 @@ async def async_camera_image( async def handle_async_still_stream(self, request: web.Request, interval: float) -> web.StreamResponse: """Generate an HTTP MJPEG stream from camera images.""" - _LOGGER.info("handle_async_still_stream") self._image_index = 0 return await async_get_still_stream(request, self.iterate, self.content_type, interval) async def handle_async_mjpeg_stream(self, request: web.Request) -> web.StreamResponse: """Serve an HTTP MJPEG stream from the camera.""" - _LOGGER.info("handle_async_mjpeg_stream") return await self.handle_async_still_stream(request, self.frame_interval) async def iterate(self) -> bytes | None: diff --git a/custom_components/irm_kmi/weather.py b/custom_components/irm_kmi/weather.py index e95a7ec..a5c11ed 100644 --- a/custom_components/irm_kmi/weather.py +++ b/custom_components/irm_kmi/weather.py @@ -22,7 +22,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback): """Set up the weather entry.""" - _LOGGER.debug(f'async_setup_entry entry is: {entry}') coordinator = hass.data[DOMAIN][entry.entry_id] async_add_entities( [IrmKmiWeather(coordinator, entry)]