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:
puddly 2024-01-23 21:04:59 -05:00 committed by GitHub
parent 87898b7487
commit 22eed5419e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -199,11 +199,11 @@ class Endpoint:
results = await gather(*tasks, return_exceptions=True)
for cluster_handler, outcome in zip(cluster_handlers, results):
if isinstance(outcome, Exception):
cluster_handler.warning(
cluster_handler.debug(
"'%s' stage failed: %s", func_name, str(outcome), exc_info=outcome
)
continue
cluster_handler.debug("'%s' stage succeeded", func_name)
else:
cluster_handler.debug("'%s' stage succeeded", func_name)
def async_new_entity(
self,

View file

@ -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.await_count == 1
assert ch_3.warning.call_count == 2
assert ch_5.warning.call_count == 2
assert ch_3.debug.call_count == 2
assert ch_5.debug.call_count == 2
async def test_poll_control_configure(poll_control_ch) -> None: