1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-20 04:57:08 +00:00
J. Nick Koston 8792d664e7
Add websocket endpoints to control integration logging ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik <erik@montnemery.com>
2022-11-17 08:57:43 -06:00

13 lines
251 B
Python

"""Test fixtures for the Logger component."""
import logging
import pytest
@pytest.fixture(autouse=True)
def restore_logging_class():
"""Restore logging class."""
klass = logging.getLoggerClass()
yield
logging.setLoggerClass(klass)