mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Cleanup unused loggers (#46510)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"""Tests for the Hyperion component."""
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from types import TracebackType
|
||||
from typing import Any, Dict, Optional, Type
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
@@ -63,8 +62,6 @@ TEST_AUTH_NOT_REQUIRED_RESP = {
|
||||
"info": {"required": False},
|
||||
}
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class AsyncContextManagerMock(Mock):
|
||||
"""An async context manager mock for Hyperion."""
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"""Tests for the Hyperion config flow."""
|
||||
|
||||
import logging
|
||||
from typing import Any, Dict, Optional
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
@@ -41,8 +39,6 @@ from . import (
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
TEST_IP_ADDRESS = "192.168.0.1"
|
||||
TEST_HOST_PORT: Dict[str, Any] = {
|
||||
CONF_HOST: TEST_HOST,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""Tests for the Hyperion integration."""
|
||||
import logging
|
||||
from typing import Optional
|
||||
from unittest.mock import AsyncMock, Mock, call, patch
|
||||
|
||||
@@ -52,8 +51,6 @@ from . import (
|
||||
setup_test_config_entry,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
COLOR_BLACK = color_util.COLORS["black"]
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""Tests for the Hyperion integration."""
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, call, patch
|
||||
|
||||
from hyperion.const import (
|
||||
@@ -35,7 +34,6 @@ TEST_COMPONENTS = [
|
||||
{"enabled": True, "name": "LEDDEVICE"},
|
||||
]
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
TEST_SWITCH_COMPONENT_BASE_ENTITY_ID = "switch.test_instance_1_component"
|
||||
TEST_SWITCH_COMPONENT_ALL_ENTITY_ID = f"{TEST_SWITCH_COMPONENT_BASE_ENTITY_ID}_all"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user