Reset logging level in esphome test (#143291)

This commit is contained in:
Marc Mueller
2025-04-19 23:59:45 +02:00
committed by GitHub
parent ec55f716e1
commit 8f4435019b

View File

@@ -958,8 +958,10 @@ async def test_debug_logging(
[APIClient, list[EntityInfo], list[UserService], list[EntityState]],
Awaitable[MockConfigEntry],
],
caplog: pytest.LogCaptureFixture,
) -> None:
"""Test enabling and disabling debug logging."""
with caplog.at_level(logging.NOTSET, "homeassistant.components.esphome"):
assert await async_setup_component(hass, "logger", {"logger": {}})
await mock_generic_device_entry(
mock_client=mock_client,