Huawei LTE logging related tweaks (#79854)
* Remove no longer needed dicttoxml logging config huawei-lte-api 1.5+ no longer uses dicttoxml. * Fix `loggers` entrypull/80134/head
parent
54fb0d7cc2
commit
9dd894a36e
|
@ -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={})
|
||||
|
||||
|
|
|
@ -16,5 +16,5 @@
|
|||
],
|
||||
"codeowners": ["@scop", "@fphammerle"],
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["huawei_lte_api"]
|
||||
"loggers": ["huawei_lte_api.Session"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue