mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Add empty line after module docstring [tests t-z] (#112712)
This commit is contained in:
parent
930a396712
commit
87165c0d6e
@ -1,4 +1,5 @@
|
|||||||
"""The sensor tests for the tado platform."""
|
"""The sensor tests for the tado platform."""
|
||||||
|
|
||||||
from homeassistant.const import STATE_OFF, STATE_ON
|
from homeassistant.const import STATE_OFF, STATE_ON
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The sensor tests for the tado platform."""
|
"""The sensor tests for the tado platform."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .util import async_init_integration
|
from .util import async_init_integration
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tado config flow."""
|
"""Test the Tado config flow."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The sensor tests for the tado platform."""
|
"""The sensor tests for the tado platform."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .util import async_init_integration
|
from .util import async_init_integration
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The sensor tests for the tado platform."""
|
"""The sensor tests for the tado platform."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .util import async_init_integration
|
from .util import async_init_integration
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for Tailscale integration tests."""
|
"""Fixtures for Tailscale 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 sensors provided by the Tailscale integration."""
|
"""Tests for the sensors provided by the Tailscale integration."""
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
STATE_OFF,
|
STATE_OFF,
|
||||||
STATE_ON,
|
STATE_ON,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the diagnostics data provided by the Tailscale integration."""
|
"""Tests for the diagnostics data provided by the Tailscale 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 Tailscale integration."""
|
"""Tests for the Tailscale integration."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from tailscale import TailscaleAuthenticationError, TailscaleConnectionError
|
from tailscale import TailscaleAuthenticationError, TailscaleConnectionError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the sensors provided by the Tailscale integration."""
|
"""Tests for the sensors provided by the Tailscale integration."""
|
||||||
|
|
||||||
from homeassistant.components.sensor import SensorDeviceClass
|
from homeassistant.components.sensor import SensorDeviceClass
|
||||||
from homeassistant.components.tailscale.const import DOMAIN
|
from homeassistant.components.tailscale.const import DOMAIN
|
||||||
from homeassistant.const import ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, EntityCategory
|
from homeassistant.const import ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, EntityCategory
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for the Tailwind integration tests."""
|
"""Fixtures for the Tailwind 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 button entities provided by the Tailwind integration."""
|
"""Tests for button entities provided by the Tailwind integration."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from gotailwind import TailwindError
|
from gotailwind import TailwindError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Configuration flow tests for the Tailwind integration."""
|
"""Configuration flow tests for the Tailwind integration."""
|
||||||
|
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for cover entities provided by the Tailwind integration."""
|
"""Tests for cover entities provided by the Tailwind integration."""
|
||||||
|
|
||||||
from unittest.mock import ANY, MagicMock
|
from unittest.mock import ANY, MagicMock
|
||||||
|
|
||||||
from gotailwind import (
|
from gotailwind import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Integration tests for the Tailwind integration."""
|
"""Integration tests for the Tailwind integration."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from gotailwind import TailwindAuthenticationError, TailwindConnectionError
|
from gotailwind import TailwindAuthenticationError, TailwindConnectionError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for number entities provided by the Tailwind integration."""
|
"""Tests for number entities provided by the Tailwind integration."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from gotailwind import TailwindError
|
from gotailwind import TailwindError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for Tankerkoenig integration tests."""
|
"""Fixtures for Tankerkoenig integration 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 @@
|
|||||||
"""Tests for Tankerkoenig config flow."""
|
"""Tests for Tankerkoenig config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from aiotankerkoenig.exceptions import TankerkoenigInvalidKeyError
|
from aiotankerkoenig.exceptions import TankerkoenigInvalidKeyError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the Tankerkoening integration."""
|
"""Tests for the Tankerkoening integration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the Tankerkoening integration."""
|
"""Tests for the Tankerkoening integration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test fixtures for Tasmota component."""
|
"""Test fixtures for Tasmota component."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from hatasmota.discovery import get_status_sensor_entities
|
from hatasmota.discovery import get_status_sensor_entities
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test config flow."""
|
"""Test config flow."""
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.service_info.mqtt import MqttServiceInfo
|
from homeassistant.helpers.service_info.mqtt import MqttServiceInfo
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Tautulli config flow."""
|
"""Test Tautulli config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
from pytautulli import exceptions
|
from pytautulli import exceptions
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the TCP binary sensor platform."""
|
"""The tests for the TCP binary sensor platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import call, patch
|
from unittest.mock import call, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the TCP sensor platform."""
|
"""The tests for the TCP sensor platform."""
|
||||||
|
|
||||||
from copy import copy
|
from copy import copy
|
||||||
from unittest.mock import call, patch
|
from unittest.mock import call, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for TechnoVE integration tests."""
|
"""Fixtures for TechnoVE integration tests."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the TechnoVE binary sensor platform."""
|
"""Tests for the TechnoVE binary sensor platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the TechnoVE sensor platform."""
|
"""Tests for the TechnoVE sensor platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the TechnoVE switch platform."""
|
"""Tests for the TechnoVE switch platform."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for Tedee integration tests."""
|
"""Fixtures for Tedee integration tests."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tedee config flow."""
|
"""Test the Tedee config flow."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from pytedee_async import (
|
from pytedee_async import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the diagnostics data provided by the Tedee integration."""
|
"""Tests for the diagnostics data provided by the Tedee 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 tedee."""
|
"""Test initialization of tedee."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from pytedee_async.exception import TedeeAuthException, TedeeClientException
|
from pytedee_async.exception import TedeeAuthException, TedeeClientException
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for tedee lock."""
|
"""Tests for tedee lock."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the telegram.notify platform."""
|
"""The tests for the telegram.notify platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant import config as hass_config
|
from homeassistant import config as hass_config
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the telegram_bot integration."""
|
"""Tests for the telegram_bot integration."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Telegram broadcast."""
|
"""Test Telegram broadcast."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the telegram_bot component."""
|
"""Tests for the telegram_bot component."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
from telegram import Update
|
from telegram import Update
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# flake8: noqa pylint: skip-file
|
# flake8: noqa pylint: skip-file
|
||||||
"""Tests for the TelldusLive config flow."""
|
"""Tests for the TelldusLive config flow."""
|
||||||
|
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the temper (USB temperature sensor) component."""
|
"""The tests for the temper (USB temperature sensor) component."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Template Binary sensor platform."""
|
"""The tests for the Template Binary sensor platform."""
|
||||||
|
|
||||||
from datetime import UTC, datetime, timedelta
|
from datetime import UTC, datetime, timedelta
|
||||||
import logging
|
import logging
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Switch config flow."""
|
"""Test the Switch config flow."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Template cover platform."""
|
"""The tests for the Template cover platform."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Template image platform."""
|
"""The tests for the Template image platform."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The test for the Template sensor platform."""
|
"""The test for the Template sensor platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Template number platform."""
|
"""The tests for the Template number platform."""
|
||||||
|
|
||||||
from homeassistant import setup
|
from homeassistant import setup
|
||||||
from homeassistant.components.input_number import (
|
from homeassistant.components.input_number import (
|
||||||
ATTR_VALUE as INPUT_NUMBER_ATTR_VALUE,
|
ATTR_VALUE as INPUT_NUMBER_ATTR_VALUE,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Template select platform."""
|
"""The tests for the Template select platform."""
|
||||||
|
|
||||||
from homeassistant import setup
|
from homeassistant import setup
|
||||||
from homeassistant.components.input_select import (
|
from homeassistant.components.input_select import (
|
||||||
ATTR_OPTION as INPUT_SELECT_ATTR_OPTION,
|
ATTR_OPTION as INPUT_SELECT_ATTR_OPTION,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The test for the Template sensor platform."""
|
"""The test for the Template sensor platform."""
|
||||||
|
|
||||||
from asyncio import Event
|
from asyncio import Event
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from unittest.mock import ANY, patch
|
from unittest.mock import ANY, patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Template automation."""
|
"""The tests for the Template automation."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Template Weather platform."""
|
"""The tests for the Template Weather platform."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Common fixutres with default mocks as well as common test helper methods."""
|
"""Common fixutres with default mocks as well as common test helper methods."""
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for binary sensors."""
|
"""Tests for binary sensors."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .conftest import (
|
from .conftest import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tesla Wall Connector config flow."""
|
"""Test the Tesla Wall Connector config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from tesla_wall_connector.exceptions import WallConnectorConnectionError
|
from tesla_wall_connector.exceptions import WallConnectorConnectionError
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tesla Wall Connector config flow."""
|
"""Test the Tesla Wall Connector config flow."""
|
||||||
|
|
||||||
from tesla_wall_connector.exceptions import WallConnectorConnectionError
|
from tesla_wall_connector.exceptions import WallConnectorConnectionError
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for sensors."""
|
"""Tests for sensors."""
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .conftest import (
|
from .conftest import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for Tessie."""
|
"""Fixtures for Tessie."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Teslemetry sensor platform."""
|
"""Test the Teslemetry sensor platform."""
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for Tessie."""
|
"""Fixtures for Tessie."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tessie button platform."""
|
"""Test the Tessie button platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tessie climate platform."""
|
"""Test the Tessie climate platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tessie sensor platform."""
|
"""Test the Tessie sensor platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from homeassistant.components.tessie import PLATFORMS
|
from homeassistant.components.tessie import PLATFORMS
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tessie cover platform."""
|
"""Test the Tessie cover platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tessie select platform."""
|
"""Test the Tessie select platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tessie sensor platform."""
|
"""Test the Tessie sensor platform."""
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tessie switch platform."""
|
"""Test the Tessie switch platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tessie update platform."""
|
"""Test the Tessie update platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the text component."""
|
"""The tests for the text component."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for text recorder."""
|
"""The tests for text recorder."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the ThermoBeacon config flow."""
|
"""Test the ThermoBeacon 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 ThermoBeacon sensors."""
|
"""Test the ThermoBeacon sensors."""
|
||||||
|
|
||||||
from homeassistant.components.sensor import ATTR_STATE_CLASS
|
from homeassistant.components.sensor import ATTR_STATE_CLASS
|
||||||
from homeassistant.components.thermobeacon.const import DOMAIN
|
from homeassistant.components.thermobeacon.const import DOMAIN
|
||||||
from homeassistant.const import ATTR_FRIENDLY_NAME, ATTR_UNIT_OF_MEASUREMENT
|
from homeassistant.const import ATTR_FRIENDLY_NAME, ATTR_UNIT_OF_MEASUREMENT
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the ThermoPro config flow."""
|
"""Test the ThermoPro 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 ThermoPro config flow."""
|
"""Test the ThermoPro config flow."""
|
||||||
|
|
||||||
from homeassistant.components.sensor import ATTR_STATE_CLASS
|
from homeassistant.components.sensor import ATTR_STATE_CLASS
|
||||||
from homeassistant.components.thermopro.const import DOMAIN
|
from homeassistant.components.thermopro.const import DOMAIN
|
||||||
from homeassistant.const import ATTR_FRIENDLY_NAME, ATTR_UNIT_OF_MEASUREMENT
|
from homeassistant.const import ATTR_FRIENDLY_NAME, ATTR_UNIT_OF_MEASUREMENT
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Thread config flow."""
|
"""Test the Thread config flow."""
|
||||||
|
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Threshold config flow."""
|
"""Test the Threshold config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Tibber config flow."""
|
"""Tests for Tibber config flow."""
|
||||||
|
|
||||||
from asyncio import TimeoutError
|
from asyncio import TimeoutError
|
||||||
from unittest.mock import AsyncMock, MagicMock, PropertyMock, patch
|
from unittest.mock import AsyncMock, MagicMock, PropertyMock, patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Netatmo diagnostics."""
|
"""Test the Netatmo diagnostics."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from homeassistant.components.recorder import Recorder
|
from homeassistant.components.recorder import Recorder
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test adding external statistics from Tibber."""
|
"""Test adding external statistics from Tibber."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
from homeassistant.components.recorder import Recorder
|
from homeassistant.components.recorder import Recorder
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Define tests for the Tile config flow."""
|
"""Define tests for the Tile config flow."""
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Tile diagnostics."""
|
"""Test Tile diagnostics."""
|
||||||
|
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tilt config flow."""
|
"""Test the Tilt 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 @@
|
|||||||
"""The tests for the time component."""
|
"""The tests for the time component."""
|
||||||
|
|
||||||
from datetime import time
|
from datetime import time
|
||||||
|
|
||||||
from homeassistant.components.time import DOMAIN, SERVICE_SET_VALUE, TimeEntity
|
from homeassistant.components.time import DOMAIN, SERVICE_SET_VALUE, TimeEntity
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Fixtures for Time & Date integration tests."""
|
"""Fixtures for Time & Date integration 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 Time & Date config flow."""
|
"""Test the Time & Date config flow."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the timer component."""
|
"""The tests for the timer component."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test Times of the Day Binary Sensor."""
|
"""Test Times of the Day Binary Sensor."""
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Times of the Day config flow."""
|
"""Test the Times of the Day config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Common fixtures for the todoist tests."""
|
"""Common fixtures for the todoist tests."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Unit tests for the Todoist calendar platform."""
|
"""Unit tests for the Todoist calendar platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Unit tests for the Todoist integration."""
|
"""Unit tests for the Todoist integration."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Unit tests for the Todoist todo platform."""
|
"""Unit tests for the Todoist todo platform."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the TOLO Sauna config flow."""
|
"""Tests for the TOLO Sauna config flow."""
|
||||||
|
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""The tests for the Tomato device tracker platform."""
|
"""The tests for the Tomato device tracker platform."""
|
||||||
|
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Constants for tomorrowio tests."""
|
"""Constants for tomorrowio tests."""
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_API_KEY,
|
CONF_API_KEY,
|
||||||
CONF_LATITUDE,
|
CONF_LATITUDE,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Test the Tomorrow.io config flow."""
|
"""Test the Tomorrow.io config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pytomorrowio.exceptions import (
|
from pytomorrowio.exceptions import (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Tomorrow.io init."""
|
"""Tests for Tomorrow.io init."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Tomorrow.io sensor entities."""
|
"""Tests for Tomorrow.io sensor entities."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for Tomorrow.io weather entity."""
|
"""Tests for Tomorrow.io weather entity."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the Toon config flow."""
|
"""Tests for the Toon config flow."""
|
||||||
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Common methods used across tests for TotalConnect."""
|
"""Common methods used across tests for TotalConnect."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from total_connect_client import ArmingState, ResultCode, ZoneStatus, ZoneType
|
from total_connect_client import ArmingState, ResultCode, ZoneStatus, ZoneType
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
"""Tests for the TotalConnect alarm control panel device."""
|
"""Tests for the TotalConnect alarm control panel device."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
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