mirror of
https://github.com/jdejaegh/irm-kmi-ha.git
synced 2025-06-27 03:35:56 +02:00
Set logging level of dependency
This commit is contained in:
parent
d5a687fff5
commit
702f687a8d
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue