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