Add empty line after module docstring (2) [other] (#112738)
parent
32f3f46542
commit
a6b842f818
|
@ -1,4 +1,5 @@
|
|||
"""Signal handling related helpers."""
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import signal
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Script to manage users for the Home Assistant auth provider."""
|
||||
|
||||
import argparse
|
||||
import asyncio
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Script to ensure a configuration file exists."""
|
||||
|
||||
import argparse
|
||||
import asyncio
|
||||
import os
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Script to install/uninstall HA into OS X."""
|
||||
|
||||
import os
|
||||
import time
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Helper to create SSL contexts."""
|
||||
|
||||
import contextlib
|
||||
from enum import StrEnum
|
||||
from functools import cache
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Threading util helpers."""
|
||||
|
||||
import ctypes
|
||||
import inspect
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Package metadata validation."""
|
||||
|
||||
import tomllib
|
||||
|
||||
from homeassistant.const import REQUIRED_PYTHON_VER, __version__
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Inspect all component SCHEMAS."""
|
||||
|
||||
import importlib
|
||||
import os
|
||||
import pkgutil
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Helper script to update language list from the frontend source."""
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
This is NOT a full CI/linting replacement, only a quick check during development.
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
from collections import namedtuple
|
||||
from contextlib import suppress
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Validate manifests."""
|
||||
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Gather info for scaffolding."""
|
||||
|
||||
import json
|
||||
|
||||
from homeassistant.util import slugify
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Config flow for NEW_NAME."""
|
||||
|
||||
import my_pypi_dependency
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the NEW_NAME integration."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.NEW_DOMAIN.const import DOMAIN
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Config flow for NEW_NAME."""
|
||||
|
||||
import logging
|
||||
|
||||
from homeassistant.helpers import config_entry_oauth2_flow
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for NEW_NAME device actions."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for NEW_NAME device triggers."""
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test reproduce state for NEW_NAME."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Validate manifests."""
|
||||
|
||||
import argparse
|
||||
import importlib
|
||||
from pathlib import Path
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Find translation keys that are in Lokalise but no longer defined in source."""
|
||||
|
||||
import argparse
|
||||
|
||||
from .const import CORE_PROJECT_ID, FRONTEND_DIR, FRONTEND_PROJECT_ID, INTEGRATIONS_DIR
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Translation constants."""
|
||||
|
||||
import pathlib
|
||||
|
||||
CORE_PROJECT_ID = "130246255a974bd3b5e8a1.51616605"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Compile the current translation strings files for testing."""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Errors for translations."""
|
||||
|
||||
import json
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Write updated translations to the frontend."""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Migrate things."""
|
||||
|
||||
import json
|
||||
import pathlib
|
||||
from pprint import pprint
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Merge all translation sources into a single JSON file."""
|
||||
|
||||
import json
|
||||
import os
|
||||
import pathlib
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Translation utils."""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Helper script to bump the current version."""
|
||||
|
||||
import argparse
|
||||
import re
|
||||
import subprocess
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the HMAC-based One Time Password (MFA) auth module."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Time-based One Time Password (MFA) auth module."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for entity permissions."""
|
||||
|
||||
import pytest
|
||||
import voluptuous as vol
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the Home Assistant local auth provider."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the legacy_api_password auth provider."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant import auth, data_entry_flow
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the auth store."""
|
||||
|
||||
import asyncio
|
||||
from datetime import timedelta
|
||||
from typing import Any
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for hassfest dependency finder."""
|
||||
|
||||
import ast
|
||||
|
||||
import pytest
|
||||
|
@ -59,6 +60,7 @@ def test_renamed_absolute(mock_collector) -> None:
|
|||
mock_collector.visit(
|
||||
ast.parse(
|
||||
"""
|
||||
|
||||
import homeassistant.components.renamed_absolute as hue
|
||||
"""
|
||||
)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for hassfest version."""
|
||||
|
||||
import pytest
|
||||
import voluptuous as vol
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test check_config helper."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for debounce."""
|
||||
|
||||
import asyncio
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the entity helper."""
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Iterable
|
||||
import dataclasses
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the EntityPlatform helper."""
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Iterable
|
||||
from datetime import timedelta
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the floor registry."""
|
||||
|
||||
import re
|
||||
from typing import Any
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Home Assistant remote methods and classes."""
|
||||
|
||||
import datetime
|
||||
from functools import partial
|
||||
import json
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the Label Registry."""
|
||||
|
||||
import re
|
||||
from typing import Any
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the normalized name base registry helper."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.helpers.normalized_name_base_registry import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for ratelimit."""
|
||||
|
||||
import asyncio
|
||||
from datetime import timedelta
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the reload helper."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""The tests for the Script component."""
|
||||
|
||||
import asyncio
|
||||
from contextlib import contextmanager
|
||||
from datetime import timedelta
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test script variables."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test service helpers."""
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Iterable
|
||||
from copy import deepcopy
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test significant change helper."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.sensor import SensorDeviceClass
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test starting HA helpers."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STARTED
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test state helpers."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the storage helper."""
|
||||
|
||||
import asyncio
|
||||
from datetime import timedelta
|
||||
import json
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for the system info helper."""
|
||||
|
||||
import json
|
||||
import os
|
||||
from unittest.mock import patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests Home Assistant temperature helpers."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.const import (
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the translation helper."""
|
||||
|
||||
import asyncio
|
||||
from os import path
|
||||
import pathlib
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the auth script to manage local users."""
|
||||
|
||||
import logging
|
||||
from typing import Any
|
||||
from unittest.mock import Mock, patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test check_config script."""
|
||||
|
||||
import logging
|
||||
from unittest.mock import patch
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the bootstrapping."""
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Generator, Iterable
|
||||
import glob
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test to check for circular imports in core components."""
|
||||
|
||||
import asyncio
|
||||
import sys
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the flow classes."""
|
||||
|
||||
import asyncio
|
||||
import dataclasses
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test to verify that we can load components."""
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test requirements module."""
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test the runner."""
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Iterator
|
||||
import threading
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Aiohttp test utils."""
|
||||
|
||||
import asyncio
|
||||
from contextlib import contextmanager
|
||||
from http import HTTPStatus
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for our aiohttp mocker."""
|
||||
|
||||
import pytest
|
||||
|
||||
from .aiohttp import AiohttpClientMocker
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
from homeassistant.components.button import ButtonEntity
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Tests for async util methods from Python source."""
|
||||
|
||||
import asyncio
|
||||
import sys
|
||||
import time
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Home Assistant color util methods."""
|
||||
|
||||
import math
|
||||
|
||||
import pytest
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Home Assistant file utility functions."""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Home Assistant logging util methods."""
|
||||
|
||||
import asyncio
|
||||
from functools import partial
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Home Assistant package util methods."""
|
||||
|
||||
import asyncio
|
||||
from importlib.metadata import metadata
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test read only dictionary."""
|
||||
|
||||
import json
|
||||
|
||||
import pytest
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Home Assistant timeout handler."""
|
||||
|
||||
import asyncio
|
||||
from contextlib import suppress
|
||||
import time
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Test inputs."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.util.yaml import (
|
||||
|
|
Loading…
Reference in New Issue