mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
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
This commit is contained in:
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:
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Set up Huawei LTE component."""
|
"""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:
|
if DOMAIN not in hass.data:
|
||||||
hass.data[DOMAIN] = HuaweiLteData(hass_config=config, routers={})
|
hass.data[DOMAIN] = HuaweiLteData(hass_config=config, routers={})
|
||||||
|
|
||||||
|
@ -16,5 +16,5 @@
|
|||||||
],
|
],
|
||||||
"codeowners": ["@scop", "@fphammerle"],
|
"codeowners": ["@scop", "@fphammerle"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["huawei_lte_api"]
|
"loggers": ["huawei_lte_api.Session"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user