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
pull/80134/head
Ville Skyttä 2022-10-11 22:49:02 +03:00 committed by GitHub
parent 54fb0d7cc2
commit 9dd894a36e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -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={})

View File

@ -16,5 +16,5 @@
],
"codeowners": ["@scop", "@fphammerle"],
"iot_class": "local_polling",
"loggers": ["huawei_lte_api"]
"loggers": ["huawei_lte_api.Session"]
}