Clean up unused loggers (#57662)
This commit is contained in:
parent
fdc6d9e004
commit
488a636aec
88 changed files with 0 additions and 292 deletions
|
@ -1,5 +1,4 @@
|
|||
"""Test the ClimaCell config flow."""
|
||||
import logging
|
||||
from unittest.mock import patch
|
||||
|
||||
from pyclimacell.exceptions import (
|
||||
|
@ -34,8 +33,6 @@ from .const import API_KEY, MIN_CONFIG
|
|||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def test_user_flow_minimum_fields(hass: HomeAssistant) -> None:
|
||||
"""Test user config flow with minimum fields."""
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
"""Tests for Climacell init."""
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.climacell.config_flow import (
|
||||
|
@ -16,8 +14,6 @@ from .const import API_V3_ENTRY_DATA, MIN_CONFIG, V1_ENTRY_DATA
|
|||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def test_load_and_unload(
|
||||
hass: HomeAssistant,
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime
|
||||
import logging
|
||||
from typing import Any
|
||||
from unittest.mock import patch
|
||||
|
||||
|
@ -23,7 +22,6 @@ from .const import API_V3_ENTRY_DATA, API_V4_ENTRY_DATA
|
|||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
CC_SENSOR_ENTITY_ID = "sensor.climacell_{}"
|
||||
|
||||
O3 = "ozone"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime
|
||||
import logging
|
||||
from typing import Any
|
||||
from unittest.mock import patch
|
||||
|
||||
|
@ -51,8 +50,6 @@ from .const import API_V3_ENTRY_DATA, API_V4_ENTRY_DATA
|
|||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@callback
|
||||
def _enable_entity(hass: HomeAssistant, entity_name: str) -> None:
|
||||
|
|
|
@ -4,7 +4,6 @@ from __future__ import annotations
|
|||
import asyncio
|
||||
import base64
|
||||
from collections.abc import Awaitable
|
||||
import logging
|
||||
from typing import Callable
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
|
||||
|
@ -39,7 +38,6 @@ from . import (
|
|||
setup_test_config_entry,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
TEST_CAMERA_ENTITY_ID = "camera.test_instance_1"
|
||||
TEST_IMAGE_DATA = "TEST DATA"
|
||||
TEST_IMAGE_UPDATE = {
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
"""The tests for the litejet component."""
|
||||
import logging
|
||||
|
||||
from homeassistant.components import light
|
||||
from homeassistant.components.light import ATTR_BRIGHTNESS, ATTR_TRANSITION
|
||||
from homeassistant.components.litejet.const import CONF_DEFAULT_TRANSITION
|
||||
|
@ -8,8 +6,6 @@ from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_OFF, SERVICE_TURN_O
|
|||
|
||||
from . import async_init_integration
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ENTITY_LIGHT = "light.mock_load_1"
|
||||
ENTITY_LIGHT_NUMBER = 1
|
||||
ENTITY_OTHER_LIGHT = "light.mock_load_2"
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
"""The tests for the litejet component."""
|
||||
import logging
|
||||
|
||||
from homeassistant.components import switch
|
||||
from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_OFF, SERVICE_TURN_ON
|
||||
|
||||
from . import async_init_integration
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ENTITY_SWITCH = "switch.mock_switch_1"
|
||||
ENTITY_SWITCH_NUMBER = 1
|
||||
ENTITY_OTHER_SWITCH = "switch.mock_switch_2"
|
||||
|
|
|
@ -21,8 +21,6 @@ TEST_MODBUS_HOST = "modbusHost"
|
|||
TEST_PORT_TCP = 5501
|
||||
TEST_PORT_SERIAL = "usb01"
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass
|
||||
class ReadResult:
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""Test the motionEye config flow."""
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
from motioneye_client.client import (
|
||||
|
@ -25,8 +24,6 @@ from . import TEST_URL, create_mock_motioneye_client, create_mock_motioneye_conf
|
|||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def test_user_success(hass: HomeAssistant) -> None:
|
||||
"""Test successful user flow."""
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
"""Test the motionEye camera web hooks."""
|
||||
import copy
|
||||
import logging
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, call, patch
|
||||
|
||||
|
@ -50,9 +49,6 @@ from . import (
|
|||
|
||||
from tests.common import async_capture_events
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
WEB_HOOK_MOTION_DETECTED_QUERY_STRING = (
|
||||
"camera_id=%t&changed_pixels=%D&despeckle_labels=%Q&event=%v&fps=%{fps}"
|
||||
"&frame_number=%q&height=%h&host=%{host}&motion_center_x=%K&motion_center_y=%L"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""Tests for the Netgear config flow."""
|
||||
import logging
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from pynetgear import DEFAULT_HOST, DEFAULT_PORT, DEFAULT_USER
|
||||
|
@ -19,8 +18,6 @@ from homeassistant.const import (
|
|||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
URL = "http://routerlogin.net"
|
||||
SERIAL = "5ER1AL0000001"
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""Test the sia config flow."""
|
||||
import logging
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
@ -21,9 +20,6 @@ from homeassistant.setup import async_setup_component
|
|||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
BASIS_CONFIG_ENTRY_ID = 1
|
||||
BASIC_CONFIG = {
|
||||
CONF_PORT: 7777,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue