From 9dd894a36e7dafac0bec15602c40dec6569a8277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 11 Oct 2022 22:49:02 +0300 Subject: [PATCH] Huawei LTE logging related tweaks (#79854) * Remove no longer needed dicttoxml logging config huawei-lte-api 1.5+ no longer uses dicttoxml. * Fix `loggers` entry --- homeassistant/components/huawei_lte/__init__.py | 4 ---- homeassistant/components/huawei_lte/manifest.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/huawei_lte/__init__.py b/homeassistant/components/huawei_lte/__init__.py index b51d01f0fd7..17646fa3ed6 100644 --- a/homeassistant/components/huawei_lte/__init__.py +++ b/homeassistant/components/huawei_lte/__init__.py @@ -490,10 +490,6 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: """Set up Huawei LTE component.""" - # dicttoxml (used by huawei-lte-api) has uselessly verbose INFO level. - # https://github.com/quandyfactory/dicttoxml/issues/60 - logging.getLogger("dicttoxml").setLevel(logging.WARNING) - if DOMAIN not in hass.data: hass.data[DOMAIN] = HuaweiLteData(hass_config=config, routers={}) diff --git a/homeassistant/components/huawei_lte/manifest.json b/homeassistant/components/huawei_lte/manifest.json index 473d8df3124..c658fff1b0f 100644 --- a/homeassistant/components/huawei_lte/manifest.json +++ b/homeassistant/components/huawei_lte/manifest.json @@ -16,5 +16,5 @@ ], "codeowners": ["@scop", "@fphammerle"], "iot_class": "local_polling", - "loggers": ["huawei_lte_api"] + "loggers": ["huawei_lte_api.Session"] }