diff --git a/homeassistant/components/rabbitair/__init__.py b/homeassistant/components/rabbitair/__init__.py index 97b37f6c03f5..e4eb67a67f55 100644 --- a/homeassistant/components/rabbitair/__init__.py +++ b/homeassistant/components/rabbitair/__init__.py @@ -1,4 +1,5 @@ """The Rabbit Air integration.""" + from __future__ import annotations from rabbitair import Client, UdpClient diff --git a/homeassistant/components/rabbitair/config_flow.py b/homeassistant/components/rabbitair/config_flow.py index f13517a1d56b..30dfac93236e 100644 --- a/homeassistant/components/rabbitair/config_flow.py +++ b/homeassistant/components/rabbitair/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Rabbit Air integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rabbitair/coordinator.py b/homeassistant/components/rabbitair/coordinator.py index 36c58f8700c4..3c7db126c7dd 100644 --- a/homeassistant/components/rabbitair/coordinator.py +++ b/homeassistant/components/rabbitair/coordinator.py @@ -1,4 +1,5 @@ """Rabbit Air Update Coordinator.""" + from collections.abc import Coroutine from datetime import timedelta import logging diff --git a/homeassistant/components/rabbitair/entity.py b/homeassistant/components/rabbitair/entity.py index 07e49aae7cb3..47a1b7db3eb4 100644 --- a/homeassistant/components/rabbitair/entity.py +++ b/homeassistant/components/rabbitair/entity.py @@ -1,4 +1,5 @@ """A base class for Rabbit Air entities.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rabbitair/fan.py b/homeassistant/components/rabbitair/fan.py index 464651638392..ee4f136930d5 100644 --- a/homeassistant/components/rabbitair/fan.py +++ b/homeassistant/components/rabbitair/fan.py @@ -1,4 +1,5 @@ """Support for Rabbit Air fan entity.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rachio/binary_sensor.py b/homeassistant/components/rachio/binary_sensor.py index 652806a2bada..eb7a84867abe 100644 --- a/homeassistant/components/rachio/binary_sensor.py +++ b/homeassistant/components/rachio/binary_sensor.py @@ -1,4 +1,5 @@ """Integration with the Rachio Iro sprinkler system controller.""" + from abc import abstractmethod import logging diff --git a/homeassistant/components/rachio/config_flow.py b/homeassistant/components/rachio/config_flow.py index 0aca6426f65a..d0a311db60e4 100644 --- a/homeassistant/components/rachio/config_flow.py +++ b/homeassistant/components/rachio/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Rachio integration.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/rachio/device.py b/homeassistant/components/rachio/device.py index 485a726acd0e..a7d1c9914538 100644 --- a/homeassistant/components/rachio/device.py +++ b/homeassistant/components/rachio/device.py @@ -1,4 +1,5 @@ """Adapter to wrap the rachiopy api for home assistant.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/rachio/switch.py b/homeassistant/components/rachio/switch.py index c69773009bed..ebe96152d707 100644 --- a/homeassistant/components/rachio/switch.py +++ b/homeassistant/components/rachio/switch.py @@ -1,4 +1,5 @@ """Integration with the Rachio Iro sprinkler system controller.""" + from abc import abstractmethod from contextlib import suppress from datetime import timedelta diff --git a/homeassistant/components/rachio/webhooks.py b/homeassistant/components/rachio/webhooks.py index 298b9c037017..06cd0941dcc1 100644 --- a/homeassistant/components/rachio/webhooks.py +++ b/homeassistant/components/rachio/webhooks.py @@ -1,4 +1,5 @@ """Webhooks used by rachio.""" + from __future__ import annotations from aiohttp import web diff --git a/homeassistant/components/radarr/__init__.py b/homeassistant/components/radarr/__init__.py index b6b05b5b5681..d3e44e6b7fcf 100644 --- a/homeassistant/components/radarr/__init__.py +++ b/homeassistant/components/radarr/__init__.py @@ -1,4 +1,5 @@ """The Radarr component.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/radarr/binary_sensor.py b/homeassistant/components/radarr/binary_sensor.py index 5d439680bc2f..4962ef81614d 100644 --- a/homeassistant/components/radarr/binary_sensor.py +++ b/homeassistant/components/radarr/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Radarr binary sensors.""" + from __future__ import annotations from aiopyarr import Health diff --git a/homeassistant/components/radarr/calendar.py b/homeassistant/components/radarr/calendar.py index 3a5308fffd5a..ad5e1b8ffd98 100644 --- a/homeassistant/components/radarr/calendar.py +++ b/homeassistant/components/radarr/calendar.py @@ -1,4 +1,5 @@ """Support for Radarr calendar items.""" + from __future__ import annotations from datetime import datetime diff --git a/homeassistant/components/radarr/config_flow.py b/homeassistant/components/radarr/config_flow.py index 367e15e098aa..81589c5fe302 100644 --- a/homeassistant/components/radarr/config_flow.py +++ b/homeassistant/components/radarr/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Radarr.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/radarr/coordinator.py b/homeassistant/components/radarr/coordinator.py index 7f395169644a..0580fdcc0205 100644 --- a/homeassistant/components/radarr/coordinator.py +++ b/homeassistant/components/radarr/coordinator.py @@ -1,4 +1,5 @@ """Data update coordinator for the Radarr integration.""" + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/homeassistant/components/radarr/sensor.py b/homeassistant/components/radarr/sensor.py index feb4c7964ee2..0435474e4231 100644 --- a/homeassistant/components/radarr/sensor.py +++ b/homeassistant/components/radarr/sensor.py @@ -1,4 +1,5 @@ """Support for Radarr.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/radio_browser/__init__.py b/homeassistant/components/radio_browser/__init__.py index fdd7537e9e1c..d1c2db3543a7 100644 --- a/homeassistant/components/radio_browser/__init__.py +++ b/homeassistant/components/radio_browser/__init__.py @@ -1,4 +1,5 @@ """The Radio Browser integration.""" + from __future__ import annotations from aiodns.error import DNSError diff --git a/homeassistant/components/radio_browser/config_flow.py b/homeassistant/components/radio_browser/config_flow.py index ad7e5b71a8e5..137ee7c8e87f 100644 --- a/homeassistant/components/radio_browser/config_flow.py +++ b/homeassistant/components/radio_browser/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Radio Browser integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/radio_browser/media_source.py b/homeassistant/components/radio_browser/media_source.py index dffbdc42dbec..5bf0b7f491bc 100644 --- a/homeassistant/components/radio_browser/media_source.py +++ b/homeassistant/components/radio_browser/media_source.py @@ -1,4 +1,5 @@ """Expose Radio Browser as a media source.""" + from __future__ import annotations import mimetypes diff --git a/homeassistant/components/radiotherm/__init__.py b/homeassistant/components/radiotherm/__init__.py index 86a9fe58013c..d5f1e4c076c4 100644 --- a/homeassistant/components/radiotherm/__init__.py +++ b/homeassistant/components/radiotherm/__init__.py @@ -1,4 +1,5 @@ """The radiotherm component.""" + from __future__ import annotations from collections.abc import Coroutine diff --git a/homeassistant/components/radiotherm/climate.py b/homeassistant/components/radiotherm/climate.py index 4ab57fd68213..73ab3644a0b6 100644 --- a/homeassistant/components/radiotherm/climate.py +++ b/homeassistant/components/radiotherm/climate.py @@ -1,4 +1,5 @@ """Support for Radio Thermostat wifi-enabled home thermostats.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/radiotherm/config_flow.py b/homeassistant/components/radiotherm/config_flow.py index d19fa198d0fe..a8de05d99637 100644 --- a/homeassistant/components/radiotherm/config_flow.py +++ b/homeassistant/components/radiotherm/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Radio Thermostat integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/radiotherm/coordinator.py b/homeassistant/components/radiotherm/coordinator.py index 5b0161d9f22f..06e3554c8d70 100644 --- a/homeassistant/components/radiotherm/coordinator.py +++ b/homeassistant/components/radiotherm/coordinator.py @@ -1,4 +1,5 @@ """Coordinator for radiotherm.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/radiotherm/data.py b/homeassistant/components/radiotherm/data.py index 3aa4e6b76311..4803cacd84b9 100644 --- a/homeassistant/components/radiotherm/data.py +++ b/homeassistant/components/radiotherm/data.py @@ -1,4 +1,5 @@ """The radiotherm component data.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/radiotherm/switch.py b/homeassistant/components/radiotherm/switch.py index 1f047a762019..e7b463e3defa 100644 --- a/homeassistant/components/radiotherm/switch.py +++ b/homeassistant/components/radiotherm/switch.py @@ -1,4 +1,5 @@ """Support for radiotherm switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/radiotherm/util.py b/homeassistant/components/radiotherm/util.py index 85b927d79353..fb15531987ab 100644 --- a/homeassistant/components/radiotherm/util.py +++ b/homeassistant/components/radiotherm/util.py @@ -1,4 +1,5 @@ """Utils for radiotherm.""" + from __future__ import annotations from radiotherm.thermostat import CommonThermostat diff --git a/homeassistant/components/rainbird/__init__.py b/homeassistant/components/rainbird/__init__.py index 945c06943d30..da2a0e4b475c 100644 --- a/homeassistant/components/rainbird/__init__.py +++ b/homeassistant/components/rainbird/__init__.py @@ -1,4 +1,5 @@ """Support for Rain Bird Irrigation system LNK WiFi Module.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rainbird/binary_sensor.py b/homeassistant/components/rainbird/binary_sensor.py index 279b8625f204..d44022b0a2d5 100644 --- a/homeassistant/components/rainbird/binary_sensor.py +++ b/homeassistant/components/rainbird/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Rain Bird Irrigation system LNK WiFi Module.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rainbird/number.py b/homeassistant/components/rainbird/number.py index 9b7bdd481cb2..507a31e59a40 100644 --- a/homeassistant/components/rainbird/number.py +++ b/homeassistant/components/rainbird/number.py @@ -1,4 +1,5 @@ """The number platform for rainbird.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rainbird/sensor.py b/homeassistant/components/rainbird/sensor.py index 9daf0958327a..649d643a20cc 100644 --- a/homeassistant/components/rainbird/sensor.py +++ b/homeassistant/components/rainbird/sensor.py @@ -1,4 +1,5 @@ """Support for Rain Bird Irrigation system LNK Wi-Fi Module.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rainbird/switch.py b/homeassistant/components/rainbird/switch.py index 810a6fbb721b..a929f5b875bc 100644 --- a/homeassistant/components/rainbird/switch.py +++ b/homeassistant/components/rainbird/switch.py @@ -1,4 +1,5 @@ """Support for Rain Bird Irrigation system LNK Wi-Fi Module.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/raincloud/__init__.py b/homeassistant/components/raincloud/__init__.py index 1214fd9416f5..e6f5d2ecf8d4 100644 --- a/homeassistant/components/raincloud/__init__.py +++ b/homeassistant/components/raincloud/__init__.py @@ -1,4 +1,5 @@ """Support for Melnor RainCloud sprinkler water timer.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/raincloud/binary_sensor.py b/homeassistant/components/raincloud/binary_sensor.py index b3766cd02cdb..fb949f69d910 100644 --- a/homeassistant/components/raincloud/binary_sensor.py +++ b/homeassistant/components/raincloud/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Melnor RainCloud sprinkler water timer.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/raincloud/sensor.py b/homeassistant/components/raincloud/sensor.py index 4d21d36d069d..3da30609f632 100644 --- a/homeassistant/components/raincloud/sensor.py +++ b/homeassistant/components/raincloud/sensor.py @@ -1,4 +1,5 @@ """Support for Melnor RainCloud sprinkler water timer.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/raincloud/switch.py b/homeassistant/components/raincloud/switch.py index abcb680daa34..957720305def 100644 --- a/homeassistant/components/raincloud/switch.py +++ b/homeassistant/components/raincloud/switch.py @@ -1,4 +1,5 @@ """Support for Melnor RainCloud sprinkler water timer.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rainforest_eagle/__init__.py b/homeassistant/components/rainforest_eagle/__init__.py index 7cf540de1e6a..67baa4dbd99b 100644 --- a/homeassistant/components/rainforest_eagle/__init__.py +++ b/homeassistant/components/rainforest_eagle/__init__.py @@ -1,4 +1,5 @@ """The Rainforest Eagle integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/rainforest_eagle/config_flow.py b/homeassistant/components/rainforest_eagle/config_flow.py index 1a034f098b7e..b48c1329695b 100644 --- a/homeassistant/components/rainforest_eagle/config_flow.py +++ b/homeassistant/components/rainforest_eagle/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Rainforest Eagle integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rainforest_eagle/data.py b/homeassistant/components/rainforest_eagle/data.py index 9da6372086f6..879aa467d9b4 100644 --- a/homeassistant/components/rainforest_eagle/data.py +++ b/homeassistant/components/rainforest_eagle/data.py @@ -1,4 +1,5 @@ """Rainforest data.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/rainforest_eagle/diagnostics.py b/homeassistant/components/rainforest_eagle/diagnostics.py index f20a20af9e2d..14c980bad7d6 100644 --- a/homeassistant/components/rainforest_eagle/diagnostics.py +++ b/homeassistant/components/rainforest_eagle/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Eagle.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rainforest_eagle/sensor.py b/homeassistant/components/rainforest_eagle/sensor.py index 987142c6390f..27eae0e3e8e8 100644 --- a/homeassistant/components/rainforest_eagle/sensor.py +++ b/homeassistant/components/rainforest_eagle/sensor.py @@ -1,4 +1,5 @@ """Support for the Rainforest Eagle energy monitor.""" + from __future__ import annotations from homeassistant.components.sensor import ( diff --git a/homeassistant/components/rainforest_raven/__init__.py b/homeassistant/components/rainforest_raven/__init__.py index d72b12f68c62..76f82624160a 100644 --- a/homeassistant/components/rainforest_raven/__init__.py +++ b/homeassistant/components/rainforest_raven/__init__.py @@ -1,4 +1,5 @@ """Integration for Rainforest RAVEn devices.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/rainforest_raven/config_flow.py b/homeassistant/components/rainforest_raven/config_flow.py index 744a36d9993b..72d258dc1d32 100644 --- a/homeassistant/components/rainforest_raven/config_flow.py +++ b/homeassistant/components/rainforest_raven/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Rainforest RAVEn devices.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/rainforest_raven/coordinator.py b/homeassistant/components/rainforest_raven/coordinator.py index edae4f114338..7f2d3399a478 100644 --- a/homeassistant/components/rainforest_raven/coordinator.py +++ b/homeassistant/components/rainforest_raven/coordinator.py @@ -1,4 +1,5 @@ """Data update coordination for Rainforest RAVEn devices.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/rainforest_raven/diagnostics.py b/homeassistant/components/rainforest_raven/diagnostics.py index 970915888ec7..820c4826f006 100644 --- a/homeassistant/components/rainforest_raven/diagnostics.py +++ b/homeassistant/components/rainforest_raven/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for a Rainforest RAVEn device.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/rainforest_raven/sensor.py b/homeassistant/components/rainforest_raven/sensor.py index fd7df25c603e..23ca3220694b 100644 --- a/homeassistant/components/rainforest_raven/sensor.py +++ b/homeassistant/components/rainforest_raven/sensor.py @@ -1,4 +1,5 @@ """Sensor entity for a Rainforest RAVEn device.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/rainmachine/__init__.py b/homeassistant/components/rainmachine/__init__.py index 2e821fc7a7ab..bcd60875c70b 100644 --- a/homeassistant/components/rainmachine/__init__.py +++ b/homeassistant/components/rainmachine/__init__.py @@ -1,4 +1,5 @@ """Support for RainMachine devices.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/rainmachine/binary_sensor.py b/homeassistant/components/rainmachine/binary_sensor.py index 7434577405e3..866cddbabbd0 100644 --- a/homeassistant/components/rainmachine/binary_sensor.py +++ b/homeassistant/components/rainmachine/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensors for key RainMachine data.""" + from dataclasses import dataclass from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/rainmachine/button.py b/homeassistant/components/rainmachine/button.py index 6309d9777a11..24486a34b88f 100644 --- a/homeassistant/components/rainmachine/button.py +++ b/homeassistant/components/rainmachine/button.py @@ -1,4 +1,5 @@ """Buttons for the RainMachine integration.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/rainmachine/config_flow.py b/homeassistant/components/rainmachine/config_flow.py index eb11e6276af2..5c07f04c1639 100644 --- a/homeassistant/components/rainmachine/config_flow.py +++ b/homeassistant/components/rainmachine/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the RainMachine component.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rainmachine/diagnostics.py b/homeassistant/components/rainmachine/diagnostics.py index e4835d514e6b..5564ee693a41 100644 --- a/homeassistant/components/rainmachine/diagnostics.py +++ b/homeassistant/components/rainmachine/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for RainMachine.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rainmachine/model.py b/homeassistant/components/rainmachine/model.py index e7f166b67ddc..ee5567112cf2 100644 --- a/homeassistant/components/rainmachine/model.py +++ b/homeassistant/components/rainmachine/model.py @@ -1,4 +1,5 @@ """Define RainMachine data models.""" + from dataclasses import dataclass from homeassistant.helpers.entity import EntityDescription diff --git a/homeassistant/components/rainmachine/select.py b/homeassistant/components/rainmachine/select.py index 5c68e4b573e4..bb622330897e 100644 --- a/homeassistant/components/rainmachine/select.py +++ b/homeassistant/components/rainmachine/select.py @@ -1,4 +1,5 @@ """Support for RainMachine selects.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/rainmachine/sensor.py b/homeassistant/components/rainmachine/sensor.py index c9e87ad0d077..15188e869639 100644 --- a/homeassistant/components/rainmachine/sensor.py +++ b/homeassistant/components/rainmachine/sensor.py @@ -1,4 +1,5 @@ """Support for sensor data from RainMachine.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/rainmachine/switch.py b/homeassistant/components/rainmachine/switch.py index 8450cb7d5e64..f7be08d71d30 100644 --- a/homeassistant/components/rainmachine/switch.py +++ b/homeassistant/components/rainmachine/switch.py @@ -1,4 +1,5 @@ """Component providing support for RainMachine programs and zones.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/rainmachine/update.py b/homeassistant/components/rainmachine/update.py index 8d5690b53200..38bf74effa0f 100644 --- a/homeassistant/components/rainmachine/update.py +++ b/homeassistant/components/rainmachine/update.py @@ -1,4 +1,5 @@ """Support for RainMachine updates.""" + from __future__ import annotations from enum import Enum diff --git a/homeassistant/components/rainmachine/util.py b/homeassistant/components/rainmachine/util.py index a557b701824d..2848101eca14 100644 --- a/homeassistant/components/rainmachine/util.py +++ b/homeassistant/components/rainmachine/util.py @@ -1,4 +1,5 @@ """Define RainMachine utilities.""" + from __future__ import annotations from collections.abc import Awaitable, Callable, Iterable diff --git a/homeassistant/components/random/__init__.py b/homeassistant/components/random/__init__.py index 89a772529bd3..bff2ce53dfbb 100644 --- a/homeassistant/components/random/__init__.py +++ b/homeassistant/components/random/__init__.py @@ -1,4 +1,5 @@ """The random component.""" + from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/random/binary_sensor.py b/homeassistant/components/random/binary_sensor.py index a6d330e61515..bbcf87630c51 100644 --- a/homeassistant/components/random/binary_sensor.py +++ b/homeassistant/components/random/binary_sensor.py @@ -1,4 +1,5 @@ """Support for showing random states.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/random/config_flow.py b/homeassistant/components/random/config_flow.py index 96dde9c87422..dc7d91603a59 100644 --- a/homeassistant/components/random/config_flow.py +++ b/homeassistant/components/random/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Random helper.""" + from collections.abc import Callable, Coroutine, Mapping from enum import StrEnum from typing import Any, cast diff --git a/homeassistant/components/random/sensor.py b/homeassistant/components/random/sensor.py index 8cc21e34ce92..716350b2bb00 100644 --- a/homeassistant/components/random/sensor.py +++ b/homeassistant/components/random/sensor.py @@ -1,4 +1,5 @@ """Support for showing random numbers.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/rapt_ble/__init__.py b/homeassistant/components/rapt_ble/__init__.py index 1b3d65ee2a46..f5587ba57705 100644 --- a/homeassistant/components/rapt_ble/__init__.py +++ b/homeassistant/components/rapt_ble/__init__.py @@ -1,4 +1,5 @@ """The rapt_ble integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rapt_ble/config_flow.py b/homeassistant/components/rapt_ble/config_flow.py index 11971f68c540..805a2cf8cbd2 100644 --- a/homeassistant/components/rapt_ble/config_flow.py +++ b/homeassistant/components/rapt_ble/config_flow.py @@ -1,4 +1,5 @@ """Config flow for rapt_ble.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rapt_ble/sensor.py b/homeassistant/components/rapt_ble/sensor.py index 9967a36faeef..d718bbc031a6 100644 --- a/homeassistant/components/rapt_ble/sensor.py +++ b/homeassistant/components/rapt_ble/sensor.py @@ -1,4 +1,5 @@ """Support for RAPT Pill hydrometers.""" + from __future__ import annotations from rapt_ble import DeviceClass, DeviceKey, SensorUpdate, Units diff --git a/homeassistant/components/raspberry_pi/__init__.py b/homeassistant/components/raspberry_pi/__init__.py index 19697d9b69d0..d1dcd04922ff 100644 --- a/homeassistant/components/raspberry_pi/__init__.py +++ b/homeassistant/components/raspberry_pi/__init__.py @@ -1,4 +1,5 @@ """The Raspberry Pi integration.""" + from __future__ import annotations from homeassistant.components.hassio import get_os_info, is_hassio diff --git a/homeassistant/components/raspberry_pi/config_flow.py b/homeassistant/components/raspberry_pi/config_flow.py index c84f3b386707..d049776a6e03 100644 --- a/homeassistant/components/raspberry_pi/config_flow.py +++ b/homeassistant/components/raspberry_pi/config_flow.py @@ -1,4 +1,5 @@ """Config flow for the Raspberry Pi integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/raspberry_pi/hardware.py b/homeassistant/components/raspberry_pi/hardware.py index 2141ff6034d7..54d375c7b6e4 100644 --- a/homeassistant/components/raspberry_pi/hardware.py +++ b/homeassistant/components/raspberry_pi/hardware.py @@ -1,4 +1,5 @@ """The Raspberry Pi hardware platform.""" + from __future__ import annotations from homeassistant.components.hardware.models import BoardInfo, HardwareInfo diff --git a/homeassistant/components/raspyrfm/switch.py b/homeassistant/components/raspyrfm/switch.py index 77360c6d2243..ce69818beec9 100644 --- a/homeassistant/components/raspyrfm/switch.py +++ b/homeassistant/components/raspyrfm/switch.py @@ -1,4 +1,5 @@ """Support for switches that can be controlled using the RaspyRFM rc module.""" + from __future__ import annotations from raspyrfm_client import RaspyRFMClient diff --git a/homeassistant/components/rdw/__init__.py b/homeassistant/components/rdw/__init__.py index 601d21ee8894..f123db7c697f 100644 --- a/homeassistant/components/rdw/__init__.py +++ b/homeassistant/components/rdw/__init__.py @@ -1,4 +1,5 @@ """Support for RDW.""" + from __future__ import annotations from vehicle import RDW, Vehicle diff --git a/homeassistant/components/rdw/binary_sensor.py b/homeassistant/components/rdw/binary_sensor.py index c971c3e68b98..5360ce4a7fe8 100644 --- a/homeassistant/components/rdw/binary_sensor.py +++ b/homeassistant/components/rdw/binary_sensor.py @@ -1,4 +1,5 @@ """Support for RDW binary sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/rdw/config_flow.py b/homeassistant/components/rdw/config_flow.py index fb42beb2174f..cf59abc650c1 100644 --- a/homeassistant/components/rdw/config_flow.py +++ b/homeassistant/components/rdw/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the RDW integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rdw/const.py b/homeassistant/components/rdw/const.py index e39e4048791d..d9f99010dd78 100644 --- a/homeassistant/components/rdw/const.py +++ b/homeassistant/components/rdw/const.py @@ -1,4 +1,5 @@ """Constants for the RDW integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/rdw/diagnostics.py b/homeassistant/components/rdw/diagnostics.py index dbf3d8e21c0c..f55bc33e0263 100644 --- a/homeassistant/components/rdw/diagnostics.py +++ b/homeassistant/components/rdw/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for RDW.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rdw/sensor.py b/homeassistant/components/rdw/sensor.py index a6ad9047852f..2c9c9addcfb0 100644 --- a/homeassistant/components/rdw/sensor.py +++ b/homeassistant/components/rdw/sensor.py @@ -1,4 +1,5 @@ """Support for RDW sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/recollect_waste/__init__.py b/homeassistant/components/recollect_waste/__init__.py index 5f3a50e93ed6..bd01aed5473f 100644 --- a/homeassistant/components/recollect_waste/__init__.py +++ b/homeassistant/components/recollect_waste/__init__.py @@ -1,4 +1,5 @@ """The ReCollect Waste integration.""" + from __future__ import annotations from datetime import date, timedelta diff --git a/homeassistant/components/recollect_waste/calendar.py b/homeassistant/components/recollect_waste/calendar.py index b39ff4306105..3a76451358e8 100644 --- a/homeassistant/components/recollect_waste/calendar.py +++ b/homeassistant/components/recollect_waste/calendar.py @@ -1,4 +1,5 @@ """Support for ReCollect Waste calendars.""" + from __future__ import annotations import datetime diff --git a/homeassistant/components/recollect_waste/config_flow.py b/homeassistant/components/recollect_waste/config_flow.py index 3d79c895354b..882eb6a00d26 100644 --- a/homeassistant/components/recollect_waste/config_flow.py +++ b/homeassistant/components/recollect_waste/config_flow.py @@ -1,4 +1,5 @@ """Config flow for ReCollect Waste integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/recollect_waste/diagnostics.py b/homeassistant/components/recollect_waste/diagnostics.py index 35bc1b568968..f1dbcdb40614 100644 --- a/homeassistant/components/recollect_waste/diagnostics.py +++ b/homeassistant/components/recollect_waste/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for ReCollect Waste.""" + from __future__ import annotations import dataclasses diff --git a/homeassistant/components/recollect_waste/entity.py b/homeassistant/components/recollect_waste/entity.py index 5ccd65cc55ad..a300e527fd2b 100644 --- a/homeassistant/components/recollect_waste/entity.py +++ b/homeassistant/components/recollect_waste/entity.py @@ -1,4 +1,5 @@ """Define a base ReCollect Waste entity.""" + from aiorecollect.client import PickupEvent from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/recollect_waste/sensor.py b/homeassistant/components/recollect_waste/sensor.py index da5394a93417..1ae3c2968856 100644 --- a/homeassistant/components/recollect_waste/sensor.py +++ b/homeassistant/components/recollect_waste/sensor.py @@ -1,4 +1,5 @@ """Support for ReCollect Waste sensors.""" + from __future__ import annotations from datetime import date diff --git a/homeassistant/components/recollect_waste/util.py b/homeassistant/components/recollect_waste/util.py index 185078f297c1..dcd8a1569dfd 100644 --- a/homeassistant/components/recollect_waste/util.py +++ b/homeassistant/components/recollect_waste/util.py @@ -1,4 +1,5 @@ """Define ReCollect Waste utilities.""" + from aiorecollect.client import PickupType from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index 2217d6c7d4e2..de75207389f1 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -1,4 +1,5 @@ """Support for recording details.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/recorder/auto_repairs/events/schema.py b/homeassistant/components/recorder/auto_repairs/events/schema.py index 3cc2e74f95b6..fb3b38c61c51 100644 --- a/homeassistant/components/recorder/auto_repairs/events/schema.py +++ b/homeassistant/components/recorder/auto_repairs/events/schema.py @@ -1,4 +1,5 @@ """Events schema repairs.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/homeassistant/components/recorder/auto_repairs/schema.py b/homeassistant/components/recorder/auto_repairs/schema.py index aedf917dd228..2b533b79e6cb 100644 --- a/homeassistant/components/recorder/auto_repairs/schema.py +++ b/homeassistant/components/recorder/auto_repairs/schema.py @@ -1,4 +1,5 @@ """Schema repairs.""" + from __future__ import annotations from collections.abc import Iterable, Mapping diff --git a/homeassistant/components/recorder/auto_repairs/states/schema.py b/homeassistant/components/recorder/auto_repairs/states/schema.py index 3c0daef452d8..3900f4fb7632 100644 --- a/homeassistant/components/recorder/auto_repairs/states/schema.py +++ b/homeassistant/components/recorder/auto_repairs/states/schema.py @@ -1,4 +1,5 @@ """States schema repairs.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/homeassistant/components/recorder/auto_repairs/statistics/duplicates.py b/homeassistant/components/recorder/auto_repairs/statistics/duplicates.py index 5b7a141bd70e..06a5c5258f18 100644 --- a/homeassistant/components/recorder/auto_repairs/statistics/duplicates.py +++ b/homeassistant/components/recorder/auto_repairs/statistics/duplicates.py @@ -1,4 +1,5 @@ """Statistics duplication repairs.""" + from __future__ import annotations import json diff --git a/homeassistant/components/recorder/auto_repairs/statistics/schema.py b/homeassistant/components/recorder/auto_repairs/statistics/schema.py index 607935bd6ffa..13c172290cab 100644 --- a/homeassistant/components/recorder/auto_repairs/statistics/schema.py +++ b/homeassistant/components/recorder/auto_repairs/statistics/schema.py @@ -1,4 +1,5 @@ """Statistics schema repairs.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/recorder/backup.py b/homeassistant/components/recorder/backup.py index a1f6f4f39bcf..d47cbe92bd42 100644 --- a/homeassistant/components/recorder/backup.py +++ b/homeassistant/components/recorder/backup.py @@ -1,4 +1,5 @@ """Backup platform for the Recorder integration.""" + from logging import getLogger from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/recorder/core.py b/homeassistant/components/recorder/core.py index 8885116dbfd8..a32af55720bf 100644 --- a/homeassistant/components/recorder/core.py +++ b/homeassistant/components/recorder/core.py @@ -1,4 +1,5 @@ """Support for recording details.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/recorder/db_schema.py b/homeassistant/components/recorder/db_schema.py index 7c7d9a743f3f..eb2e0b6ade3c 100644 --- a/homeassistant/components/recorder/db_schema.py +++ b/homeassistant/components/recorder/db_schema.py @@ -1,4 +1,5 @@ """Models for SQLAlchemy.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/recorder/executor.py b/homeassistant/components/recorder/executor.py index 3f677e72fdf4..b17547499e84 100644 --- a/homeassistant/components/recorder/executor.py +++ b/homeassistant/components/recorder/executor.py @@ -1,4 +1,5 @@ """Database executor helpers.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/recorder/filters.py b/homeassistant/components/recorder/filters.py index fda8716df278..92f4c5d3902f 100644 --- a/homeassistant/components/recorder/filters.py +++ b/homeassistant/components/recorder/filters.py @@ -1,4 +1,5 @@ """Provide pre-made queries on top of the recorder component.""" + from __future__ import annotations from collections.abc import Callable, Collection, Iterable diff --git a/homeassistant/components/recorder/history/__init__.py b/homeassistant/components/recorder/history/__init__.py index 7a569e70b156..05452fdac47d 100644 --- a/homeassistant/components/recorder/history/__init__.py +++ b/homeassistant/components/recorder/history/__init__.py @@ -1,4 +1,5 @@ """Provide pre-made queries on top of the recorder component.""" + from __future__ import annotations from collections.abc import MutableMapping diff --git a/homeassistant/components/recorder/history/common.py b/homeassistant/components/recorder/history/common.py index 6d0150925d37..3427ee9d7ee7 100644 --- a/homeassistant/components/recorder/history/common.py +++ b/homeassistant/components/recorder/history/common.py @@ -1,4 +1,5 @@ """Common functions for history.""" + from __future__ import annotations from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/recorder/history/legacy.py b/homeassistant/components/recorder/history/legacy.py index 2e1b02a8b643..6a66599e11b1 100644 --- a/homeassistant/components/recorder/history/legacy.py +++ b/homeassistant/components/recorder/history/legacy.py @@ -1,4 +1,5 @@ """Provide pre-made queries on top of the recorder component.""" + from __future__ import annotations from collections import defaultdict diff --git a/homeassistant/components/recorder/history/modern.py b/homeassistant/components/recorder/history/modern.py index da58822e266d..b35e1315cbe2 100644 --- a/homeassistant/components/recorder/history/modern.py +++ b/homeassistant/components/recorder/history/modern.py @@ -1,4 +1,5 @@ """Provide pre-made queries on top of the recorder component.""" + from __future__ import annotations from collections.abc import Callable, Iterable, Iterator, MutableMapping diff --git a/homeassistant/components/recorder/migration.py b/homeassistant/components/recorder/migration.py index 427e3acab2d7..b57070198a5d 100644 --- a/homeassistant/components/recorder/migration.py +++ b/homeassistant/components/recorder/migration.py @@ -1,4 +1,5 @@ """Schema migration helpers.""" + from __future__ import annotations from collections.abc import Callable, Iterable diff --git a/homeassistant/components/recorder/models/__init__.py b/homeassistant/components/recorder/models/__init__.py index 1a204e767e3b..d43a1da161ec 100644 --- a/homeassistant/components/recorder/models/__init__.py +++ b/homeassistant/components/recorder/models/__init__.py @@ -1,4 +1,5 @@ """Models for Recorder.""" + from __future__ import annotations from .context import ( diff --git a/homeassistant/components/recorder/models/context.py b/homeassistant/components/recorder/models/context.py index f25e4d4412f2..c09ee366b84e 100644 --- a/homeassistant/components/recorder/models/context.py +++ b/homeassistant/components/recorder/models/context.py @@ -1,4 +1,5 @@ """Models for Recorder.""" + from __future__ import annotations from contextlib import suppress diff --git a/homeassistant/components/recorder/models/database.py b/homeassistant/components/recorder/models/database.py index a8c23d200619..94c5a7cc0272 100644 --- a/homeassistant/components/recorder/models/database.py +++ b/homeassistant/components/recorder/models/database.py @@ -1,4 +1,5 @@ """Models for the database in the Recorder.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/recorder/models/event.py b/homeassistant/components/recorder/models/event.py index 1d644b62f464..379a6fddb1d9 100644 --- a/homeassistant/components/recorder/models/event.py +++ b/homeassistant/components/recorder/models/event.py @@ -1,4 +1,5 @@ """Models events in for Recorder.""" + from __future__ import annotations diff --git a/homeassistant/components/recorder/models/legacy.py b/homeassistant/components/recorder/models/legacy.py index 398ad773ba2b..af9fcf22f704 100644 --- a/homeassistant/components/recorder/models/legacy.py +++ b/homeassistant/components/recorder/models/legacy.py @@ -1,4 +1,5 @@ """Models for Recorder.""" + from __future__ import annotations from datetime import datetime diff --git a/homeassistant/components/recorder/models/state.py b/homeassistant/components/recorder/models/state.py index 5f469638ec01..9805aa569092 100644 --- a/homeassistant/components/recorder/models/state.py +++ b/homeassistant/components/recorder/models/state.py @@ -1,4 +1,5 @@ """Models states in for Recorder.""" + from __future__ import annotations from datetime import datetime diff --git a/homeassistant/components/recorder/models/statistics.py b/homeassistant/components/recorder/models/statistics.py index 4cf465955c51..ad4d82067c4b 100644 --- a/homeassistant/components/recorder/models/statistics.py +++ b/homeassistant/components/recorder/models/statistics.py @@ -1,4 +1,5 @@ """Models for statistics in the Recorder.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/recorder/models/time.py b/homeassistant/components/recorder/models/time.py index 40e4afd18a7a..af0df4e806db 100644 --- a/homeassistant/components/recorder/models/time.py +++ b/homeassistant/components/recorder/models/time.py @@ -1,4 +1,5 @@ """Models for Recorder.""" + from __future__ import annotations from datetime import datetime diff --git a/homeassistant/components/recorder/purge.py b/homeassistant/components/recorder/purge.py index a9d8c0b24825..f42bae00abed 100644 --- a/homeassistant/components/recorder/purge.py +++ b/homeassistant/components/recorder/purge.py @@ -1,4 +1,5 @@ """Purge old data helper.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/recorder/queries.py b/homeassistant/components/recorder/queries.py index c03057b31b22..fdb15d2d49cc 100644 --- a/homeassistant/components/recorder/queries.py +++ b/homeassistant/components/recorder/queries.py @@ -1,4 +1,5 @@ """Queries for the recorder.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/recorder/repack.py b/homeassistant/components/recorder/repack.py index 53c922cf4817..8c7ad137d862 100644 --- a/homeassistant/components/recorder/repack.py +++ b/homeassistant/components/recorder/repack.py @@ -1,4 +1,5 @@ """Purge repack helper.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/recorder/services.py b/homeassistant/components/recorder/services.py index fb2cd1f0befb..b4d719a94814 100644 --- a/homeassistant/components/recorder/services.py +++ b/homeassistant/components/recorder/services.py @@ -1,4 +1,5 @@ """Support for recorder services.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/recorder/statistics.py b/homeassistant/components/recorder/statistics.py index 771d85e35699..2c26328fa2d5 100644 --- a/homeassistant/components/recorder/statistics.py +++ b/homeassistant/components/recorder/statistics.py @@ -1,4 +1,5 @@ """Statistics helper.""" + from __future__ import annotations from collections import defaultdict diff --git a/homeassistant/components/recorder/system_health/__init__.py b/homeassistant/components/recorder/system_health/__init__.py index a3545ec2c894..16feaa198868 100644 --- a/homeassistant/components/recorder/system_health/__init__.py +++ b/homeassistant/components/recorder/system_health/__init__.py @@ -1,4 +1,5 @@ """Provide info to system health.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/recorder/system_health/mysql.py b/homeassistant/components/recorder/system_health/mysql.py index 1ade699eaf13..21d9d952d3a3 100644 --- a/homeassistant/components/recorder/system_health/mysql.py +++ b/homeassistant/components/recorder/system_health/mysql.py @@ -1,4 +1,5 @@ """Provide info to system health for mysql.""" + from __future__ import annotations from sqlalchemy import text diff --git a/homeassistant/components/recorder/system_health/postgresql.py b/homeassistant/components/recorder/system_health/postgresql.py index aa9197a8e850..b917e548ae5c 100644 --- a/homeassistant/components/recorder/system_health/postgresql.py +++ b/homeassistant/components/recorder/system_health/postgresql.py @@ -1,4 +1,5 @@ """Provide info to system health for postgresql.""" + from __future__ import annotations from sqlalchemy import text diff --git a/homeassistant/components/recorder/system_health/sqlite.py b/homeassistant/components/recorder/system_health/sqlite.py index 01c601aa9e94..95123d1fd141 100644 --- a/homeassistant/components/recorder/system_health/sqlite.py +++ b/homeassistant/components/recorder/system_health/sqlite.py @@ -1,4 +1,5 @@ """Provide info to system health for sqlite.""" + from __future__ import annotations from sqlalchemy import text diff --git a/homeassistant/components/recorder/table_managers/event_data.py b/homeassistant/components/recorder/table_managers/event_data.py index 4c46b1b9faf4..e8bb3f2300f5 100644 --- a/homeassistant/components/recorder/table_managers/event_data.py +++ b/homeassistant/components/recorder/table_managers/event_data.py @@ -1,4 +1,5 @@ """Support managing EventData.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/recorder/table_managers/event_types.py b/homeassistant/components/recorder/table_managers/event_types.py index c74684a0f775..94ceab7bf68a 100644 --- a/homeassistant/components/recorder/table_managers/event_types.py +++ b/homeassistant/components/recorder/table_managers/event_types.py @@ -1,4 +1,5 @@ """Support managing EventTypes.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/recorder/table_managers/recorder_runs.py b/homeassistant/components/recorder/table_managers/recorder_runs.py index 455c8375b1cf..b0b9818118ba 100644 --- a/homeassistant/components/recorder/table_managers/recorder_runs.py +++ b/homeassistant/components/recorder/table_managers/recorder_runs.py @@ -1,4 +1,5 @@ """Track recorder run history.""" + from __future__ import annotations import bisect diff --git a/homeassistant/components/recorder/table_managers/state_attributes.py b/homeassistant/components/recorder/table_managers/state_attributes.py index ddaf8cb4fca1..e2fb9153be89 100644 --- a/homeassistant/components/recorder/table_managers/state_attributes.py +++ b/homeassistant/components/recorder/table_managers/state_attributes.py @@ -1,4 +1,5 @@ """Support managing StateAttributes.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/recorder/table_managers/states.py b/homeassistant/components/recorder/table_managers/states.py index fcfdcef08911..80d2fcaddaf7 100644 --- a/homeassistant/components/recorder/table_managers/states.py +++ b/homeassistant/components/recorder/table_managers/states.py @@ -1,4 +1,5 @@ """Support managing States.""" + from __future__ import annotations from ..db_schema import States diff --git a/homeassistant/components/recorder/table_managers/states_meta.py b/homeassistant/components/recorder/table_managers/states_meta.py index 9b7aa1f7f966..ebc1dab45f32 100644 --- a/homeassistant/components/recorder/table_managers/states_meta.py +++ b/homeassistant/components/recorder/table_managers/states_meta.py @@ -1,4 +1,5 @@ """Support managing StatesMeta.""" + from __future__ import annotations from collections.abc import Iterable, Sequence diff --git a/homeassistant/components/recorder/table_managers/statistics_meta.py b/homeassistant/components/recorder/table_managers/statistics_meta.py index 76def3a22fe5..e216cb799876 100644 --- a/homeassistant/components/recorder/table_managers/statistics_meta.py +++ b/homeassistant/components/recorder/table_managers/statistics_meta.py @@ -1,4 +1,5 @@ """Support managing StatesMeta.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/recorder/tasks.py b/homeassistant/components/recorder/tasks.py index c062eb3915ff..1b81d7a983f9 100644 --- a/homeassistant/components/recorder/tasks.py +++ b/homeassistant/components/recorder/tasks.py @@ -1,4 +1,5 @@ """Support for recording details.""" + from __future__ import annotations import abc diff --git a/homeassistant/components/recorder/util.py b/homeassistant/components/recorder/util.py index f684160f86fa..67cf33ee5912 100644 --- a/homeassistant/components/recorder/util.py +++ b/homeassistant/components/recorder/util.py @@ -1,4 +1,5 @@ """SQLAlchemy util functions.""" + from __future__ import annotations from collections.abc import Callable, Collection, Generator, Iterable, Sequence diff --git a/homeassistant/components/recorder/websocket_api.py b/homeassistant/components/recorder/websocket_api.py index f2b4df1d0cca..79104485e19c 100644 --- a/homeassistant/components/recorder/websocket_api.py +++ b/homeassistant/components/recorder/websocket_api.py @@ -1,4 +1,5 @@ """The Recorder websocket API.""" + from __future__ import annotations from datetime import datetime as dt diff --git a/homeassistant/components/recovery_mode/__init__.py b/homeassistant/components/recovery_mode/__init__.py index 46a8d3206633..8d02d6044c26 100644 --- a/homeassistant/components/recovery_mode/__init__.py +++ b/homeassistant/components/recovery_mode/__init__.py @@ -1,4 +1,5 @@ """The Recovery Mode integration.""" + from homeassistant.components import persistent_notification from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv diff --git a/homeassistant/components/recswitch/switch.py b/homeassistant/components/recswitch/switch.py index 43e71ef1df9d..a0035d505829 100644 --- a/homeassistant/components/recswitch/switch.py +++ b/homeassistant/components/recswitch/switch.py @@ -1,4 +1,5 @@ """Support for Ankuoo RecSwitch MS6126 devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/reddit/sensor.py b/homeassistant/components/reddit/sensor.py index 43550658ac36..47aa2ab86f68 100644 --- a/homeassistant/components/reddit/sensor.py +++ b/homeassistant/components/reddit/sensor.py @@ -1,4 +1,5 @@ """Support for Reddit.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/refoss/__init__.py b/homeassistant/components/refoss/__init__.py index d83ca17dd6ba..666a17847c91 100644 --- a/homeassistant/components/refoss/__init__.py +++ b/homeassistant/components/refoss/__init__.py @@ -1,4 +1,5 @@ """Refoss devices platform loader.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/refoss/bridge.py b/homeassistant/components/refoss/bridge.py index 888179e8a7cb..f7bb526d11ad 100644 --- a/homeassistant/components/refoss/bridge.py +++ b/homeassistant/components/refoss/bridge.py @@ -1,4 +1,5 @@ """Refoss integration.""" + from __future__ import annotations from refoss_ha.device import DeviceInfo diff --git a/homeassistant/components/refoss/const.py b/homeassistant/components/refoss/const.py index dd11921c75ed..86e40fce43c6 100644 --- a/homeassistant/components/refoss/const.py +++ b/homeassistant/components/refoss/const.py @@ -1,4 +1,5 @@ """const.""" + from __future__ import annotations from logging import Logger, getLogger diff --git a/homeassistant/components/refoss/coordinator.py b/homeassistant/components/refoss/coordinator.py index a542f0e1ae8a..8b03313d6d6c 100644 --- a/homeassistant/components/refoss/coordinator.py +++ b/homeassistant/components/refoss/coordinator.py @@ -1,4 +1,5 @@ """Helper and coordinator for refoss.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/refoss/entity.py b/homeassistant/components/refoss/entity.py index d3425974bb15..3032c32ed51d 100644 --- a/homeassistant/components/refoss/entity.py +++ b/homeassistant/components/refoss/entity.py @@ -1,4 +1,5 @@ """Entity object for shared properties of Refoss entities.""" + from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity diff --git a/homeassistant/components/refoss/util.py b/homeassistant/components/refoss/util.py index cd589022d73b..4c44b9537af6 100644 --- a/homeassistant/components/refoss/util.py +++ b/homeassistant/components/refoss/util.py @@ -1,4 +1,5 @@ """Refoss helpers functions.""" + from __future__ import annotations from refoss_ha.discovery import Discovery diff --git a/homeassistant/components/rejseplanen/sensor.py b/homeassistant/components/rejseplanen/sensor.py index 135205aa95d9..6486ba329f45 100644 --- a/homeassistant/components/rejseplanen/sensor.py +++ b/homeassistant/components/rejseplanen/sensor.py @@ -3,6 +3,7 @@ For more info on the API see: https://help.rejseplanen.dk/hc/en-us/articles/214174465-Rejseplanen-s-API """ + from __future__ import annotations from contextlib import suppress diff --git a/homeassistant/components/remote/__init__.py b/homeassistant/components/remote/__init__.py index c5facb9785cc..fffbc913fe8c 100644 --- a/homeassistant/components/remote/__init__.py +++ b/homeassistant/components/remote/__init__.py @@ -1,4 +1,5 @@ """Support to interface with universal remote control devices.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/remote/device_action.py b/homeassistant/components/remote/device_action.py index 936c7aca37a1..a0ae707724e8 100644 --- a/homeassistant/components/remote/device_action.py +++ b/homeassistant/components/remote/device_action.py @@ -1,4 +1,5 @@ """Provides device actions for remotes.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/remote/device_condition.py b/homeassistant/components/remote/device_condition.py index 33f680e68296..f34b7f615806 100644 --- a/homeassistant/components/remote/device_condition.py +++ b/homeassistant/components/remote/device_condition.py @@ -1,4 +1,5 @@ """Provides device conditions for remotes.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/remote/device_trigger.py b/homeassistant/components/remote/device_trigger.py index f2d5c54e3c31..0f08cb155aa6 100644 --- a/homeassistant/components/remote/device_trigger.py +++ b/homeassistant/components/remote/device_trigger.py @@ -1,4 +1,5 @@ """Provides device triggers for remotes.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/remote/reproduce_state.py b/homeassistant/components/remote/reproduce_state.py index 064e4a9711ab..06a04acf0ef5 100644 --- a/homeassistant/components/remote/reproduce_state.py +++ b/homeassistant/components/remote/reproduce_state.py @@ -1,4 +1,5 @@ """Reproduce an Remote state.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/remote/significant_change.py b/homeassistant/components/remote/significant_change.py index 8e5a36690411..5d2dff879090 100644 --- a/homeassistant/components/remote/significant_change.py +++ b/homeassistant/components/remote/significant_change.py @@ -1,4 +1,5 @@ """Helper to test significant Remote state changes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/remote_rpi_gpio/__init__.py b/homeassistant/components/remote_rpi_gpio/__init__.py index 1654cc0c01db..7ab7e89b4d58 100644 --- a/homeassistant/components/remote_rpi_gpio/__init__.py +++ b/homeassistant/components/remote_rpi_gpio/__init__.py @@ -1,4 +1,5 @@ """Support for controlling GPIO pins of a Raspberry Pi.""" + from gpiozero import LED, DigitalInputDevice from gpiozero.pins.pigpio import PiGPIOFactory diff --git a/homeassistant/components/remote_rpi_gpio/binary_sensor.py b/homeassistant/components/remote_rpi_gpio/binary_sensor.py index bc0e694e8eba..ad995614ed4d 100644 --- a/homeassistant/components/remote_rpi_gpio/binary_sensor.py +++ b/homeassistant/components/remote_rpi_gpio/binary_sensor.py @@ -1,4 +1,5 @@ """Support for binary sensor using RPi GPIO.""" + from __future__ import annotations import requests diff --git a/homeassistant/components/remote_rpi_gpio/switch.py b/homeassistant/components/remote_rpi_gpio/switch.py index 962cf6b4f3c2..756e9dcfce9c 100644 --- a/homeassistant/components/remote_rpi_gpio/switch.py +++ b/homeassistant/components/remote_rpi_gpio/switch.py @@ -1,4 +1,5 @@ """Allows to configure a switch using RPi GPIO.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/renault/binary_sensor.py b/homeassistant/components/renault/binary_sensor.py index f77aaeb7893d..37e91a1e4350 100644 --- a/homeassistant/components/renault/binary_sensor.py +++ b/homeassistant/components/renault/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Renault binary sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/renault/button.py b/homeassistant/components/renault/button.py index 9f259594bfad..c1b94fcf6f21 100644 --- a/homeassistant/components/renault/button.py +++ b/homeassistant/components/renault/button.py @@ -1,4 +1,5 @@ """Support for Renault button entities.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/renault/config_flow.py b/homeassistant/components/renault/config_flow.py index cc1b76d4a5f3..82429dd146c8 100644 --- a/homeassistant/components/renault/config_flow.py +++ b/homeassistant/components/renault/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure Renault component.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/renault/const.py b/homeassistant/components/renault/const.py index 8e68eac01eb0..201a07c67839 100644 --- a/homeassistant/components/renault/const.py +++ b/homeassistant/components/renault/const.py @@ -1,4 +1,5 @@ """Constants for the Renault component.""" + from homeassistant.const import Platform DOMAIN = "renault" diff --git a/homeassistant/components/renault/coordinator.py b/homeassistant/components/renault/coordinator.py index f8e6a21823ab..f77a38f2505c 100644 --- a/homeassistant/components/renault/coordinator.py +++ b/homeassistant/components/renault/coordinator.py @@ -1,4 +1,5 @@ """Proxy to handle account communication with Renault servers.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/renault/device_tracker.py b/homeassistant/components/renault/device_tracker.py index d5171bc954a1..922173461a06 100644 --- a/homeassistant/components/renault/device_tracker.py +++ b/homeassistant/components/renault/device_tracker.py @@ -1,4 +1,5 @@ """Support for Renault device trackers.""" + from __future__ import annotations from renault_api.kamereon.models import KamereonVehicleLocationData diff --git a/homeassistant/components/renault/diagnostics.py b/homeassistant/components/renault/diagnostics.py index 2029ef989d6f..1234def019e0 100644 --- a/homeassistant/components/renault/diagnostics.py +++ b/homeassistant/components/renault/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Renault.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/renault/entity.py b/homeassistant/components/renault/entity.py index fd7f0eb3654b..10de028b2d0f 100644 --- a/homeassistant/components/renault/entity.py +++ b/homeassistant/components/renault/entity.py @@ -1,4 +1,5 @@ """Base classes for Renault entities.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/renault/renault_hub.py b/homeassistant/components/renault/renault_hub.py index 49819dd919fe..97a9d080b86d 100644 --- a/homeassistant/components/renault/renault_hub.py +++ b/homeassistant/components/renault/renault_hub.py @@ -1,4 +1,5 @@ """Proxy to handle account communication with Renault servers.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/renault/renault_vehicle.py b/homeassistant/components/renault/renault_vehicle.py index e44a50d57a1a..55a5574a444a 100644 --- a/homeassistant/components/renault/renault_vehicle.py +++ b/homeassistant/components/renault/renault_vehicle.py @@ -1,4 +1,5 @@ """Proxy to handle account communication with Renault servers.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/renault/select.py b/homeassistant/components/renault/select.py index 398ccf14fb73..ffae27c5e558 100644 --- a/homeassistant/components/renault/select.py +++ b/homeassistant/components/renault/select.py @@ -1,4 +1,5 @@ """Support for Renault sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/renault/sensor.py b/homeassistant/components/renault/sensor.py index d864bd4936c6..f806ca374c2e 100644 --- a/homeassistant/components/renault/sensor.py +++ b/homeassistant/components/renault/sensor.py @@ -1,4 +1,5 @@ """Support for Renault sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/renault/services.py b/homeassistant/components/renault/services.py index d2c7d4518447..b49088ddb7d0 100644 --- a/homeassistant/components/renault/services.py +++ b/homeassistant/components/renault/services.py @@ -1,4 +1,5 @@ """Support for Renault services.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/renson/__init__.py b/homeassistant/components/renson/__init__.py index c046f93cdc0f..d1eebdf0a5f7 100644 --- a/homeassistant/components/renson/__init__.py +++ b/homeassistant/components/renson/__init__.py @@ -1,4 +1,5 @@ """The Renson integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/renson/binary_sensor.py b/homeassistant/components/renson/binary_sensor.py index 012ecee2e987..90258a9ae4ba 100644 --- a/homeassistant/components/renson/binary_sensor.py +++ b/homeassistant/components/renson/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensors for renson.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/renson/button.py b/homeassistant/components/renson/button.py index 5cdf0e4787b0..c9a03a5bffbd 100644 --- a/homeassistant/components/renson/button.py +++ b/homeassistant/components/renson/button.py @@ -1,4 +1,5 @@ """Renson ventilation unit buttons.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/renson/config_flow.py b/homeassistant/components/renson/config_flow.py index 614abdb3665c..ec380f5a5135 100644 --- a/homeassistant/components/renson/config_flow.py +++ b/homeassistant/components/renson/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Renson integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/renson/coordinator.py b/homeassistant/components/renson/coordinator.py index 924a3b765f56..8613220eee10 100644 --- a/homeassistant/components/renson/coordinator.py +++ b/homeassistant/components/renson/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the renson integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/renson/entity.py b/homeassistant/components/renson/entity.py index 9bb2c27b1122..cee991386ea7 100644 --- a/homeassistant/components/renson/entity.py +++ b/homeassistant/components/renson/entity.py @@ -1,4 +1,5 @@ """Entity class for Renson ventilation unit.""" + from __future__ import annotations from renson_endura_delta.field_enum import ( diff --git a/homeassistant/components/renson/fan.py b/homeassistant/components/renson/fan.py index d15e14aa628e..226d623af2bb 100644 --- a/homeassistant/components/renson/fan.py +++ b/homeassistant/components/renson/fan.py @@ -1,4 +1,5 @@ """Platform to control a Renson ventilation unit.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/renson/number.py b/homeassistant/components/renson/number.py index 972368298a6d..fb8ab8fc552e 100644 --- a/homeassistant/components/renson/number.py +++ b/homeassistant/components/renson/number.py @@ -1,4 +1,5 @@ """Platform to control a Renson ventilation unit.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/renson/sensor.py b/homeassistant/components/renson/sensor.py index 367b4a47a63c..78ece708c4cd 100644 --- a/homeassistant/components/renson/sensor.py +++ b/homeassistant/components/renson/sensor.py @@ -1,4 +1,5 @@ """Sensor data of the Renson ventilation unit.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/renson/switch.py b/homeassistant/components/renson/switch.py index 8d639a64d486..2cd44d20a6a5 100644 --- a/homeassistant/components/renson/switch.py +++ b/homeassistant/components/renson/switch.py @@ -1,4 +1,5 @@ """Breeze switch of the Renson ventilation unit.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/renson/time.py b/homeassistant/components/renson/time.py index 57d6869a72c4..feb47fadf996 100644 --- a/homeassistant/components/renson/time.py +++ b/homeassistant/components/renson/time.py @@ -1,4 +1,5 @@ """Renson ventilation unit time.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/binary_sensor.py b/homeassistant/components/reolink/binary_sensor.py index 87991709e8b5..fe80177da122 100644 --- a/homeassistant/components/reolink/binary_sensor.py +++ b/homeassistant/components/reolink/binary_sensor.py @@ -1,4 +1,5 @@ """Component providing support for Reolink binary sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/button.py b/homeassistant/components/reolink/button.py index b878505ed846..528807920d3a 100644 --- a/homeassistant/components/reolink/button.py +++ b/homeassistant/components/reolink/button.py @@ -1,4 +1,5 @@ """Component providing support for Reolink button entities.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/camera.py b/homeassistant/components/reolink/camera.py index 715588a82251..a2c396e7ef5f 100644 --- a/homeassistant/components/reolink/camera.py +++ b/homeassistant/components/reolink/camera.py @@ -1,4 +1,5 @@ """Component providing support for Reolink IP cameras.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/reolink/config_flow.py b/homeassistant/components/reolink/config_flow.py index 627a41c95113..3257d183de88 100644 --- a/homeassistant/components/reolink/config_flow.py +++ b/homeassistant/components/reolink/config_flow.py @@ -1,4 +1,5 @@ """Config flow for the Reolink camera component.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/reolink/diagnostics.py b/homeassistant/components/reolink/diagnostics.py index 04b476296f87..5c13bccf58d4 100644 --- a/homeassistant/components/reolink/diagnostics.py +++ b/homeassistant/components/reolink/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Reolink.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/reolink/entity.py b/homeassistant/components/reolink/entity.py index 042e6b457172..e02fd931f66a 100644 --- a/homeassistant/components/reolink/entity.py +++ b/homeassistant/components/reolink/entity.py @@ -1,4 +1,5 @@ """Reolink parent entity class.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/exceptions.py b/homeassistant/components/reolink/exceptions.py index f3e9e0158cdd..d166b438f31e 100644 --- a/homeassistant/components/reolink/exceptions.py +++ b/homeassistant/components/reolink/exceptions.py @@ -1,4 +1,5 @@ """Exceptions for the Reolink Camera integration.""" + from homeassistant.exceptions import HomeAssistantError diff --git a/homeassistant/components/reolink/host.py b/homeassistant/components/reolink/host.py index 77aeffd54121..44750cdeb3c9 100644 --- a/homeassistant/components/reolink/host.py +++ b/homeassistant/components/reolink/host.py @@ -1,4 +1,5 @@ """Module which encapsulates the NVR/camera API and subscription.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/reolink/light.py b/homeassistant/components/reolink/light.py index 108e8fb477b5..877bf80080bf 100644 --- a/homeassistant/components/reolink/light.py +++ b/homeassistant/components/reolink/light.py @@ -1,4 +1,5 @@ """Component providing support for Reolink light entities.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/number.py b/homeassistant/components/reolink/number.py index ec6354aa3208..c4623c49c917 100644 --- a/homeassistant/components/reolink/number.py +++ b/homeassistant/components/reolink/number.py @@ -1,4 +1,5 @@ """Component providing support for Reolink number entities.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/select.py b/homeassistant/components/reolink/select.py index 24c149d2deeb..13757e7bb225 100644 --- a/homeassistant/components/reolink/select.py +++ b/homeassistant/components/reolink/select.py @@ -1,4 +1,5 @@ """Component providing support for Reolink select entities.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/sensor.py b/homeassistant/components/reolink/sensor.py index 6706e49fcf49..9bc72fc7b18e 100644 --- a/homeassistant/components/reolink/sensor.py +++ b/homeassistant/components/reolink/sensor.py @@ -1,4 +1,5 @@ """Component providing support for Reolink sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/siren.py b/homeassistant/components/reolink/siren.py index e174be0304f2..269c06901055 100644 --- a/homeassistant/components/reolink/siren.py +++ b/homeassistant/components/reolink/siren.py @@ -1,4 +1,5 @@ """Component providing support for Reolink siren entities.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/reolink/switch.py b/homeassistant/components/reolink/switch.py index 3c4291855564..adda97debb41 100644 --- a/homeassistant/components/reolink/switch.py +++ b/homeassistant/components/reolink/switch.py @@ -1,4 +1,5 @@ """Component providing support for Reolink switch entities.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/reolink/update.py b/homeassistant/components/reolink/update.py index ffd429e92ad6..41933ae2efca 100644 --- a/homeassistant/components/reolink/update.py +++ b/homeassistant/components/reolink/update.py @@ -1,4 +1,5 @@ """Update entities for Reolink devices.""" + from __future__ import annotations from datetime import datetime diff --git a/homeassistant/components/reolink/util.py b/homeassistant/components/reolink/util.py index cc9ad192bc3a..cf4659224e35 100644 --- a/homeassistant/components/reolink/util.py +++ b/homeassistant/components/reolink/util.py @@ -1,4 +1,5 @@ """Utility functions for the Reolink component.""" + from __future__ import annotations from homeassistant import config_entries diff --git a/homeassistant/components/repairs/__init__.py b/homeassistant/components/repairs/__init__.py index 228972e8718f..8d3fc429ce02 100644 --- a/homeassistant/components/repairs/__init__.py +++ b/homeassistant/components/repairs/__init__.py @@ -1,4 +1,5 @@ """The repairs integration.""" + from __future__ import annotations from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/repairs/issue_handler.py b/homeassistant/components/repairs/issue_handler.py index be7a63104643..8a170b1de8d7 100644 --- a/homeassistant/components/repairs/issue_handler.py +++ b/homeassistant/components/repairs/issue_handler.py @@ -1,4 +1,5 @@ """The repairs integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/repairs/models.py b/homeassistant/components/repairs/models.py index 6ae175b29e96..afac8813d1eb 100644 --- a/homeassistant/components/repairs/models.py +++ b/homeassistant/components/repairs/models.py @@ -1,4 +1,5 @@ """Models for Repairs.""" + from __future__ import annotations from typing import Protocol diff --git a/homeassistant/components/repairs/websocket_api.py b/homeassistant/components/repairs/websocket_api.py index 78a3c10bbe4c..af5f82e49d42 100644 --- a/homeassistant/components/repairs/websocket_api.py +++ b/homeassistant/components/repairs/websocket_api.py @@ -1,4 +1,5 @@ """The repairs websocket API.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/repetier/__init__.py b/homeassistant/components/repetier/__init__.py index 91a16ea3fbeb..2642e78e7ec0 100644 --- a/homeassistant/components/repetier/__init__.py +++ b/homeassistant/components/repetier/__init__.py @@ -1,4 +1,5 @@ """Support for Repetier-Server sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/repetier/sensor.py b/homeassistant/components/repetier/sensor.py index 578ca58b80f3..d413c25c8d44 100644 --- a/homeassistant/components/repetier/sensor.py +++ b/homeassistant/components/repetier/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring Repetier Server Sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rest/__init__.py b/homeassistant/components/rest/__init__.py index d8610f148bda..1c33b4592df1 100644 --- a/homeassistant/components/rest/__init__.py +++ b/homeassistant/components/rest/__init__.py @@ -1,4 +1,5 @@ """The rest component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/rest/binary_sensor.py b/homeassistant/components/rest/binary_sensor.py index 8c629e2240e5..0568203a91c4 100644 --- a/homeassistant/components/rest/binary_sensor.py +++ b/homeassistant/components/rest/binary_sensor.py @@ -1,4 +1,5 @@ """Support for RESTful binary sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rest/data.py b/homeassistant/components/rest/data.py index 61c88a14400d..06be7a4f6ffb 100644 --- a/homeassistant/components/rest/data.py +++ b/homeassistant/components/rest/data.py @@ -1,4 +1,5 @@ """Support for RESTful API.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rest/entity.py b/homeassistant/components/rest/entity.py index f0cccc8b762c..3695c8993714 100644 --- a/homeassistant/components/rest/entity.py +++ b/homeassistant/components/rest/entity.py @@ -1,4 +1,5 @@ """The base entity for the rest component.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/rest/notify.py b/homeassistant/components/rest/notify.py index e155fe47048c..7744154c1c54 100644 --- a/homeassistant/components/rest/notify.py +++ b/homeassistant/components/rest/notify.py @@ -1,4 +1,5 @@ """RESTful platform for notify component.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/rest/sensor.py b/homeassistant/components/rest/sensor.py index 67f70a716b0e..199ab3721c3d 100644 --- a/homeassistant/components/rest/sensor.py +++ b/homeassistant/components/rest/sensor.py @@ -1,4 +1,5 @@ """Support for RESTful API sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rest/switch.py b/homeassistant/components/rest/switch.py index e021b72ff3d9..f0da6366cfce 100644 --- a/homeassistant/components/rest/switch.py +++ b/homeassistant/components/rest/switch.py @@ -1,4 +1,5 @@ """Support for RESTful switches.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/rest_command/__init__.py b/homeassistant/components/rest_command/__init__.py index 199186cf2225..81a57e432d2b 100644 --- a/homeassistant/components/rest_command/__init__.py +++ b/homeassistant/components/rest_command/__init__.py @@ -1,4 +1,5 @@ """Support for exposing regular REST commands as services.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/rflink/__init__.py b/homeassistant/components/rflink/__init__.py index 5b90e6569114..ee2e1cb9fff9 100644 --- a/homeassistant/components/rflink/__init__.py +++ b/homeassistant/components/rflink/__init__.py @@ -1,4 +1,5 @@ """Support for Rflink devices.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/rflink/binary_sensor.py b/homeassistant/components/rflink/binary_sensor.py index e307d9de3828..789e25c62b18 100644 --- a/homeassistant/components/rflink/binary_sensor.py +++ b/homeassistant/components/rflink/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Rflink binary sensors.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rflink/cover.py b/homeassistant/components/rflink/cover.py index 9492611f439f..d440b324532a 100644 --- a/homeassistant/components/rflink/cover.py +++ b/homeassistant/components/rflink/cover.py @@ -1,4 +1,5 @@ """Support for Rflink Cover devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rflink/light.py b/homeassistant/components/rflink/light.py index 347d2f1074f4..d354e317ccba 100644 --- a/homeassistant/components/rflink/light.py +++ b/homeassistant/components/rflink/light.py @@ -1,4 +1,5 @@ """Support for Rflink lights.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rflink/sensor.py b/homeassistant/components/rflink/sensor.py index fd6db8f0c604..b01d1f709fed 100644 --- a/homeassistant/components/rflink/sensor.py +++ b/homeassistant/components/rflink/sensor.py @@ -1,4 +1,5 @@ """Support for Rflink sensors.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rflink/switch.py b/homeassistant/components/rflink/switch.py index fe82dd0297b1..fdf8f63ab7d9 100644 --- a/homeassistant/components/rflink/switch.py +++ b/homeassistant/components/rflink/switch.py @@ -1,4 +1,5 @@ """Support for Rflink switches.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/rfxtrx/__init__.py b/homeassistant/components/rfxtrx/__init__.py index ce17316e6c76..4cacb27b49a8 100644 --- a/homeassistant/components/rfxtrx/__init__.py +++ b/homeassistant/components/rfxtrx/__init__.py @@ -1,4 +1,5 @@ """Support for RFXtrx devices.""" + from __future__ import annotations import binascii diff --git a/homeassistant/components/rfxtrx/binary_sensor.py b/homeassistant/components/rfxtrx/binary_sensor.py index 03cf65a49ffc..03c22167358f 100644 --- a/homeassistant/components/rfxtrx/binary_sensor.py +++ b/homeassistant/components/rfxtrx/binary_sensor.py @@ -1,4 +1,5 @@ """Support for RFXtrx binary sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rfxtrx/config_flow.py b/homeassistant/components/rfxtrx/config_flow.py index e79303a4e236..aba6c08b06af 100644 --- a/homeassistant/components/rfxtrx/config_flow.py +++ b/homeassistant/components/rfxtrx/config_flow.py @@ -1,4 +1,5 @@ """Config flow for RFXCOM RFXtrx integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/rfxtrx/cover.py b/homeassistant/components/rfxtrx/cover.py index 532e41ac50cb..9e9e5a090e4f 100644 --- a/homeassistant/components/rfxtrx/cover.py +++ b/homeassistant/components/rfxtrx/cover.py @@ -1,4 +1,5 @@ """Support for RFXtrx covers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rfxtrx/device_action.py b/homeassistant/components/rfxtrx/device_action.py index 15595b88cd21..e706153ace01 100644 --- a/homeassistant/components/rfxtrx/device_action.py +++ b/homeassistant/components/rfxtrx/device_action.py @@ -1,4 +1,5 @@ """Provides device automations for RFXCOM RFXtrx.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/rfxtrx/device_trigger.py b/homeassistant/components/rfxtrx/device_trigger.py index a2f323955725..3064832a3971 100644 --- a/homeassistant/components/rfxtrx/device_trigger.py +++ b/homeassistant/components/rfxtrx/device_trigger.py @@ -1,4 +1,5 @@ """Provides device automations for RFXCOM RFXtrx.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/rfxtrx/diagnostics.py b/homeassistant/components/rfxtrx/diagnostics.py index bc2fae2452d0..d8bebfca2aed 100644 --- a/homeassistant/components/rfxtrx/diagnostics.py +++ b/homeassistant/components/rfxtrx/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for RFXCOM RFXtrx.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rfxtrx/event.py b/homeassistant/components/rfxtrx/event.py index de4b32c54755..7e73919aacd4 100644 --- a/homeassistant/components/rfxtrx/event.py +++ b/homeassistant/components/rfxtrx/event.py @@ -1,4 +1,5 @@ """Support for RFXtrx sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rfxtrx/light.py b/homeassistant/components/rfxtrx/light.py index ad84515d41df..f9bbbc28a8da 100644 --- a/homeassistant/components/rfxtrx/light.py +++ b/homeassistant/components/rfxtrx/light.py @@ -1,4 +1,5 @@ """Support for RFXtrx lights.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rfxtrx/sensor.py b/homeassistant/components/rfxtrx/sensor.py index 66803edffc5d..0bb98c448963 100644 --- a/homeassistant/components/rfxtrx/sensor.py +++ b/homeassistant/components/rfxtrx/sensor.py @@ -1,4 +1,5 @@ """Support for RFXtrx sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/rfxtrx/siren.py b/homeassistant/components/rfxtrx/siren.py index bfff08d5ea60..67a0c6b7dce1 100644 --- a/homeassistant/components/rfxtrx/siren.py +++ b/homeassistant/components/rfxtrx/siren.py @@ -1,4 +1,5 @@ """Support for RFXtrx sirens.""" + from __future__ import annotations from datetime import datetime diff --git a/homeassistant/components/rfxtrx/switch.py b/homeassistant/components/rfxtrx/switch.py index edc34aeb80dd..fad395f41c2c 100644 --- a/homeassistant/components/rfxtrx/switch.py +++ b/homeassistant/components/rfxtrx/switch.py @@ -1,4 +1,5 @@ """Support for RFXtrx switches.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rhasspy/__init__.py b/homeassistant/components/rhasspy/__init__.py index 669d81952d4c..d673aace40be 100644 --- a/homeassistant/components/rhasspy/__init__.py +++ b/homeassistant/components/rhasspy/__init__.py @@ -1,4 +1,5 @@ """The Rhasspy integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/rhasspy/config_flow.py b/homeassistant/components/rhasspy/config_flow.py index 4253e09a94d1..114d74d4d051 100644 --- a/homeassistant/components/rhasspy/config_flow.py +++ b/homeassistant/components/rhasspy/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Rhasspy integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ridwell/__init__.py b/homeassistant/components/ridwell/__init__.py index 53575e79c45e..cf584207091a 100644 --- a/homeassistant/components/ridwell/__init__.py +++ b/homeassistant/components/ridwell/__init__.py @@ -1,4 +1,5 @@ """The Ridwell integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ridwell/calendar.py b/homeassistant/components/ridwell/calendar.py index bf9c83914ac4..ecca03667546 100644 --- a/homeassistant/components/ridwell/calendar.py +++ b/homeassistant/components/ridwell/calendar.py @@ -1,4 +1,5 @@ """Support for Ridwell calendars.""" + from __future__ import annotations import datetime diff --git a/homeassistant/components/ridwell/config_flow.py b/homeassistant/components/ridwell/config_flow.py index d8d4e2b7381e..a54d4debe754 100644 --- a/homeassistant/components/ridwell/config_flow.py +++ b/homeassistant/components/ridwell/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Ridwell integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/ridwell/coordinator.py b/homeassistant/components/ridwell/coordinator.py index 9561cd26e4b7..28190522c762 100644 --- a/homeassistant/components/ridwell/coordinator.py +++ b/homeassistant/components/ridwell/coordinator.py @@ -1,4 +1,5 @@ """Define a Ridwell coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/ridwell/diagnostics.py b/homeassistant/components/ridwell/diagnostics.py index f48861cee197..0eff7583311a 100644 --- a/homeassistant/components/ridwell/diagnostics.py +++ b/homeassistant/components/ridwell/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Ridwell.""" + from __future__ import annotations import dataclasses diff --git a/homeassistant/components/ridwell/entity.py b/homeassistant/components/ridwell/entity.py index 095ecc3c5c64..d8323f7aef6b 100644 --- a/homeassistant/components/ridwell/entity.py +++ b/homeassistant/components/ridwell/entity.py @@ -1,4 +1,5 @@ """Define a base Ridwell entity.""" + from __future__ import annotations from datetime import date diff --git a/homeassistant/components/ridwell/sensor.py b/homeassistant/components/ridwell/sensor.py index e4626831d7d0..7fc7fdb53482 100644 --- a/homeassistant/components/ridwell/sensor.py +++ b/homeassistant/components/ridwell/sensor.py @@ -1,4 +1,5 @@ """Support for Ridwell sensors.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/ridwell/switch.py b/homeassistant/components/ridwell/switch.py index c18e1d44b073..04e3e4c5ff94 100644 --- a/homeassistant/components/ridwell/switch.py +++ b/homeassistant/components/ridwell/switch.py @@ -1,4 +1,5 @@ """Support for Ridwell buttons.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ring/__init__.py b/homeassistant/components/ring/__init__.py index 26fdc6d0575c..5470d997fab6 100644 --- a/homeassistant/components/ring/__init__.py +++ b/homeassistant/components/ring/__init__.py @@ -1,4 +1,5 @@ """Support for Ring Doorbell/Chimes.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/ring/binary_sensor.py b/homeassistant/components/ring/binary_sensor.py index a7e04f4cfb94..1c39e484f973 100644 --- a/homeassistant/components/ring/binary_sensor.py +++ b/homeassistant/components/ring/binary_sensor.py @@ -1,4 +1,5 @@ """Component providing HA sensor support for Ring Door Bell/Chimes.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/ring/camera.py b/homeassistant/components/ring/camera.py index 265d7102b914..38b9cae055cd 100644 --- a/homeassistant/components/ring/camera.py +++ b/homeassistant/components/ring/camera.py @@ -1,4 +1,5 @@ """Component providing support to the Ring Door Bell camera.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/ring/config_flow.py b/homeassistant/components/ring/config_flow.py index 6fc22e407f30..f5557c481836 100644 --- a/homeassistant/components/ring/config_flow.py +++ b/homeassistant/components/ring/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Ring integration.""" + from collections.abc import Mapping import logging from typing import Any diff --git a/homeassistant/components/ring/const.py b/homeassistant/components/ring/const.py index f0e0c63d7788..24c584016d53 100644 --- a/homeassistant/components/ring/const.py +++ b/homeassistant/components/ring/const.py @@ -1,4 +1,5 @@ """The Ring constants.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/ring/coordinator.py b/homeassistant/components/ring/coordinator.py index 943b1c628bf1..bccfccf2808c 100644 --- a/homeassistant/components/ring/coordinator.py +++ b/homeassistant/components/ring/coordinator.py @@ -1,4 +1,5 @@ """Data coordinators for the ring integration.""" + from asyncio import TaskGroup from collections.abc import Callable from dataclasses import dataclass diff --git a/homeassistant/components/ring/diagnostics.py b/homeassistant/components/ring/diagnostics.py index 105800f8d13b..0f9c91415d7c 100644 --- a/homeassistant/components/ring/diagnostics.py +++ b/homeassistant/components/ring/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Ring.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ring/entity.py b/homeassistant/components/ring/entity.py index 78f0c8e468e0..94dbb1ba9870 100644 --- a/homeassistant/components/ring/entity.py +++ b/homeassistant/components/ring/entity.py @@ -1,4 +1,5 @@ """Base class for Ring entity.""" + from typing import TypeVar from ring_doorbell.generic import RingGeneric diff --git a/homeassistant/components/ring/light.py b/homeassistant/components/ring/light.py index 73ec8349384d..1d3dde97ae08 100644 --- a/homeassistant/components/ring/light.py +++ b/homeassistant/components/ring/light.py @@ -1,4 +1,5 @@ """Component providing HA switch support for Ring Door Bell/Chimes.""" + from datetime import timedelta import logging from typing import Any diff --git a/homeassistant/components/ring/sensor.py b/homeassistant/components/ring/sensor.py index ab77e0461bbc..0c9c0196f111 100644 --- a/homeassistant/components/ring/sensor.py +++ b/homeassistant/components/ring/sensor.py @@ -1,4 +1,5 @@ """Component providing HA sensor support for Ring Door Bell/Chimes.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/ring/switch.py b/homeassistant/components/ring/switch.py index b0a1e236df59..d2b93cf7154c 100644 --- a/homeassistant/components/ring/switch.py +++ b/homeassistant/components/ring/switch.py @@ -1,4 +1,5 @@ """Component providing HA switch support for Ring Door Bell/Chimes.""" + from datetime import timedelta import logging from typing import Any diff --git a/homeassistant/components/ripple/sensor.py b/homeassistant/components/ripple/sensor.py index bab765c289cf..1b65ec7ae097 100644 --- a/homeassistant/components/ripple/sensor.py +++ b/homeassistant/components/ripple/sensor.py @@ -1,4 +1,5 @@ """Support for Ripple sensors.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/risco/__init__.py b/homeassistant/components/risco/__init__.py index d1e1c4f430c4..2c55b474e004 100644 --- a/homeassistant/components/risco/__init__.py +++ b/homeassistant/components/risco/__init__.py @@ -1,4 +1,5 @@ """The Risco integration.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/risco/alarm_control_panel.py b/homeassistant/components/risco/alarm_control_panel.py index 8a233d0b5fe4..580842e78ada 100644 --- a/homeassistant/components/risco/alarm_control_panel.py +++ b/homeassistant/components/risco/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Risco alarms.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/risco/binary_sensor.py b/homeassistant/components/risco/binary_sensor.py index ea7153b2aee5..f2f012022401 100644 --- a/homeassistant/components/risco/binary_sensor.py +++ b/homeassistant/components/risco/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Risco alarm zones.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/risco/config_flow.py b/homeassistant/components/risco/config_flow.py index d18fb91e0c8b..bd703ca5a6d2 100644 --- a/homeassistant/components/risco/config_flow.py +++ b/homeassistant/components/risco/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Risco integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/risco/entity.py b/homeassistant/components/risco/entity.py index ac3c04cfc2e6..b3a3cdd1d4d8 100644 --- a/homeassistant/components/risco/entity.py +++ b/homeassistant/components/risco/entity.py @@ -1,4 +1,5 @@ """A risco entity base class.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/risco/sensor.py b/homeassistant/components/risco/sensor.py index 138c08c18f6b..f4d6ddaf451d 100644 --- a/homeassistant/components/risco/sensor.py +++ b/homeassistant/components/risco/sensor.py @@ -1,4 +1,5 @@ """Sensor for Risco Events.""" + from __future__ import annotations from collections.abc import Collection, Mapping diff --git a/homeassistant/components/risco/switch.py b/homeassistant/components/risco/switch.py index d22b2bb21923..c43b55b0233b 100644 --- a/homeassistant/components/risco/switch.py +++ b/homeassistant/components/risco/switch.py @@ -1,4 +1,5 @@ """Support for bypassing Risco alarm zones.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rituals_perfume_genie/binary_sensor.py b/homeassistant/components/rituals_perfume_genie/binary_sensor.py index f33a687b88fd..63666fc1acaf 100644 --- a/homeassistant/components/rituals_perfume_genie/binary_sensor.py +++ b/homeassistant/components/rituals_perfume_genie/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Rituals Perfume Genie binary sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/rituals_perfume_genie/config_flow.py b/homeassistant/components/rituals_perfume_genie/config_flow.py index 069d80089455..7bff52fb864a 100644 --- a/homeassistant/components/rituals_perfume_genie/config_flow.py +++ b/homeassistant/components/rituals_perfume_genie/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Rituals Perfume Genie integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rituals_perfume_genie/diagnostics.py b/homeassistant/components/rituals_perfume_genie/diagnostics.py index 75b622b48b11..bcc61a01ad62 100644 --- a/homeassistant/components/rituals_perfume_genie/diagnostics.py +++ b/homeassistant/components/rituals_perfume_genie/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Rituals Perfume Genie.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/rituals_perfume_genie/entity.py b/homeassistant/components/rituals_perfume_genie/entity.py index 83564f404881..35dbf639dd0f 100644 --- a/homeassistant/components/rituals_perfume_genie/entity.py +++ b/homeassistant/components/rituals_perfume_genie/entity.py @@ -1,4 +1,5 @@ """Base class for Rituals Perfume Genie diffuser entity.""" + from __future__ import annotations from homeassistant.helpers.device_registry import DeviceInfo diff --git a/homeassistant/components/rituals_perfume_genie/number.py b/homeassistant/components/rituals_perfume_genie/number.py index b21245645cf2..0ac9c30f285b 100644 --- a/homeassistant/components/rituals_perfume_genie/number.py +++ b/homeassistant/components/rituals_perfume_genie/number.py @@ -1,4 +1,5 @@ """Support for Rituals Perfume Genie numbers.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/rituals_perfume_genie/select.py b/homeassistant/components/rituals_perfume_genie/select.py index 0f4deba6e42c..e93d6ae03ef2 100644 --- a/homeassistant/components/rituals_perfume_genie/select.py +++ b/homeassistant/components/rituals_perfume_genie/select.py @@ -1,4 +1,5 @@ """Support for Rituals Perfume Genie numbers.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/rituals_perfume_genie/sensor.py b/homeassistant/components/rituals_perfume_genie/sensor.py index 4de3bb9235c7..46faa8d73e94 100644 --- a/homeassistant/components/rituals_perfume_genie/sensor.py +++ b/homeassistant/components/rituals_perfume_genie/sensor.py @@ -1,4 +1,5 @@ """Support for Rituals Perfume Genie sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/rituals_perfume_genie/switch.py b/homeassistant/components/rituals_perfume_genie/switch.py index 8f93f4fe14d7..6b88f4f26c19 100644 --- a/homeassistant/components/rituals_perfume_genie/switch.py +++ b/homeassistant/components/rituals_perfume_genie/switch.py @@ -1,4 +1,5 @@ """Support for Rituals Perfume Genie switches.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/rmvtransport/sensor.py b/homeassistant/components/rmvtransport/sensor.py index ebe8f34c8921..e53423d3b14f 100644 --- a/homeassistant/components/rmvtransport/sensor.py +++ b/homeassistant/components/rmvtransport/sensor.py @@ -1,4 +1,5 @@ """Support for departure information for Rhein-Main public transport.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/roborock/__init__.py b/homeassistant/components/roborock/__init__.py index f4293213c005..55f25e6bdd2b 100644 --- a/homeassistant/components/roborock/__init__.py +++ b/homeassistant/components/roborock/__init__.py @@ -1,4 +1,5 @@ """The Roborock component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/roborock/binary_sensor.py b/homeassistant/components/roborock/binary_sensor.py index e4e652888327..2c903e0bcc99 100644 --- a/homeassistant/components/roborock/binary_sensor.py +++ b/homeassistant/components/roborock/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Roborock sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/roborock/button.py b/homeassistant/components/roborock/button.py index e64b39c23839..4a37f1b32089 100644 --- a/homeassistant/components/roborock/button.py +++ b/homeassistant/components/roborock/button.py @@ -1,4 +1,5 @@ """Support for Roborock button.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/roborock/config_flow.py b/homeassistant/components/roborock/config_flow.py index 597798af2eaa..ede9afc826d4 100644 --- a/homeassistant/components/roborock/config_flow.py +++ b/homeassistant/components/roborock/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Roborock.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/roborock/const.py b/homeassistant/components/roborock/const.py index f163c9620d1d..77f0be3363ec 100644 --- a/homeassistant/components/roborock/const.py +++ b/homeassistant/components/roborock/const.py @@ -1,4 +1,5 @@ """Constants for Roborock.""" + from vacuum_map_parser_base.config.drawable import Drawable from homeassistant.const import Platform diff --git a/homeassistant/components/roborock/coordinator.py b/homeassistant/components/roborock/coordinator.py index 7154a36f7b8c..e682b119069f 100644 --- a/homeassistant/components/roborock/coordinator.py +++ b/homeassistant/components/roborock/coordinator.py @@ -1,4 +1,5 @@ """Roborock Coordinator.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/roborock/device.py b/homeassistant/components/roborock/device.py index 2921a372e001..01f26df56f36 100644 --- a/homeassistant/components/roborock/device.py +++ b/homeassistant/components/roborock/device.py @@ -1,4 +1,5 @@ """Support for Roborock device base class.""" + from typing import Any from roborock.api import AttributeCache, RoborockClient diff --git a/homeassistant/components/roborock/diagnostics.py b/homeassistant/components/roborock/diagnostics.py index e5fcc8342677..79a9f0bafed1 100644 --- a/homeassistant/components/roborock/diagnostics.py +++ b/homeassistant/components/roborock/diagnostics.py @@ -1,4 +1,5 @@ """Support for the Airzone diagnostics.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/roborock/models.py b/homeassistant/components/roborock/models.py index c1d32df2d6d3..45b98fddbc5f 100644 --- a/homeassistant/components/roborock/models.py +++ b/homeassistant/components/roborock/models.py @@ -1,4 +1,5 @@ """Roborock Models.""" + from dataclasses import dataclass from typing import Any diff --git a/homeassistant/components/roborock/select.py b/homeassistant/components/roborock/select.py index 3fdd10c97d57..b6e557083712 100644 --- a/homeassistant/components/roborock/select.py +++ b/homeassistant/components/roborock/select.py @@ -1,4 +1,5 @@ """Support for Roborock select.""" + from collections.abc import Callable from dataclasses import dataclass diff --git a/homeassistant/components/roborock/sensor.py b/homeassistant/components/roborock/sensor.py index 8d723ec57cd7..e1f87ccf6031 100644 --- a/homeassistant/components/roborock/sensor.py +++ b/homeassistant/components/roborock/sensor.py @@ -1,4 +1,5 @@ """Support for Roborock sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/roborock/switch.py b/homeassistant/components/roborock/switch.py index acd3e2613af5..6c9c5e18bf0b 100644 --- a/homeassistant/components/roborock/switch.py +++ b/homeassistant/components/roborock/switch.py @@ -1,4 +1,5 @@ """Support for Roborock switch.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/roborock/vacuum.py b/homeassistant/components/roborock/vacuum.py index 3684b5840473..22d9353e2a23 100644 --- a/homeassistant/components/roborock/vacuum.py +++ b/homeassistant/components/roborock/vacuum.py @@ -1,4 +1,5 @@ """Support for Roborock vacuum class.""" + from typing import Any from roborock.code_mappings import RoborockStateCode diff --git a/homeassistant/components/rocketchat/notify.py b/homeassistant/components/rocketchat/notify.py index 30bcc6c4515b..9b7b40873ce8 100644 --- a/homeassistant/components/rocketchat/notify.py +++ b/homeassistant/components/rocketchat/notify.py @@ -1,4 +1,5 @@ """Rocket.Chat notification service.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/roku/__init__.py b/homeassistant/components/roku/__init__.py index f31a07feb294..0620207a8ee8 100644 --- a/homeassistant/components/roku/__init__.py +++ b/homeassistant/components/roku/__init__.py @@ -1,4 +1,5 @@ """Support for Roku.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/roku/binary_sensor.py b/homeassistant/components/roku/binary_sensor.py index 144fded24b9c..f58c9f9263fd 100644 --- a/homeassistant/components/roku/binary_sensor.py +++ b/homeassistant/components/roku/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Roku binary sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/roku/browse_media.py b/homeassistant/components/roku/browse_media.py index acaf2e5adbc5..1ac37f10eb9e 100644 --- a/homeassistant/components/roku/browse_media.py +++ b/homeassistant/components/roku/browse_media.py @@ -1,4 +1,5 @@ """Support for media browsing.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/roku/config_flow.py b/homeassistant/components/roku/config_flow.py index 2e49dcb2f309..07c1afae9e26 100644 --- a/homeassistant/components/roku/config_flow.py +++ b/homeassistant/components/roku/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Roku.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/roku/coordinator.py b/homeassistant/components/roku/coordinator.py index a0bd9df238c6..baef00b25962 100644 --- a/homeassistant/components/roku/coordinator.py +++ b/homeassistant/components/roku/coordinator.py @@ -1,4 +1,5 @@ """Coordinator for Roku.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/roku/diagnostics.py b/homeassistant/components/roku/diagnostics.py index bdd32f251ea8..6c6809ee33a0 100644 --- a/homeassistant/components/roku/diagnostics.py +++ b/homeassistant/components/roku/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Roku.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/roku/entity.py b/homeassistant/components/roku/entity.py index b783831d4ec6..259cb092cb87 100644 --- a/homeassistant/components/roku/entity.py +++ b/homeassistant/components/roku/entity.py @@ -1,4 +1,5 @@ """Base Entity for Roku.""" + from __future__ import annotations from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo diff --git a/homeassistant/components/roku/helpers.py b/homeassistant/components/roku/helpers.py index 60a3cbeec304..fc68e82c2d87 100644 --- a/homeassistant/components/roku/helpers.py +++ b/homeassistant/components/roku/helpers.py @@ -1,4 +1,5 @@ """Helpers for Roku.""" + from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine diff --git a/homeassistant/components/roku/media_player.py b/homeassistant/components/roku/media_player.py index 62a1a1814599..4418f708a7fe 100644 --- a/homeassistant/components/roku/media_player.py +++ b/homeassistant/components/roku/media_player.py @@ -1,4 +1,5 @@ """Support for the Roku media player.""" + from __future__ import annotations import datetime as dt diff --git a/homeassistant/components/roku/remote.py b/homeassistant/components/roku/remote.py index ef5350eb7416..fa351e021e8f 100644 --- a/homeassistant/components/roku/remote.py +++ b/homeassistant/components/roku/remote.py @@ -1,4 +1,5 @@ """Support for the Roku remote.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/roku/select.py b/homeassistant/components/roku/select.py index ef0f198f586e..96f9b4c3ab8c 100644 --- a/homeassistant/components/roku/select.py +++ b/homeassistant/components/roku/select.py @@ -1,4 +1,5 @@ """Support for Roku selects.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/roku/sensor.py b/homeassistant/components/roku/sensor.py index b462b8c531b2..4d81a3cfe808 100644 --- a/homeassistant/components/roku/sensor.py +++ b/homeassistant/components/roku/sensor.py @@ -1,4 +1,5 @@ """Support for Roku sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/romy/config_flow.py b/homeassistant/components/romy/config_flow.py index 055c5b172bb6..bccae6676954 100644 --- a/homeassistant/components/romy/config_flow.py +++ b/homeassistant/components/romy/config_flow.py @@ -1,4 +1,5 @@ """Config flow for ROMY integration.""" + from __future__ import annotations import romy diff --git a/homeassistant/components/roomba/binary_sensor.py b/homeassistant/components/roomba/binary_sensor.py index 4e99fa7d8d0a..40a5535d5af3 100644 --- a/homeassistant/components/roomba/binary_sensor.py +++ b/homeassistant/components/roomba/binary_sensor.py @@ -1,4 +1,5 @@ """Roomba binary sensor entities.""" + from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/roomba/config_flow.py b/homeassistant/components/roomba/config_flow.py index 57ccd02fae38..08973b415ee7 100644 --- a/homeassistant/components/roomba/config_flow.py +++ b/homeassistant/components/roomba/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure roomba component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/roomba/const.py b/homeassistant/components/roomba/const.py index 71db96f8c210..331c09006825 100644 --- a/homeassistant/components/roomba/const.py +++ b/homeassistant/components/roomba/const.py @@ -1,4 +1,5 @@ """The roomba constants.""" + from homeassistant.const import Platform DOMAIN = "roomba" diff --git a/homeassistant/components/roomba/irobot_base.py b/homeassistant/components/roomba/irobot_base.py index 38de3a7fb2b7..73ef5a813b13 100644 --- a/homeassistant/components/roomba/irobot_base.py +++ b/homeassistant/components/roomba/irobot_base.py @@ -1,4 +1,5 @@ """Base class for iRobot devices.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/roomba/models.py b/homeassistant/components/roomba/models.py index 87610bed1aea..350495cae7bc 100644 --- a/homeassistant/components/roomba/models.py +++ b/homeassistant/components/roomba/models.py @@ -1,4 +1,5 @@ """The roomba integration models.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/roomba/sensor.py b/homeassistant/components/roomba/sensor.py index 465e87cde6b0..bf76fc1c39f7 100644 --- a/homeassistant/components/roomba/sensor.py +++ b/homeassistant/components/roomba/sensor.py @@ -1,4 +1,5 @@ """Sensor platform for Roomba.""" + from collections.abc import Callable from dataclasses import dataclass diff --git a/homeassistant/components/roomba/vacuum.py b/homeassistant/components/roomba/vacuum.py index b6c0e893b1c0..e4a83375cccd 100644 --- a/homeassistant/components/roomba/vacuum.py +++ b/homeassistant/components/roomba/vacuum.py @@ -1,4 +1,5 @@ """Support for Wi-Fi enabled iRobot Roombas.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/roon/__init__.py b/homeassistant/components/roon/__init__.py index f721f0bac407..272ad6f011b0 100644 --- a/homeassistant/components/roon/__init__.py +++ b/homeassistant/components/roon/__init__.py @@ -1,4 +1,5 @@ """Roon (www.roonlabs.com) component.""" + from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, Platform from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/roon/media_player.py b/homeassistant/components/roon/media_player.py index 5fce298a56bc..c88b887c10e9 100644 --- a/homeassistant/components/roon/media_player.py +++ b/homeassistant/components/roon/media_player.py @@ -1,4 +1,5 @@ """MediaPlayer platform for Roon integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/route53/__init__.py b/homeassistant/components/route53/__init__.py index 4f17b5075603..92094b0b6085 100644 --- a/homeassistant/components/route53/__init__.py +++ b/homeassistant/components/route53/__init__.py @@ -1,4 +1,5 @@ """Update the IP addresses of your Route53 DNS records.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/rova/sensor.py b/homeassistant/components/rova/sensor.py index 3565b3baf0d0..9f9c2238ba54 100644 --- a/homeassistant/components/rova/sensor.py +++ b/homeassistant/components/rova/sensor.py @@ -1,4 +1,5 @@ """Support for Rova garbage calendar.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/rpi_camera/camera.py b/homeassistant/components/rpi_camera/camera.py index 3f9b5fd5860c..a8ebaaaca6f0 100644 --- a/homeassistant/components/rpi_camera/camera.py +++ b/homeassistant/components/rpi_camera/camera.py @@ -1,4 +1,5 @@ """Camera platform that has a Raspberry Pi camera.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rpi_power/__init__.py b/homeassistant/components/rpi_power/__init__.py index 79504f17d651..319257846294 100644 --- a/homeassistant/components/rpi_power/__init__.py +++ b/homeassistant/components/rpi_power/__init__.py @@ -1,4 +1,5 @@ """The Raspberry Pi Power Supply Checker integration.""" + from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/rpi_power/config_flow.py b/homeassistant/components/rpi_power/config_flow.py index 9f02bdc46ea9..c44bb65d79a4 100644 --- a/homeassistant/components/rpi_power/config_flow.py +++ b/homeassistant/components/rpi_power/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Raspberry Pi Power Supply Checker.""" + from __future__ import annotations from collections.abc import Awaitable diff --git a/homeassistant/components/rss_feed_template/__init__.py b/homeassistant/components/rss_feed_template/__init__.py index 7b7cbb7e94fd..8d2e47315efa 100644 --- a/homeassistant/components/rss_feed_template/__init__.py +++ b/homeassistant/components/rss_feed_template/__init__.py @@ -1,4 +1,5 @@ """Support to export sensor values via RSS feed.""" + from __future__ import annotations from html import escape diff --git a/homeassistant/components/rtorrent/sensor.py b/homeassistant/components/rtorrent/sensor.py index 2ef6786153a2..099927f18935 100644 --- a/homeassistant/components/rtorrent/sensor.py +++ b/homeassistant/components/rtorrent/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring the rtorrent BitTorrent client API.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rtsp_to_webrtc/config_flow.py b/homeassistant/components/rtsp_to_webrtc/config_flow.py index 7593c11d6f39..adab1a456d04 100644 --- a/homeassistant/components/rtsp_to_webrtc/config_flow.py +++ b/homeassistant/components/rtsp_to_webrtc/config_flow.py @@ -1,4 +1,5 @@ """Config flow for RTSPtoWebRTC.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ruckus_unleashed/config_flow.py b/homeassistant/components/ruckus_unleashed/config_flow.py index 745fb04b7028..1a75b8ae1394 100644 --- a/homeassistant/components/ruckus_unleashed/config_flow.py +++ b/homeassistant/components/ruckus_unleashed/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Ruckus Unleashed integration.""" + from collections.abc import Mapping import logging from typing import Any diff --git a/homeassistant/components/ruckus_unleashed/const.py b/homeassistant/components/ruckus_unleashed/const.py index 089981348b67..9076437b8c77 100644 --- a/homeassistant/components/ruckus_unleashed/const.py +++ b/homeassistant/components/ruckus_unleashed/const.py @@ -1,4 +1,5 @@ """Constants for the Ruckus Unleashed integration.""" + from homeassistant.const import Platform DOMAIN = "ruckus_unleashed" diff --git a/homeassistant/components/ruckus_unleashed/coordinator.py b/homeassistant/components/ruckus_unleashed/coordinator.py index 7c11aac7f688..989748af86e0 100644 --- a/homeassistant/components/ruckus_unleashed/coordinator.py +++ b/homeassistant/components/ruckus_unleashed/coordinator.py @@ -1,4 +1,5 @@ """Ruckus Unleashed DataUpdateCoordinator.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/ruckus_unleashed/device_tracker.py b/homeassistant/components/ruckus_unleashed/device_tracker.py index 89cc22ef766e..233e5cd49453 100644 --- a/homeassistant/components/ruckus_unleashed/device_tracker.py +++ b/homeassistant/components/ruckus_unleashed/device_tracker.py @@ -1,4 +1,5 @@ """Support for Ruckus Unleashed devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/russound_rio/media_player.py b/homeassistant/components/russound_rio/media_player.py index fc0dca341a82..74339153f696 100644 --- a/homeassistant/components/russound_rio/media_player.py +++ b/homeassistant/components/russound_rio/media_player.py @@ -1,4 +1,5 @@ """Support for Russound multizone controllers using RIO Protocol.""" + from __future__ import annotations from russound_rio import Russound diff --git a/homeassistant/components/russound_rnet/media_player.py b/homeassistant/components/russound_rnet/media_player.py index b19f4b9dfeef..f9419f4be4f0 100644 --- a/homeassistant/components/russound_rnet/media_player.py +++ b/homeassistant/components/russound_rnet/media_player.py @@ -1,4 +1,5 @@ """Support for interfacing with Russound via RNET Protocol.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ruuvi_gateway/__init__.py b/homeassistant/components/ruuvi_gateway/__init__.py index 59d37abbf7be..77b3e9b57de2 100644 --- a/homeassistant/components/ruuvi_gateway/__init__.py +++ b/homeassistant/components/ruuvi_gateway/__init__.py @@ -1,4 +1,5 @@ """The Ruuvi Gateway integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ruuvi_gateway/bluetooth.py b/homeassistant/components/ruuvi_gateway/bluetooth.py index c4fbe4747760..bdd1e21d4918 100644 --- a/homeassistant/components/ruuvi_gateway/bluetooth.py +++ b/homeassistant/components/ruuvi_gateway/bluetooth.py @@ -1,4 +1,5 @@ """Bluetooth support for Ruuvi Gateway.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ruuvi_gateway/config_flow.py b/homeassistant/components/ruuvi_gateway/config_flow.py index 2b892161f8d7..825f57b2cf2d 100644 --- a/homeassistant/components/ruuvi_gateway/config_flow.py +++ b/homeassistant/components/ruuvi_gateway/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Ruuvi Gateway integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ruuvi_gateway/const.py b/homeassistant/components/ruuvi_gateway/const.py index 80bebda105b3..a323b911d1f8 100644 --- a/homeassistant/components/ruuvi_gateway/const.py +++ b/homeassistant/components/ruuvi_gateway/const.py @@ -1,4 +1,5 @@ """Constants for the Ruuvi Gateway integration.""" + from datetime import timedelta DOMAIN = "ruuvi_gateway" diff --git a/homeassistant/components/ruuvi_gateway/coordinator.py b/homeassistant/components/ruuvi_gateway/coordinator.py index 38bc3b0e2011..ba72dfe4cbc6 100644 --- a/homeassistant/components/ruuvi_gateway/coordinator.py +++ b/homeassistant/components/ruuvi_gateway/coordinator.py @@ -1,4 +1,5 @@ """Update coordinator for Ruuvi Gateway.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/ruuvi_gateway/models.py b/homeassistant/components/ruuvi_gateway/models.py index adb405f0bf80..3717ffdb25af 100644 --- a/homeassistant/components/ruuvi_gateway/models.py +++ b/homeassistant/components/ruuvi_gateway/models.py @@ -1,4 +1,5 @@ """Models for Ruuvi Gateway integration.""" + from __future__ import annotations import dataclasses diff --git a/homeassistant/components/ruuvi_gateway/schemata.py b/homeassistant/components/ruuvi_gateway/schemata.py index eec86cd129f2..4662e07acbfd 100644 --- a/homeassistant/components/ruuvi_gateway/schemata.py +++ b/homeassistant/components/ruuvi_gateway/schemata.py @@ -1,4 +1,5 @@ """Schemata for ruuvi_gateway.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/ruuvitag_ble/__init__.py b/homeassistant/components/ruuvitag_ble/__init__.py index 5e30820f8371..031bed232bd8 100644 --- a/homeassistant/components/ruuvitag_ble/__init__.py +++ b/homeassistant/components/ruuvitag_ble/__init__.py @@ -1,4 +1,5 @@ """The ruuvitag_ble integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ruuvitag_ble/config_flow.py b/homeassistant/components/ruuvitag_ble/config_flow.py index 4f61c5480389..564f3c9d0e2f 100644 --- a/homeassistant/components/ruuvitag_ble/config_flow.py +++ b/homeassistant/components/ruuvitag_ble/config_flow.py @@ -1,4 +1,5 @@ """Config flow for ruuvitag_ble.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ruuvitag_ble/sensor.py b/homeassistant/components/ruuvitag_ble/sensor.py index 128edd42b192..a098c263c5d2 100644 --- a/homeassistant/components/ruuvitag_ble/sensor.py +++ b/homeassistant/components/ruuvitag_ble/sensor.py @@ -1,4 +1,5 @@ """Support for RuuviTag sensors.""" + from __future__ import annotations from sensor_state_data import ( diff --git a/homeassistant/components/rympro/__init__.py b/homeassistant/components/rympro/__init__.py index 7ac6de2fa0bb..f24735f4ed07 100644 --- a/homeassistant/components/rympro/__init__.py +++ b/homeassistant/components/rympro/__init__.py @@ -1,4 +1,5 @@ """The Read Your Meter Pro integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/rympro/config_flow.py b/homeassistant/components/rympro/config_flow.py index c501ccfa994d..f30e47f09a13 100644 --- a/homeassistant/components/rympro/config_flow.py +++ b/homeassistant/components/rympro/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Read Your Meter Pro integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/rympro/coordinator.py b/homeassistant/components/rympro/coordinator.py index 592c82adc683..f2e5162a0f06 100644 --- a/homeassistant/components/rympro/coordinator.py +++ b/homeassistant/components/rympro/coordinator.py @@ -1,4 +1,5 @@ """The Read Your Meter Pro integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/rympro/sensor.py b/homeassistant/components/rympro/sensor.py index a6b5b8df93d9..8bb0af6e9ff3 100644 --- a/homeassistant/components/rympro/sensor.py +++ b/homeassistant/components/rympro/sensor.py @@ -1,4 +1,5 @@ """Sensor for RymPro meters.""" + from __future__ import annotations from dataclasses import dataclass