Update empty line formatting after module docstring (#114040)

This commit is contained in:
Marc Mueller 2024-03-23 00:27:57 +01:00 committed by GitHub
parent 1dbc94162d
commit efc54971d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
54 changed files with 50 additions and 5 deletions

View file

@ -1,6 +1,5 @@
"""Describe group states."""
from typing import TYPE_CHECKING
from homeassistant.const import (

View file

@ -1,4 +1,5 @@
"""Websocket API to interact with the category registry."""
from typing import Any
import voluptuous as vol

View file

@ -1,4 +1,5 @@
"""Platform for Control4 Rooms Media Players."""
from __future__ import annotations
from dataclasses import dataclass

View file

@ -1,4 +1,5 @@
"""Config flow for Downloader integration."""
from __future__ import annotations
import os

View file

@ -1,4 +1,5 @@
"""Constants for the Downloader component."""
import logging
_LOGGER = logging.getLogger(__package__)

View file

@ -1,4 +1,5 @@
"""Support for esphome dates."""
from __future__ import annotations
from datetime import date

View file

@ -1,4 +1,5 @@
"""Support for esphome times."""
from __future__ import annotations
from datetime import time

View file

@ -1,4 +1,5 @@
"""Initialization of FYTA integration."""
from __future__ import annotations
import logging

View file

@ -1,4 +1,5 @@
"""Config flow for FYTA integration."""
from __future__ import annotations
import logging

View file

@ -1,2 +1,3 @@
"""Const for fyta integration."""
DOMAIN = "fyta"

View file

@ -1,4 +1,5 @@
"""Entities for FYTA integration."""
from typing import Any
from homeassistant.components.sensor import SensorEntityDescription

View file

@ -1,4 +1,5 @@
"""Summary data from Fyta."""
from __future__ import annotations
from collections.abc import Callable

View file

@ -1,4 +1,5 @@
"""Support for Lutron Homeworks binary sensors."""
from __future__ import annotations
import logging

View file

@ -1,4 +1,5 @@
"""Diagnostics support for Husqvarna Automower."""
from __future__ import annotations
import logging

View file

@ -1,4 +1,5 @@
"""Diagnostics support for IPMA."""
from __future__ import annotations
from typing import Any

View file

@ -1,4 +1,4 @@
""""Config flow for Lupusec integration."""
"""Config flow for Lupusec integration."""
from json import JSONDecodeError
import logging

View file

@ -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

View file

@ -1,4 +1,5 @@
"""BinarySensor integration microBees."""
from microBeesPy import Sensor
from homeassistant.components.binary_sensor import (

View file

@ -1,4 +1,5 @@
"""Cover integration microBees."""
from typing import Any
from microBeesPy import Actuator

View file

@ -1,6 +1,5 @@
"""The Minecraft Server binary sensor platform."""
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,

View file

@ -1,4 +1,5 @@
"""Base class for Ring entity."""
from collections.abc import Callable
from typing import Any, Concatenate, ParamSpec, TypeVar

View file

@ -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

View file

@ -1,4 +1,5 @@
"""Diagnostics support for Webmin."""
from typing import Any
from homeassistant.components.diagnostics import async_redact_data

View file

@ -1,4 +1,5 @@
"""Provide a way to categorize things within a defined scope."""
from __future__ import annotations
from collections.abc import Iterable

View file

@ -1,4 +1,5 @@
"""Tests for the Anova integration."""
from __future__ import annotations
from unittest.mock import patch

View file

@ -1,4 +1,5 @@
"""Fixtures for the button entity component tests."""
import logging
import pytest

View file

@ -1,4 +1,5 @@
"""The tests for the Button component."""
from collections.abc import Generator
from datetime import timedelta
from unittest.mock import MagicMock

View file

@ -1,4 +1,5 @@
"""Test category registry API."""
import pytest
from homeassistant.components.config import category_registry

View file

@ -1,4 +1,5 @@
"""Test the Downloader config flow."""
from unittest.mock import patch
import pytest

View file

@ -1,4 +1,5 @@
"""Fixtures for the event entity component tests."""
import logging
import pytest

View file

@ -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

View file

@ -1,4 +1,5 @@
"""Test helpers."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch

View file

@ -1,4 +1,5 @@
"""Test the fyta config flow."""
from datetime import datetime
from unittest.mock import AsyncMock

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,5 @@
"""The tests for the image_processing component."""
from unittest.mock import PropertyMock, patch
import pytest

View file

@ -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 (

View file

@ -1,4 +1,5 @@
"""The tests for the Light component."""
from unittest.mock import MagicMock, mock_open, patch
import pytest

View file

@ -1,4 +1,5 @@
"""Tests for the melissa component."""
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component

View file

@ -1,6 +1,5 @@
"""The test for the Melissa Climate component."""
from homeassistant.core import HomeAssistant
from tests.components.melissa import setup_integration

View file

@ -1,4 +1,5 @@
"""The tests for the Ring switch platform."""
from unittest.mock import PropertyMock, patch
import pytest

View file

@ -1,4 +1,5 @@
"""The tests for the Ring light platform."""
from unittest.mock import PropertyMock, patch
import pytest

View file

@ -1,4 +1,5 @@
"""The tests for the Ring button platform."""
from unittest.mock import patch
import pytest

View file

@ -1,4 +1,5 @@
"""The tests for the Ring switch platform."""
from unittest.mock import PropertyMock, patch
import pytest

View file

@ -1,4 +1,5 @@
"""Tests for the Rova config flow."""
from unittest.mock import MagicMock
import pytest

View file

@ -1,4 +1,5 @@
"""Test the Teslemetry sensor platform."""
from datetime import timedelta
from freezegun.api import FrozenDateTimeFactory

View file

@ -1,4 +1,5 @@
"""Tests for TP-Link Omada switch entities."""
from datetime import timedelta
from typing import Any
from unittest.mock import MagicMock

View file

@ -1,4 +1,5 @@
"""Tests for the diagnostics data provided by the Webmin integration."""
from syrupy.assertion import SnapshotAssertion
from homeassistant.core import HomeAssistant

View file

@ -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

View file

@ -1,4 +1,5 @@
"""Tests for the category registry."""
import re
from typing import Any

View file

@ -1,4 +1,5 @@
"""Provide a mock package component."""
from .const import TEST # noqa: F401

View file

@ -1,2 +1,3 @@
"""Constants for test_package custom component."""
TEST = 5