Update empty line formatting after module docstring (#114040)
This commit is contained in:
parent
1dbc94162d
commit
efc54971d3
54 changed files with 50 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
"""Describe group states."""
|
"""Describe group states."""
|
||||||
|
|
||||||
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Websocket API to interact with the category registry."""
|
"""Websocket API to interact with the category registry."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Platform for Control4 Rooms Media Players."""
|
"""Platform for Control4 Rooms Media Players."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Config flow for Downloader integration."""
|
"""Config flow for Downloader integration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Constants for the Downloader component."""
|
"""Constants for the Downloader component."""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__package__)
|
_LOGGER = logging.getLogger(__package__)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Support for esphome dates."""
|
"""Support for esphome dates."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Support for esphome times."""
|
"""Support for esphome times."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import time
|
from datetime import time
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Initialization of FYTA integration."""
|
"""Initialization of FYTA integration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Config flow for FYTA integration."""
|
"""Config flow for FYTA integration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
"""Const for fyta integration."""
|
"""Const for fyta integration."""
|
||||||
|
|
||||||
DOMAIN = "fyta"
|
DOMAIN = "fyta"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Entities for FYTA integration."""
|
"""Entities for FYTA integration."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from homeassistant.components.sensor import SensorEntityDescription
|
from homeassistant.components.sensor import SensorEntityDescription
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Summary data from Fyta."""
|
"""Summary data from Fyta."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Support for Lutron Homeworks binary sensors."""
|
"""Support for Lutron Homeworks binary sensors."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Diagnostics support for Husqvarna Automower."""
|
"""Diagnostics support for Husqvarna Automower."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Diagnostics support for IPMA."""
|
"""Diagnostics support for IPMA."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
""""Config flow for Lupusec integration."""
|
"""Config flow for Lupusec integration."""
|
||||||
|
|
||||||
from json import JSONDecodeError
|
from json import JSONDecodeError
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Support for showing device locations."""
|
"""Support for showing device locations."""
|
||||||
|
|
||||||
from homeassistant.components import onboarding
|
from homeassistant.components import onboarding
|
||||||
from homeassistant.components.lovelace import _create_map_dashboard
|
from homeassistant.components.lovelace import _create_map_dashboard
|
||||||
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
|
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""BinarySensor integration microBees."""
|
"""BinarySensor integration microBees."""
|
||||||
|
|
||||||
from microBeesPy import Sensor
|
from microBeesPy import Sensor
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Cover integration microBees."""
|
"""Cover integration microBees."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from microBeesPy import Actuator
|
from microBeesPy import Actuator
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"""The Minecraft Server binary sensor platform."""
|
"""The Minecraft Server binary sensor platform."""
|
||||||
|
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
BinarySensorDeviceClass,
|
BinarySensorDeviceClass,
|
||||||
BinarySensorEntity,
|
BinarySensorEntity,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Base class for Ring entity."""
|
"""Base class for Ring entity."""
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from typing import Any, Concatenate, ParamSpec, TypeVar
|
from typing import Any, Concatenate, ParamSpec, TypeVar
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
Central point to load entities for the different platforms.
|
Central point to load entities for the different platforms.
|
||||||
Make sure expected clients are available for platforms.
|
Make sure expected clients are available for platforms.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Diagnostics support for Webmin."""
|
"""Diagnostics support for Webmin."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from homeassistant.components.diagnostics import async_redact_data
|
from homeassistant.components.diagnostics import async_redact_data
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Provide a way to categorize things within a defined scope."""
|
"""Provide a way to categorize things within a defined scope."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections.abc import Iterable
|
from collections.abc import Iterable
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Anova integration."""
|
"""Tests for the Anova integration."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Fixtures for the button entity component tests."""
|
"""Fixtures for the button entity component tests."""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the Button component."""
|
"""The tests for the Button component."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test category registry API."""
|
"""Test category registry API."""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.config import category_registry
|
from homeassistant.components.config import category_registry
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Downloader config flow."""
|
"""Test the Downloader config flow."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Fixtures for the event entity component tests."""
|
"""Fixtures for the event entity component tests."""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"""Tests for the flux_led number platform."""
|
"""Tests for the flux_led number platform."""
|
||||||
|
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from flux_led.const import COLOR_MODE_RGB as FLUX_COLOR_MODE_RGB
|
from flux_led.const import COLOR_MODE_RGB as FLUX_COLOR_MODE_RGB
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test helpers."""
|
"""Test helpers."""
|
||||||
|
|
||||||
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 fyta config flow."""
|
"""Test the fyta config flow."""
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from unittest.mock import AsyncMock
|
from unittest.mock import AsyncMock
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Lutron Homeworks Series 4 and 8 binary sensor."""
|
"""Tests for the Lutron Homeworks Series 4 and 8 binary sensor."""
|
||||||
|
|
||||||
from unittest.mock import ANY, MagicMock
|
from unittest.mock import ANY, MagicMock
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Lutron Homeworks Series 4 and 8 button."""
|
"""Tests for the Lutron Homeworks Series 4 and 8 button."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
|
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Lutron Homeworks Series 4 and 8 integration."""
|
"""Tests for the Lutron Homeworks Series 4 and 8 integration."""
|
||||||
|
|
||||||
from unittest.mock import ANY, MagicMock
|
from unittest.mock import ANY, MagicMock
|
||||||
|
|
||||||
from pyhomeworks.pyhomeworks import HW_BUTTON_PRESSED, HW_BUTTON_RELEASED
|
from pyhomeworks.pyhomeworks import HW_BUTTON_PRESSED, HW_BUTTON_RELEASED
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Lutron Homeworks Series 4 and 8 light."""
|
"""Tests for the Lutron Homeworks Series 4 and 8 light."""
|
||||||
|
|
||||||
from unittest.mock import ANY, MagicMock
|
from unittest.mock import ANY, MagicMock
|
||||||
|
|
||||||
from pyhomeworks.pyhomeworks import HW_LIGHT_CHANGED
|
from pyhomeworks.pyhomeworks import HW_LIGHT_CHANGED
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the image_processing component."""
|
"""The tests for the image_processing component."""
|
||||||
|
|
||||||
from unittest.mock import PropertyMock, patch
|
from unittest.mock import PropertyMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -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 collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
|
|
|
@ -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 melissa component."""
|
"""Tests for the melissa component."""
|
||||||
|
|
||||||
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,6 +1,5 @@
|
||||||
"""The test for the Melissa Climate component."""
|
"""The test for the Melissa Climate component."""
|
||||||
|
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from tests.components.melissa import setup_integration
|
from tests.components.melissa import setup_integration
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the Ring switch platform."""
|
"""The tests for the Ring switch platform."""
|
||||||
|
|
||||||
from unittest.mock import PropertyMock, patch
|
from unittest.mock import PropertyMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the Ring light platform."""
|
"""The tests for the Ring light platform."""
|
||||||
|
|
||||||
from unittest.mock import PropertyMock, patch
|
from unittest.mock import PropertyMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the Ring button platform."""
|
"""The tests for the Ring button platform."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""The tests for the Ring switch platform."""
|
"""The tests for the Ring switch platform."""
|
||||||
|
|
||||||
from unittest.mock import PropertyMock, patch
|
from unittest.mock import PropertyMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Rova config flow."""
|
"""Tests for the Rova config flow."""
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Test the Teslemetry sensor platform."""
|
"""Test the Teslemetry sensor platform."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for TP-Link Omada switch entities."""
|
"""Tests for TP-Link Omada switch entities."""
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the diagnostics data provided by the Webmin integration."""
|
"""Tests for the diagnostics data provided by the Webmin integration."""
|
||||||
|
|
||||||
from syrupy.assertion import SnapshotAssertion
|
from syrupy.assertion import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the Whirlpool Sixth Sense integration."""
|
"""Tests for the Whirlpool Sixth Sense integration."""
|
||||||
|
|
||||||
from homeassistant.components.whirlpool.const import CONF_BRAND, DOMAIN
|
from homeassistant.components.whirlpool.const import CONF_BRAND, DOMAIN
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_REGION, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_REGION, CONF_USERNAME
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Tests for the category registry."""
|
"""Tests for the category registry."""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Provide a mock package component."""
|
"""Provide a mock package component."""
|
||||||
|
|
||||||
from .const import TEST # noqa: F401
|
from .const import TEST # noqa: F401
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
"""Constants for test_package custom component."""
|
"""Constants for test_package custom component."""
|
||||||
|
|
||||||
TEST = 5
|
TEST = 5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue