Compare commits

...

1 Commits

Author SHA1 Message Date
epenet
1fd38242c0 Remove 'from __future__ import annotations' in tests 2026-03-11 07:40:40 +00:00
717 changed files with 0 additions and 1434 deletions

View File

@@ -1,7 +1,5 @@
"""Test the helper method for writing tests."""
from __future__ import annotations
import asyncio
from collections.abc import (
AsyncGenerator,

View File

@@ -1,7 +1,5 @@
"""Fixtures for advantage_air."""
from __future__ import annotations
import pytest
from . import patch_get, patch_update

View File

@@ -1,7 +1,5 @@
"""Test for airOS integration setup."""
from __future__ import annotations
from unittest.mock import ANY, AsyncMock, MagicMock
from airos.exceptions import (

View File

@@ -1,7 +1,5 @@
"""Tests for the Airthings BLE integration."""
from __future__ import annotations
from unittest.mock import patch
from airthings_ble import (

View File

@@ -1,7 +1,5 @@
"""Test helpers for the Alexa integration."""
from __future__ import annotations
from typing import Any
from unittest.mock import Mock
from uuid import uuid4

View File

@@ -1,7 +1,5 @@
"""Tests for Alexa Devices diagnostics platform."""
from __future__ import annotations
from unittest.mock import AsyncMock
from syrupy.assertion import SnapshotAssertion

View File

@@ -1,7 +1,5 @@
"""Test the Amber Electric Sensors."""
from __future__ import annotations
from collections.abc import AsyncGenerator
from unittest.mock import Mock, patch

View File

@@ -1,7 +1,5 @@
"""Tests for the Amber Electric Data Coordinator."""
from __future__ import annotations
from collections.abc import Generator
from datetime import date
from unittest.mock import Mock, patch

View File

@@ -1,7 +1,5 @@
"""Test the Home Assistant analytics init module."""
from __future__ import annotations
from unittest.mock import AsyncMock
from homeassistant.components.analytics_insights import CONF_TRACKED_APPS

View File

@@ -1,7 +1,5 @@
"""Tests for the Anova integration."""
from __future__ import annotations
from unittest.mock import patch
from anova_wifi import APCUpdate, APCUpdateBinary, APCUpdateSensor

View File

@@ -1,7 +1,5 @@
"""Common fixtures for Anova."""
from __future__ import annotations
import asyncio
from dataclasses import dataclass
import json

View File

@@ -1,7 +1,5 @@
"""Tests for the Anthropic repairs flow."""
from __future__ import annotations
from typing import Any
from unittest.mock import AsyncMock, MagicMock, patch

View File

@@ -1,7 +1,5 @@
"""The tests for the Apache Kafka component."""
from __future__ import annotations
from asyncio import AbstractEventLoop
from collections.abc import Callable, Generator
from dataclasses import dataclass

View File

@@ -1,7 +1,5 @@
"""Tests for the APCUPSd component."""
from __future__ import annotations
from typing import Final
from homeassistant.const import CONF_HOST, CONF_PORT

View File

@@ -1,7 +1,5 @@
"""Test APCUPSd config flow setup process."""
from __future__ import annotations
import asyncio
from unittest.mock import AsyncMock

View File

@@ -1,7 +1,5 @@
"""Test the Developer Credentials integration."""
from __future__ import annotations
from collections.abc import Callable, Generator
import logging
from typing import Any

View File

@@ -1,7 +1,5 @@
"""Test the Aquacell init module."""
from __future__ import annotations
from datetime import datetime
from unittest.mock import AsyncMock, patch

View File

@@ -1,7 +1,5 @@
"""Test the Aquacell init module."""
from __future__ import annotations
from unittest.mock import AsyncMock
from syrupy.assertion import SnapshotAssertion

View File

@@ -1,7 +1,5 @@
"""Test fixtures for voice assistant."""
from __future__ import annotations
from collections.abc import AsyncIterable, Generator
from pathlib import Path
from typing import Any

View File

@@ -1,7 +1,5 @@
"""Test select entity."""
from __future__ import annotations
import pytest
from homeassistant.components.assist_pipeline import Pipeline

View File

@@ -1,7 +1,5 @@
"""Mocks for the august component."""
from __future__ import annotations
from collections.abc import Iterable
from contextlib import contextmanager
import json

View File

@@ -1,7 +1,5 @@
"""Test the Autarco init module."""
from __future__ import annotations
from unittest.mock import AsyncMock
from autarco import AutarcoAuthenticationError, AutarcoConnectionError

View File

@@ -1,7 +1,5 @@
"""The tests for automation recorder."""
from __future__ import annotations
import pytest
from homeassistant.components import automation

View File

@@ -1,7 +1,5 @@
"""Tests for the AWS S3 sensor platform."""
from __future__ import annotations
import json
from unittest.mock import AsyncMock

View File

@@ -1,7 +1,5 @@
"""Axis conftest."""
from __future__ import annotations
from collections.abc import Callable, Coroutine, Generator
from copy import deepcopy
from types import MappingProxyType

View File

@@ -1,7 +1,5 @@
"""Test the backups for OneDrive."""
from __future__ import annotations
from collections.abc import AsyncGenerator
from io import StringIO
from unittest.mock import ANY, Mock, patch

View File

@@ -1,7 +1,5 @@
"""Common helpers for the Backup integration tests."""
from __future__ import annotations
from collections.abc import AsyncIterator, Buffer, Callable, Coroutine, Iterable
from pathlib import Path
from typing import Any, cast

View File

@@ -1,7 +1,5 @@
"""Test fixtures for the Backup integration."""
from __future__ import annotations
from asyncio import Future
from collections.abc import Generator
from pathlib import Path

View File

@@ -1,7 +1,5 @@
"""Test the builtin backup platform."""
from __future__ import annotations
from collections.abc import Generator
from io import StringIO
import json

View File

@@ -1,7 +1,5 @@
"""Tests for the Backup integration."""
from __future__ import annotations
import asyncio
from collections.abc import Callable, Generator
from dataclasses import replace

View File

@@ -1,7 +1,5 @@
"""Tests for the Backup integration's utility functions."""
from __future__ import annotations
import asyncio
from collections.abc import AsyncIterator
import dataclasses

View File

@@ -1,7 +1,5 @@
"""Test the Balboa Spa Client integration."""
from __future__ import annotations
from unittest.mock import MagicMock
from homeassistant.components.balboa.const import CONF_SYNC_TIME, DOMAIN

View File

@@ -1,7 +1,5 @@
"""Provide common fixtures."""
from __future__ import annotations
from collections.abc import Callable, Generator
from datetime import time
from unittest.mock import AsyncMock, MagicMock, patch

View File

@@ -1,7 +1,5 @@
"""Tests of the binary sensors of the balboa integration."""
from __future__ import annotations
from unittest.mock import MagicMock, patch
from syrupy.assertion import SnapshotAssertion

View File

@@ -1,7 +1,5 @@
"""Tests of the climate entity of the balboa integration."""
from __future__ import annotations
from unittest.mock import MagicMock, patch
from pybalboa import SpaControl

View File

@@ -1,7 +1,5 @@
"""Tests of the events of the balboa integration."""
from __future__ import annotations
from datetime import datetime
from unittest.mock import MagicMock, patch

View File

@@ -1,7 +1,5 @@
"""Tests of the pump fan entity of the balboa integration."""
from __future__ import annotations
from unittest.mock import MagicMock, patch
from pybalboa import SpaControl

View File

@@ -1,7 +1,5 @@
"""Tests of the light entity of the balboa integration."""
from __future__ import annotations
from unittest.mock import MagicMock, patch
from pybalboa import SpaControl

View File

@@ -1,7 +1,5 @@
"""Tests of the select entity of the balboa integration."""
from __future__ import annotations
from unittest.mock import MagicMock, call, patch
from pybalboa import SpaControl

View File

@@ -1,7 +1,5 @@
"""Tests of the switches of the balboa integration."""
from __future__ import annotations
from unittest.mock import MagicMock, patch
from syrupy.assertion import SnapshotAssertion

View File

@@ -1,7 +1,5 @@
"""Tests of the times of the balboa integration."""
from __future__ import annotations
from datetime import time
from unittest.mock import MagicMock, patch

View File

@@ -1,7 +1,5 @@
"""Test the Config flow for the Bayesian integration."""
from __future__ import annotations
from types import MappingProxyType
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""Tests for the Blue Current integration."""
from __future__ import annotations
from asyncio import Event, Future
from dataclasses import dataclass
from typing import Any

View File

@@ -1,7 +1,5 @@
"""Common fixtures for the Bluesound tests."""
from __future__ import annotations
from collections.abc import AsyncGenerator, Generator
from dataclasses import dataclass
import ipaddress

View File

@@ -1,7 +1,5 @@
"""Tests for the Bluetooth integration ActiveBluetoothDataUpdateCoordinator."""
from __future__ import annotations
import asyncio
from collections.abc import Callable, Coroutine
import logging

View File

@@ -1,7 +1,5 @@
"""Tests for the Bluetooth integration PassiveBluetoothDataUpdateCoordinator."""
from __future__ import annotations
import asyncio
import logging
from unittest.mock import MagicMock, call

View File

@@ -1,7 +1,5 @@
"""Tests for the Bluetooth base scanner models."""
from __future__ import annotations
from datetime import timedelta
import time
from typing import Any

View File

@@ -1,7 +1,5 @@
"""Tests for the Bluetooth integration models."""
from __future__ import annotations
from unittest.mock import patch
import bleak

View File

@@ -1,7 +1,5 @@
"""Tests for the Bluetooth integration PassiveBluetoothDataUpdateCoordinator."""
from __future__ import annotations
from datetime import timedelta
import logging
import time

View File

@@ -1,7 +1,5 @@
"""Tests for the Bluetooth integration."""
from __future__ import annotations
from datetime import timedelta
import logging
import time

View File

@@ -1,7 +1,5 @@
"""Tests for the Bluetooth integration."""
from __future__ import annotations
from collections.abc import Iterator
from contextlib import contextmanager
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""Common methods used across tests for Bond."""
from __future__ import annotations
from contextlib import nullcontext
from datetime import timedelta
from typing import Any

View File

@@ -1,7 +1,5 @@
"""Test the Bond config flow."""
from __future__ import annotations
from http import HTTPStatus
from ipaddress import ip_address
from typing import Any

View File

@@ -1,7 +1,5 @@
"""Tests for the Bond fan device."""
from __future__ import annotations
from datetime import timedelta
from unittest.mock import call

View File

@@ -1,7 +1,5 @@
"""Test the Brottsplatskartan config flow."""
from __future__ import annotations
import pytest
from homeassistant import config_entries

View File

@@ -1,7 +1,5 @@
"""Test Brottsplatskartan component setup process."""
from __future__ import annotations
from unittest.mock import patch
from homeassistant.components.brottsplatskartan.const import DOMAIN

View File

@@ -1,7 +1,5 @@
"""Tests for BTHome repair handling."""
from __future__ import annotations
from collections.abc import Callable
import logging
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""The tests for Button device triggers."""
from __future__ import annotations
import pytest
from pytest_unordered import unordered

View File

@@ -1,7 +1,5 @@
"""The tests for the calendar component."""
from __future__ import annotations
from collections.abc import Generator
from datetime import timedelta
from http import HTTPStatus

View File

@@ -7,8 +7,6 @@ and create events using a relative time offset and then advance the clock
forward exercising the triggers.
"""
from __future__ import annotations
from collections.abc import AsyncIterator, Callable, Generator
from contextlib import asynccontextmanager
from dataclasses import dataclass

View File

@@ -1,7 +1,5 @@
"""The tests for camera recorder."""
from __future__ import annotations
from datetime import timedelta
import pytest

View File

@@ -1,7 +1,5 @@
"""The tests for the Cast Media player platform."""
from __future__ import annotations
import asyncio
from collections.abc import Callable
import json

View File

@@ -1,7 +1,5 @@
"""The tests for the climate component."""
from __future__ import annotations
from enum import Enum
from typing import Any
from unittest.mock import MagicMock, Mock

View File

@@ -1,7 +1,5 @@
"""The tests for climate recorder."""
from __future__ import annotations
from datetime import timedelta
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""Tests for the Home Assistant Cloud AI Task entity."""
from __future__ import annotations
from pathlib import Path
from unittest.mock import AsyncMock, MagicMock, patch

View File

@@ -1,7 +1,5 @@
"""Tests for the Home Assistant Cloud conversation entity."""
from __future__ import annotations
from unittest.mock import AsyncMock, MagicMock, patch
import pytest

View File

@@ -1,7 +1,5 @@
"""Tests for helpers in the Home Assistant Cloud conversation entity."""
from __future__ import annotations
import base64
import datetime
from pathlib import Path

View File

@@ -1,7 +1,5 @@
"""Tests for the Cloudflare integration."""
from __future__ import annotations
from typing import Any
from unittest.mock import AsyncMock, Mock, patch

View File

@@ -1,7 +1,5 @@
"""Tests for Comelit Simplehome diagnostics platform."""
from __future__ import annotations
from unittest.mock import AsyncMock
from syrupy.assertion import SnapshotAssertion

View File

@@ -1,7 +1,5 @@
"""The tests for the Command line Binary sensor platform."""
from __future__ import annotations
import asyncio
from datetime import timedelta
from typing import Any

View File

@@ -1,7 +1,5 @@
"""The tests the cover command line platform."""
from __future__ import annotations
import asyncio
from datetime import timedelta
import os

View File

@@ -1,7 +1,5 @@
"""Test Command line component setup process."""
from __future__ import annotations
from datetime import timedelta
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""The tests for the command line notification platform."""
from __future__ import annotations
import os
from pathlib import Path
import subprocess

View File

@@ -1,7 +1,5 @@
"""The tests for the Command line sensor platform."""
from __future__ import annotations
import asyncio
from datetime import timedelta
from typing import Any

View File

@@ -1,7 +1,5 @@
"""The tests for the Command line switch platform."""
from __future__ import annotations
import asyncio
from datetime import timedelta
import json

View File

@@ -1,7 +1,5 @@
"""Fixtures for the Concord232 integration."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import MagicMock, patch

View File

@@ -1,7 +1,5 @@
"""Tests for the Concord232 alarm control panel platform."""
from __future__ import annotations
from unittest.mock import MagicMock
from freezegun.api import FrozenDateTimeFactory

View File

@@ -1,7 +1,5 @@
"""Tests for the Concord232 binary sensor platform."""
from __future__ import annotations
import datetime
from unittest.mock import MagicMock

View File

@@ -1,7 +1,5 @@
"""Fixtures for component testing."""
from __future__ import annotations
import asyncio
from collections.abc import AsyncGenerator, Callable, Coroutine, Generator, Mapping
from functools import lru_cache

View File

@@ -1,7 +1,5 @@
"""Tests for the conversation component."""
from __future__ import annotations
from collections.abc import AsyncGenerator
from dataclasses import dataclass, field
from typing import Literal

View File

@@ -1,7 +1,5 @@
"""Fixtures for the Coolmaster integration."""
from __future__ import annotations
import copy
from typing import Any
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""The test for the Coolmaster binary sensor platform."""
from __future__ import annotations
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant

View File

@@ -1,7 +1,5 @@
"""The test for the Coolmaster button platform."""
from __future__ import annotations
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_ENTITY_ID

View File

@@ -1,7 +1,5 @@
"""The test for the Coolmaster climate platform."""
from __future__ import annotations
from pycoolmasternet_async import SWING_MODES
import pytest

View File

@@ -1,7 +1,5 @@
"""The test for the Coolmaster sensor platform."""
from __future__ import annotations
import logging
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""Fixtures for CPU Speed integration tests."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch

View File

@@ -1,7 +1,5 @@
"""Tests for the Crownstone integration."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch

View File

@@ -1,7 +1,5 @@
"""Tests for the Cync integration."""
from __future__ import annotations
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry

View File

@@ -1,7 +1,5 @@
"""Fixtures for Daikin tests."""
from __future__ import annotations
from collections.abc import Callable, Generator
import re
from typing import Any

View File

@@ -1,7 +1,5 @@
"""Tests for Daikin zone climate entities."""
from __future__ import annotations
from unittest.mock import AsyncMock
import pytest

View File

@@ -1,7 +1,5 @@
"""deconz conftest."""
from __future__ import annotations
from collections.abc import Callable, Coroutine, Generator
from types import MappingProxyType
from typing import Any, Protocol

View File

@@ -1,7 +1,5 @@
"""Mock of a devolo Home Network device."""
from __future__ import annotations
from unittest.mock import AsyncMock
from devolo_plc_api.device import Device

View File

@@ -1,7 +1,5 @@
"""Test the devolo Home Network config flow."""
from __future__ import annotations
from typing import Any
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""Tests for the devolo Home Network diagnostics."""
from __future__ import annotations
import pytest
from syrupy.assertion import SnapshotAssertion
from syrupy.filters import props

View File

@@ -1,7 +1,5 @@
"""Test the DHCP discovery integration."""
from __future__ import annotations
from collections.abc import Awaitable, Callable
import datetime
import threading

View File

@@ -1,7 +1,5 @@
"""The tests for the DirecTV Media player platform."""
from __future__ import annotations
from datetime import datetime, timedelta
from unittest.mock import patch

View File

@@ -1,7 +1,5 @@
"""Fixtures for DLNA tests."""
from __future__ import annotations
from collections.abc import Generator
from socket import AddressFamily # pylint: disable=no-name-in-module
from unittest.mock import Mock, create_autospec, patch, seal

View File

@@ -1,7 +1,5 @@
"""Test the DLNA config flow."""
from __future__ import annotations
from collections.abc import Generator
import dataclasses
import logging

View File

@@ -1,7 +1,5 @@
"""Tests for the DLNA DMR data module."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import ANY, Mock, patch

View File

@@ -1,7 +1,5 @@
"""Tests for the DLNA DMR media_player module."""
from __future__ import annotations
import asyncio
from collections.abc import AsyncGenerator, Mapping
from dataclasses import dataclass

Some files were not shown because too many files have changed in this diff Show More