mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add empty line after module docstring [tests l-p] (#112710)
This commit is contained in:
parent
7cbe49520e
commit
1722e23df8
@ -1,4 +1,5 @@
|
|||||||
"""Define fixtures for LaCrosse View tests."""
|
"""Define fixtures for LaCrosse View tests."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the LaCrosse View config flow."""
|
"""Test the LaCrosse View config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
from lacrosse_view import Location, LoginError
|
from lacrosse_view import Location, LoginError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test diagnostics of LaCrosse View."""
|
"""Test diagnostics of LaCrosse View."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from syrupy.assertion import SnapshotAssertion
|
from syrupy.assertion import SnapshotAssertion
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the LaCrosse View initialization."""
|
"""Test the LaCrosse View initialization."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the LaCrosse View sensors."""
|
"""Test the LaCrosse View sensors."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for La Marzocco binary sensors."""
|
"""Tests for La Marzocco binary sensors."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the La Marzocco config flow."""
|
"""Test the La Marzocco config flow."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the diagnostics data provided by the La Marzocco integration."""
|
"""Tests for the diagnostics data provided by the La Marzocco integration."""
|
||||||
|
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test initialization of lamarzocco."""
|
"""Test initialization of lamarzocco."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for La Marzocco sensors."""
|
"""Tests for La Marzocco sensors."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for La Marzocco switches."""
|
"""Tests for La Marzocco switches."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for LaMetric integration tests."""
|
"""Fixtures for LaMetric integration tests."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric button platform."""
|
"""Tests for the LaMetric button platform."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from demetriek import LaMetricConnectionError, LaMetricError
|
from demetriek import LaMetricConnectionError, LaMetricError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric config flow."""
|
"""Tests for the LaMetric config flow."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the diagnostics data provided by the LaMetric integration."""
|
"""Tests for the diagnostics data provided by the LaMetric integration."""
|
||||||
|
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric helpers."""
|
"""Tests for the LaMetric helpers."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric integration."""
|
"""Tests for the LaMetric integration."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from demetriek import (
|
from demetriek import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric notify platform."""
|
"""Tests for the LaMetric notify platform."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from demetriek import (
|
from demetriek import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric number platform."""
|
"""Tests for the LaMetric number platform."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from demetriek import LaMetricConnectionError, LaMetricError
|
from demetriek import LaMetricConnectionError, LaMetricError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric select platform."""
|
"""Tests for the LaMetric select platform."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from demetriek import BrightnessMode, LaMetricConnectionError, LaMetricError
|
from demetriek import BrightnessMode, LaMetricConnectionError, LaMetricError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric services."""
|
"""Tests for the LaMetric services."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from demetriek import (
|
from demetriek import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LaMetric switch platform."""
|
"""Tests for the LaMetric switch platform."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from demetriek import LaMetricConnectionError, LaMetricError
|
from demetriek import LaMetricConnectionError, LaMetricError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Define fixtures for Landis + Gyr Heat Meter tests."""
|
"""Define fixtures for Landis + Gyr Heat Meter tests."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Landis + Gyr Heat Meter config flow."""
|
"""Test the Landis + Gyr Heat Meter config flow."""
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Landis + Gyr Heat Meter init."""
|
"""Test the Landis + Gyr Heat Meter init."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant.components.landisgyr_heat_meter.const import (
|
from homeassistant.components.landisgyr_heat_meter.const import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Configure tests for the LastFM integration."""
|
"""Configure tests for the LastFM integration."""
|
||||||
|
|
||||||
from collections.abc import Awaitable, Callable
|
from collections.abc import Awaitable, Callable
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Lastfm config flow."""
|
"""Test Lastfm config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pylast import WSError
|
from pylast import WSError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test LastFM component setup process."""
|
"""Test LastFM component setup process."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.components.lastfm.const import DOMAIN
|
from homeassistant.components.lastfm.const import DOMAIN
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test launch_library config flow."""
|
"""Test launch_library config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant import data_entry_flow
|
from homeassistant import data_entry_flow
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the lawn mower integration."""
|
"""The tests for the lawn mower integration."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test for the LCN binary sensor platform."""
|
"""Test for the LCN binary sensor platform."""
|
||||||
|
|
||||||
from pypck.inputs import ModStatusBinSensors, ModStatusKeyLocks, ModStatusVar
|
from pypck.inputs import ModStatusBinSensors, ModStatusKeyLocks, ModStatusVar
|
||||||
from pypck.lcn_addr import LcnAddr
|
from pypck.lcn_addr import LcnAddr
|
||||||
from pypck.lcn_defs import Var, VarValue
|
from pypck.lcn_defs import Var, VarValue
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the LCN config flow."""
|
"""Tests for the LCN config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pypck.connection import PchkAuthenticationError, PchkLicenseError
|
from pypck.connection import PchkAuthenticationError, PchkLicenseError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test for the LCN cover platform."""
|
"""Test for the LCN cover platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pypck.inputs import ModStatusOutput, ModStatusRelays
|
from pypck.inputs import ModStatusOutput, ModStatusRelays
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for LCN device triggers."""
|
"""Tests for LCN device triggers."""
|
||||||
|
|
||||||
from pypck.inputs import ModSendKeysHost, ModStatusAccessControl
|
from pypck.inputs import ModSendKeysHost, ModStatusAccessControl
|
||||||
from pypck.lcn_addr import LcnAddr
|
from pypck.lcn_addr import LcnAddr
|
||||||
from pypck.lcn_defs import AccessControlPeriphery, KeyAction, SendKeyCommand
|
from pypck.lcn_defs import AccessControlPeriphery, KeyAction, SendKeyCommand
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for LCN events."""
|
"""Tests for LCN events."""
|
||||||
|
|
||||||
from pypck.inputs import Input, ModSendKeysHost, ModStatusAccessControl
|
from pypck.inputs import Input, ModSendKeysHost, ModStatusAccessControl
|
||||||
from pypck.lcn_addr import LcnAddr
|
from pypck.lcn_addr import LcnAddr
|
||||||
from pypck.lcn_defs import AccessControlPeriphery, KeyAction, SendKeyCommand
|
from pypck.lcn_defs import AccessControlPeriphery, KeyAction, SendKeyCommand
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test init of LCN integration."""
|
"""Test init of LCN integration."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pypck.connection import (
|
from pypck.connection import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test for the LCN light platform."""
|
"""Test for the LCN light platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pypck.inputs import ModStatusOutput, ModStatusRelays
|
from pypck.inputs import ModStatusOutput, ModStatusRelays
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test for the LCN sensor platform."""
|
"""Test for the LCN sensor platform."""
|
||||||
|
|
||||||
from pypck.inputs import ModStatusLedsAndLogicOps, ModStatusVar
|
from pypck.inputs import ModStatusLedsAndLogicOps, ModStatusVar
|
||||||
from pypck.lcn_addr import LcnAddr
|
from pypck.lcn_addr import LcnAddr
|
||||||
from pypck.lcn_defs import LedStatus, LogicOpStatus, Var, VarValue
|
from pypck.lcn_defs import LedStatus, LogicOpStatus, Var, VarValue
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test for the LCN switch platform."""
|
"""Test for the LCN switch platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pypck.inputs import ModStatusOutput, ModStatusRelays
|
from pypck.inputs import ModStatusOutput, ModStatusRelays
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the LD2410 BLE Bluetooth config flow."""
|
"""Test the LD2410 BLE Bluetooth config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from bleak import BleakError
|
from bleak import BleakError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Leaone config flow."""
|
"""Test the Leaone config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the LED BLE Bluetooth config flow."""
|
"""Test the LED BLE Bluetooth config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from bleak import BleakError
|
from bleak import BleakError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the lg_soundbar config flow."""
|
"""Test the lg_soundbar config flow."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Configure pytest for Lidarr tests."""
|
"""Configure pytest for Lidarr tests."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Awaitable, Callable, Generator
|
from collections.abc import Awaitable, Callable, Generator
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Lidarr config flow."""
|
"""Test Lidarr config flow."""
|
||||||
|
|
||||||
from homeassistant.components.lidarr.const import DEFAULT_NAME, DOMAIN
|
from homeassistant.components.lidarr.const import DEFAULT_NAME, DOMAIN
|
||||||
from homeassistant.config_entries import SOURCE_REAUTH, SOURCE_USER
|
from homeassistant.config_entries import SOURCE_REAUTH, SOURCE_USER
|
||||||
from homeassistant.const import CONF_API_KEY, CONF_SOURCE
|
from homeassistant.const import CONF_API_KEY, CONF_SOURCE
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Lidarr integration."""
|
"""Test Lidarr integration."""
|
||||||
|
|
||||||
from homeassistant.components.lidarr.const import DEFAULT_NAME, DOMAIN
|
from homeassistant.components.lidarr.const import DEFAULT_NAME, DOMAIN
|
||||||
from homeassistant.config_entries import ConfigEntryState
|
from homeassistant.config_entries import ConfigEntryState
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for Lidarr sensor platform."""
|
"""The tests for Lidarr sensor platform."""
|
||||||
|
|
||||||
from homeassistant.components.sensor import CONF_STATE_CLASS, SensorStateClass
|
from homeassistant.components.sensor import CONF_STATE_CLASS, SensorStateClass
|
||||||
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT
|
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the lifx integration."""
|
"""Tests for the lifx integration."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the lifx binary sensor platform."""
|
"""Test the lifx binary sensor platform."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for button platform."""
|
"""Tests for button platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the lifx integration config flow."""
|
"""Tests for the lifx integration config flow."""
|
||||||
|
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
import socket
|
import socket
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test LIFX diagnostics."""
|
"""Test LIFX diagnostics."""
|
||||||
|
|
||||||
from homeassistant.components import lifx
|
from homeassistant.components import lifx
|
||||||
from homeassistant.const import CONF_HOST
|
from homeassistant.const import CONF_HOST
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the lifx component."""
|
"""Tests for the lifx component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests the lifx migration."""
|
"""Tests the lifx migration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the lifx integration select entity."""
|
"""Tests for the lifx integration select entity."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from homeassistant.components import lifx
|
from homeassistant.components import lifx
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the LIFX sensor platform."""
|
"""Test the LIFX sensor platform."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
All containing methods are legacy helpers that should not be used by new
|
All containing methods are legacy helpers that should not be used by new
|
||||||
components. Instead call the service directly.
|
components. Instead call the service directly.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
ATTR_BRIGHTNESS,
|
ATTR_BRIGHTNESS,
|
||||||
ATTR_BRIGHTNESS_PCT,
|
ATTR_BRIGHTNESS_PCT,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The test for light device automation."""
|
"""The test for light device automation."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The test for light device automation."""
|
"""The test for light device automation."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Light component."""
|
"""The tests for the Light component."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock, mock_open, patch
|
from unittest.mock import MagicMock, mock_open, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the light intents."""
|
"""Tests for the light intents."""
|
||||||
|
|
||||||
from homeassistant.components import light
|
from homeassistant.components import light
|
||||||
from homeassistant.components.light import ATTR_SUPPORTED_COLOR_MODES, ColorMode, intent
|
from homeassistant.components.light import ATTR_SUPPORTED_COLOR_MODES, ColorMode, intent
|
||||||
from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_ON
|
from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_ON
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for light recorder."""
|
"""The tests for light recorder."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Light significant change platform."""
|
"""Test the Light significant change platform."""
|
||||||
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
ATTR_BRIGHTNESS,
|
ATTR_BRIGHTNESS,
|
||||||
ATTR_COLOR_TEMP,
|
ATTR_COLOR_TEMP,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for LiteJet testing."""
|
"""Fixtures for LiteJet testing."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import AsyncMock, Mock, patch
|
from unittest.mock import AsyncMock, Mock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the litejet component."""
|
"""The tests for the litejet component."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from serial import SerialException
|
from serial import SerialException
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the litejet component."""
|
"""The tests for the litejet component."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from . import async_init_integration
|
from . import async_init_integration
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the litejet component."""
|
"""The tests for the litejet component."""
|
||||||
|
|
||||||
from homeassistant.components import litejet
|
from homeassistant.components import litejet
|
||||||
from homeassistant.components.litejet.const import DOMAIN
|
from homeassistant.components.litejet.const import DOMAIN
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the litejet component."""
|
"""The tests for the litejet component."""
|
||||||
|
|
||||||
from homeassistant.components import light
|
from homeassistant.components import light
|
||||||
from homeassistant.components.light import ATTR_BRIGHTNESS, ATTR_TRANSITION
|
from homeassistant.components.light import ATTR_BRIGHTNESS, ATTR_TRANSITION
|
||||||
from homeassistant.components.litejet.const import CONF_DEFAULT_TRANSITION
|
from homeassistant.components.litejet.const import CONF_DEFAULT_TRANSITION
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the litejet component."""
|
"""The tests for the litejet component."""
|
||||||
|
|
||||||
from homeassistant.components import scene
|
from homeassistant.components import scene
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the litejet component."""
|
"""The tests for the litejet component."""
|
||||||
|
|
||||||
from homeassistant.components import switch
|
from homeassistant.components import switch
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the litejet component."""
|
"""The tests for the litejet component."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Common utils for Litter-Robot tests."""
|
"""Common utils for Litter-Robot tests."""
|
||||||
|
|
||||||
from homeassistant.components.litterrobot import DOMAIN
|
from homeassistant.components.litterrobot import DOMAIN
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Configure pytest for Litter-Robot tests."""
|
"""Configure pytest for Litter-Robot tests."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot binary sensor entity."""
|
"""Test the Litter-Robot binary sensor entity."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot button entity."""
|
"""Test the Litter-Robot button entity."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot config flow."""
|
"""Test the Litter-Robot config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pylitterbot import Account
|
from pylitterbot import Account
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Litter-Robot setup process."""
|
"""Test Litter-Robot setup process."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
from pylitterbot.exceptions import LitterRobotException, LitterRobotLoginException
|
from pylitterbot.exceptions import LitterRobotException, LitterRobotLoginException
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot select entity."""
|
"""Test the Litter-Robot select entity."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, MagicMock
|
from unittest.mock import AsyncMock, MagicMock
|
||||||
|
|
||||||
from pylitterbot import LitterRobot3, LitterRobot4
|
from pylitterbot import LitterRobot3, LitterRobot4
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot sensor entity."""
|
"""Test the Litter-Robot sensor entity."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot switch entity."""
|
"""Test the Litter-Robot switch entity."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from pylitterbot import Robot
|
from pylitterbot import Robot
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot time entity."""
|
"""Test the Litter-Robot time entity."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import datetime, time
|
from datetime import datetime, time
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot update entity."""
|
"""Test the Litter-Robot update entity."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, MagicMock
|
from unittest.mock import AsyncMock, MagicMock
|
||||||
|
|
||||||
from pylitterbot import LitterRobot4
|
from pylitterbot import LitterRobot4
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Litter-Robot vacuum entity."""
|
"""Test the Litter-Robot vacuum entity."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Livisi Home Assistant config flow."""
|
"""Test the Livisi Home Assistant config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from aiolivisi import errors as livisi_errors
|
from aiolivisi import errors as livisi_errors
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Local Calendar config flow."""
|
"""Test the Local Calendar config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for diagnostics platform of local calendar."""
|
"""Tests for diagnostics platform of local calendar."""
|
||||||
|
|
||||||
from aiohttp.test_utils import TestClient
|
from aiohttp.test_utils import TestClient
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for local file camera component."""
|
"""The tests for local file camera component."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the local_ip config_flow."""
|
"""Tests for the local_ip config_flow."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant import data_entry_flow
|
from homeassistant import data_entry_flow
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the local_ip component."""
|
"""Tests for the local_ip component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Common fixtures for the local_todo tests."""
|
"""Common fixtures for the local_todo tests."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the local_todo config flow."""
|
"""Test the local_todo config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests the for Locative device tracker platform."""
|
"""The tests the for Locative device tracker platform."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for Lock device triggers."""
|
"""The tests for Lock device triggers."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the lock component."""
|
"""The tests for the lock component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Lock significant change platform."""
|
"""Test the Lock significant change platform."""
|
||||||
|
|
||||||
from homeassistant.components.lock.significant_change import (
|
from homeassistant.components.lock.significant_change import (
|
||||||
async_check_significant_change,
|
async_check_significant_change,
|
||||||
)
|
)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the logbook component."""
|
"""Tests for the logbook component."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the logbook component models."""
|
"""The tests for the logbook component models."""
|
||||||
|
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
from homeassistant.components.logbook.models import LazyEventPartialState
|
from homeassistant.components.logbook.models import LazyEventPartialState
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Logentries component."""
|
"""The tests for the Logentries component."""
|
||||||
|
|
||||||
from unittest.mock import ANY, call, patch
|
from unittest.mock import ANY, call, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Logger component."""
|
"""The tests for the Logger component."""
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the london_air platform."""
|
"""The tests for the london_air platform."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
|
||||||
import requests_mock
|
import requests_mock
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user