Add empty line after module docstring (2) [tests.components] (#112737)
parent
2c06d4fcb9
commit
32f3f46542
|
@ -1,4 +1,5 @@
|
|||
"""Test AccuWeather system health."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import Mock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the AdGuard Home config flow."""
|
||||
|
||||
import aiohttp
|
||||
|
||||
from homeassistant import config_entries, data_entry_flow
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The sensor tests for the AEMET OpenData platform."""
|
||||
|
||||
import datetime
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the Agent DVR config flow."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the Air Quality component."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.air_quality import ATTR_N2O, ATTR_OZONE, ATTR_PM_10
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Airly system health."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import Mock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Define fixtures for AirNow tests."""
|
||||
|
||||
import json
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Airthings Wave sensor."""
|
||||
|
||||
import logging
|
||||
|
||||
from homeassistant.components.airthings_ble.const import DOMAIN
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The climate tests for the Airzone platform."""
|
||||
|
||||
import copy
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Alarm control panel device actions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Alarm control panel device conditions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test reproduce state for Alarm control panel."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.const import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Alarm Control Panel significant change platform."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.alarm_control_panel import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test reproduce state for Alert."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test config."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test report state."""
|
||||
|
||||
import json
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Define test fixtures for Ambient PWS."""
|
||||
|
||||
import json
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test init of APCUPSd integration."""
|
||||
|
||||
import asyncio
|
||||
from collections import OrderedDict
|
||||
from unittest.mock import patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the Home Assistant API component."""
|
||||
|
||||
import asyncio
|
||||
from http import HTTPStatus
|
||||
import json
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Arcam FMJ Receiver control device triggers."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.arcam_fmj.const import DOMAIN
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Voice Assistant init."""
|
||||
|
||||
import asyncio
|
||||
from dataclasses import asdict
|
||||
import itertools as it
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for voice command segmenter."""
|
||||
|
||||
import itertools as it
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Websocket tests for Voice Assistant integration."""
|
||||
|
||||
import asyncio
|
||||
import base64
|
||||
from typing import Any
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Provide common Atag fixtures."""
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The binary_sensor tests for the august platform."""
|
||||
|
||||
import datetime
|
||||
import time
|
||||
from unittest.mock import Mock, patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The lock tests for the august platform."""
|
||||
|
||||
import datetime
|
||||
from unittest.mock import Mock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test configuration for auth."""
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the client validator."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test built-in blueprints."""
|
||||
|
||||
import asyncio
|
||||
import contextlib
|
||||
from datetime import timedelta
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the automation component."""
|
||||
|
||||
import asyncio
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test reproduce state for Automation."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the aws component config and setup."""
|
||||
|
||||
import json
|
||||
from unittest.mock import AsyncMock, MagicMock, call, patch as async_patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Axis binary sensor platform tests."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.axis.const import DOMAIN as AXIS_DOMAIN
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Axis diagnostics."""
|
||||
|
||||
import pytest
|
||||
from syrupy import SnapshotAssertion
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the AEH config flow."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import AsyncMock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The test for the bayesian sensor platform."""
|
||||
|
||||
import json
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Blebox button entities tests."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import PropertyMock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""BleBox climate entities tests."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, PropertyMock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""BleBox cover entities tests."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, PropertyMock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""BleBox devices setup tests."""
|
||||
|
||||
import logging
|
||||
|
||||
import blebox_uniapi
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""BleBox light entities tests."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, PropertyMock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Blebox sensors tests."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, PropertyMock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Blebox switch tests."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, PropertyMock
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test default blueprints."""
|
||||
|
||||
import importlib
|
||||
import logging
|
||||
import pathlib
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test blueprint importing."""
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test blueprint models."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test schemas."""
|
||||
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the Bluetooth integration API."""
|
||||
|
||||
import time
|
||||
|
||||
from bleak.backends.scanner import AdvertisementData, BLEDevice
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the Bluetooth integration."""
|
||||
|
||||
import asyncio
|
||||
from datetime import timedelta
|
||||
import time
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the Bluetooth integration scanners."""
|
||||
|
||||
import asyncio
|
||||
from datetime import timedelta
|
||||
import time
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test BMW diagnostics."""
|
||||
|
||||
import datetime
|
||||
import os
|
||||
import time
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Broadlink config flow."""
|
||||
|
||||
import errno
|
||||
import socket
|
||||
from unittest.mock import call, patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for Broadlink helper functions."""
|
||||
|
||||
import pytest
|
||||
import voluptuous as vol
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test BTHome BLE events."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components import automation
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for generic camera component."""
|
||||
|
||||
import asyncio
|
||||
from contextlib import suppress
|
||||
import copy
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Button device actions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the Cert Expiry config flow."""
|
||||
|
||||
import socket
|
||||
import ssl
|
||||
from unittest.mock import patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The test for the Facebook notify module."""
|
||||
|
||||
import base64
|
||||
from http import HTTPStatus
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Climate device actions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
import voluptuous_serialize
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Climate device conditions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
import voluptuous_serialize
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Climate device triggers."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
import voluptuous_serialize
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for reproduction of state."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.climate import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Climate significant change platform."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.climate import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test account link services."""
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
from time import time
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Alexa config."""
|
||||
|
||||
import contextlib
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the cloud assist pipeline."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.cloud.assist_pipeline import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test cloud system health."""
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Callable, Coroutine
|
||||
from typing import Any
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Cloudflare config flow."""
|
||||
|
||||
import pycfdns
|
||||
|
||||
from homeassistant.components.cloudflare.const import CONF_RECORDS, DOMAIN
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Coinbase config flow."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Common fixtures for the Color extractor tests."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.color_extractor.const import DOMAIN
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for color_extractor component service calls."""
|
||||
|
||||
import base64
|
||||
import io
|
||||
from typing import Any
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the integration sensor platform."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.compensation.const import CONF_PRECISION, DOMAIN
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test area_registry API."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test config entries API."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.auth import models as auth_models
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test device_registry API."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.config import device_registry
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test entity_registry API."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test floor registry API."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.config import floor_registry
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test label registry API."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.config import label_registry
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the counter component."""
|
||||
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test reproduce state for Counter."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Cover device actions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Cover device conditions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test reproduce state for Cover."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.cover import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Cover significant change platform."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.cover import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for deCONZ config flow."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test deCONZ component setup process."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the Demo component."""
|
||||
|
||||
import json
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the notify demo platform."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the demo weather component."""
|
||||
|
||||
import datetime
|
||||
from typing import Any
|
||||
from unittest.mock import patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Derivative integration."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.derivative.const import DOMAIN
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Devialet diagnostics."""
|
||||
|
||||
import json
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Device tracker device conditions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for Device Tracker device triggers."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
import voluptuous_serialize
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the Dialogflow component."""
|
||||
|
||||
import copy
|
||||
from http import HTTPStatus
|
||||
import json
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the DirecTV config flow."""
|
||||
|
||||
import dataclasses
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Discord config flow."""
|
||||
|
||||
import nextcord
|
||||
|
||||
from homeassistant import config_entries, data_entry_flow
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Discord notify."""
|
||||
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Constants for Discovergy integration tests."""
|
||||
|
||||
import datetime
|
||||
|
||||
from pydiscovergy.models import Location, Meter, Reading
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Discovergy diagnostics."""
|
||||
|
||||
import pytest
|
||||
from syrupy import SnapshotAssertion
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Discovergy system health."""
|
||||
|
||||
import asyncio
|
||||
|
||||
from aiohttp import ClientError
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue