mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 14:47:38 +00:00
Reset logging level in esphome test (#143291)
This commit is contained in:
parent
ec55f716e1
commit
8f4435019b
@ -958,8 +958,10 @@ async def test_debug_logging(
|
|||||||
[APIClient, list[EntityInfo], list[UserService], list[EntityState]],
|
[APIClient, list[EntityInfo], list[UserService], list[EntityState]],
|
||||||
Awaitable[MockConfigEntry],
|
Awaitable[MockConfigEntry],
|
||||||
],
|
],
|
||||||
|
caplog: pytest.LogCaptureFixture,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test enabling and disabling debug logging."""
|
"""Test enabling and disabling debug logging."""
|
||||||
|
with caplog.at_level(logging.NOTSET, "homeassistant.components.esphome"):
|
||||||
assert await async_setup_component(hass, "logger", {"logger": {}})
|
assert await async_setup_component(hass, "logger", {"logger": {}})
|
||||||
await mock_generic_device_entry(
|
await mock_generic_device_entry(
|
||||||
mock_client=mock_client,
|
mock_client=mock_client,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user