From 702f687a8df504ccf8120eb6ffbbd00725571b9f Mon Sep 17 00:00:00 2001 From: Jules Dejaeghere Date: Sat, 3 May 2025 20:18:01 +0200 Subject: [PATCH] Set logging level of dependency --- custom_components/irm_kmi/coordinator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/irm_kmi/coordinator.py b/custom_components/irm_kmi/coordinator.py index dde9b47..1e04a10 100644 --- a/custom_components/irm_kmi/coordinator.py +++ b/custom_components/irm_kmi/coordinator.py @@ -57,6 +57,9 @@ class IrmKmiCoordinator(TimestampDataUpdateCoordinator): This is the place to pre-process the data to lookup tables so entities can quickly look up their data. """ + # When integration is set up, set the logging level of the irm_kmi_api package to the same level to help debugging + logging.getLogger('irm_kmi_api').setLevel(_LOGGER.getEffectiveLevel()) + self._api.expire_cache() if (zone := self.hass.states.get(self._zone)) is None: raise UpdateFailed(f"Zone '{self._zone}' not found")