Set debug level of irm-kmi-api to follow the integration

This commit is contained in:
Jules 2025-05-03 18:30:31 +02:00
parent d0d542c3fe
commit ef5d3ad126
Signed by: jdejaegh
GPG key ID: 99D6D184CA66933A
3 changed files with 4 additions and 2 deletions

View file

@ -22,6 +22,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass.data.setdefault(DOMAIN, {})
hass.data[DOMAIN][entry.entry_id] = coordinator = IrmKmiCoordinator(hass, entry)
# 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())
try:
# https://developers.home-assistant.io/docs/integration_fetching_data#coordinated-single-api-poll-for-data-for-all-entities
await coordinator.async_config_entry_first_refresh()

View file

@ -9,7 +9,7 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/jdejaegh/irm-kmi-ha/issues",
"requirements": [
"irm-kmi-api>=0.1.3,<1.0.0"
"irm-kmi-api>=0.1.4,<1.0.0"
],
"version": "0.2.32"
}

View file

@ -1,4 +1,4 @@
aiohttp==3.11.13
homeassistant==2025.3.1
voluptuous==0.15.2
irm-kmi-api>=0.1.3,<1.0.0
irm-kmi-api>=0.1.4,<1.0.0