mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Reduce log level of ZHA endpoint handler init (#108749)
* Reduce the log level of endpoint handler init failure to debug * Reduce log level in unit test
This commit is contained in:
parent
87898b7487
commit
22eed5419e
@ -199,11 +199,11 @@ class Endpoint:
|
|||||||
results = await gather(*tasks, return_exceptions=True)
|
results = await gather(*tasks, return_exceptions=True)
|
||||||
for cluster_handler, outcome in zip(cluster_handlers, results):
|
for cluster_handler, outcome in zip(cluster_handlers, results):
|
||||||
if isinstance(outcome, Exception):
|
if isinstance(outcome, Exception):
|
||||||
cluster_handler.warning(
|
cluster_handler.debug(
|
||||||
"'%s' stage failed: %s", func_name, str(outcome), exc_info=outcome
|
"'%s' stage failed: %s", func_name, str(outcome), exc_info=outcome
|
||||||
)
|
)
|
||||||
continue
|
else:
|
||||||
cluster_handler.debug("'%s' stage succeeded", func_name)
|
cluster_handler.debug("'%s' stage succeeded", func_name)
|
||||||
|
|
||||||
def async_new_entity(
|
def async_new_entity(
|
||||||
self,
|
self,
|
||||||
|
@ -591,8 +591,8 @@ async def test_ep_cluster_handlers_configure(cluster_handler) -> None:
|
|||||||
assert ch.async_configure.call_count == 1
|
assert ch.async_configure.call_count == 1
|
||||||
assert ch.async_configure.await_count == 1
|
assert ch.async_configure.await_count == 1
|
||||||
|
|
||||||
assert ch_3.warning.call_count == 2
|
assert ch_3.debug.call_count == 2
|
||||||
assert ch_5.warning.call_count == 2
|
assert ch_5.debug.call_count == 2
|
||||||
|
|
||||||
|
|
||||||
async def test_poll_control_configure(poll_control_ch) -> None:
|
async def test_poll_control_configure(poll_control_ch) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user