diff --git a/homeassistant/components/rabbitair/__init__.py b/homeassistant/components/rabbitair/__init__.py index 97b37f6c03f..e4eb67a67f5 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 f13517a1d56..30dfac93236 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 36c58f8700c..3c7db126c7d 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 07e49aae7cb..47a1b7db3eb 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 46465163839..ee4f136930d 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 652806a2bad..eb7a84867ab 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 0aca6426f65..d0a311db60e 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 485a726acd0..a7d1c991453 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 c69773009be..ebe96152d70 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 298b9c03701..06cd0941dcc 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 b6b05b5b568..d3e44e6b7fc 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 5d439680bc2..4962ef81614 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 3a5308fffd5..ad5e1b8ffd9 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 367e15e098a..81589c5fe30 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 7f395169644..0580fdcc020 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 feb4c7964ee..0435474e423 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 fdd7537e9e1..d1c2db3543a 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 ad7e5b71a8e..137ee7c8e87 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 dffbdc42dbe..5bf0b7f491b 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 86a9fe58013..d5f1e4c076c 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 4ab57fd6821..73ab3644a0b 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 d19fa198d0f..a8de05d9963 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 5b0161d9f22..06e3554c8d7 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 3aa4e6b7631..4803cacd84b 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 1f047a76201..e7b463e3def 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 85b927d7935..fb15531987a 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 945c06943d3..da2a0e4b475 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 279b8625f20..d44022b0a2d 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 9b7bdd481cb..507a31e59a4 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 9daf0958327..649d643a20c 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 810a6fbb721..a929f5b875b 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 1214fd9416f..e6f5d2ecf8d 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 b3766cd02cd..fb949f69d91 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 4d21d36d069..3da30609f63 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 abcb680daa3..957720305de 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 7cf540de1e6..67baa4dbd99 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 1a034f098b7..b48c1329695 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 9da6372086f..879aa467d9b 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 f20a20af9e2..14c980bad7d 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 987142c6390..27eae0e3e8e 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 d72b12f68c6..76f82624160 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 744a36d9993..72d258dc1d3 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 edae4f11433..7f2d3399a47 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 970915888ec..820c4826f00 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 fd7df25c603..23ca3220694 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 2e821fc7a7a..bcd60875c70 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 7434577405e..866cddbabbd 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 6309d9777a1..24486a34b88 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 eb11e6276af..5c07f04c163 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 e4835d514e6..5564ee693a4 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 e7f166b67dd..ee5567112cf 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 5c68e4b573e..bb622330897 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 c9e87ad0d07..15188e86963 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 8450cb7d5e6..f7be08d71d3 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 8d5690b5320..38bf74effa0 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 a557b701824..2848101eca1 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 89a772529bd..bff2ce53dfb 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 a6d330e6151..bbcf87630c5 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 96dde9c8742..dc7d91603a5 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 8cc21e34ce9..716350b2bb0 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 1b3d65ee2a4..f5587ba5770 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 11971f68c54..805a2cf8cbd 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 9967a36faee..d718bbc031a 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 19697d9b69d..d1dcd04922f 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 c84f3b38670..d049776a6e0 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 2141ff6034d..54d375c7b6e 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 77360c6d224..ce69818beec 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 601d21ee889..f123db7c697 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 c971c3e68b9..5360ce4a7fe 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 fb42beb2174..cf59abc650c 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 e39e4048791..d9f99010dd7 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 dbf3d8e21c0..f55bc33e026 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 a6ad9047852..2c9c9addcfb 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 5f3a50e93ed..bd01aed5473 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 b39ff430610..3a76451358e 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 3d79c895354..882eb6a00d2 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 35bc1b56896..f1dbcdb4061 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 5ccd65cc55a..a300e527fd2 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 da5394a9341..1ae3c296885 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 185078f297c..dcd8a1569df 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 2217d6c7d4e..de75207389f 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 3cc2e74f95b..fb3b38c61c5 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 aedf917dd22..2b533b79e6c 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 3c0daef452d..3900f4fb763 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 5b7a141bd70..06a5c5258f1 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 607935bd6ff..13c172290ca 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 a1f6f4f39bc..d47cbe92bd4 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 8885116dbfd..a32af55720b 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 7c7d9a743f3..eb2e0b6ade3 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 3f677e72fdf..b17547499e8 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 fda8716df27..92f4c5d3902 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 7a569e70b15..05452fdac47 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 6d0150925d3..3427ee9d7ee 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 2e1b02a8b64..6a66599e11b 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 da58822e266..b35e1315cbe 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 427e3acab2d..b57070198a5 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 1a204e767e3..d43a1da161e 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 f25e4d4412f..c09ee366b84 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 a8c23d20061..94c5a7cc027 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 1d644b62f46..379a6fddb1d 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 398ad773ba2..af9fcf22f70 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 5f469638ec0..9805aa56909 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 4cf465955c5..ad4d82067c4 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 40e4afd18a7..af0df4e806d 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 a9d8c0b2482..f42bae00abe 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 c03057b31b2..fdb15d2d49c 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 53c922cf481..8c7ad137d86 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 fb2cd1f0bef..b4d719a9481 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 771d85e3569..2c26328fa2d 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 a3545ec2c89..16feaa19886 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 1ade699eaf1..21d9d952d3a 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 aa9197a8e85..b917e548ae5 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 01c601aa9e9..95123d1fd14 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 4c46b1b9faf..e8bb3f2300f 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 c74684a0f77..94ceab7bf68 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 455c8375b1c..b0b9818118b 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 ddaf8cb4fca..e2fb9153be8 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 fcfdcef0891..80d2fcaddaf 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 9b7aa1f7f96..ebc1dab45f3 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 76def3a22fe..e216cb79987 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 c062eb3915f..1b81d7a983f 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 f684160f86f..67cf33ee591 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 f2b4df1d0cc..79104485e19 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 46a8d320663..8d02d6044c2 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 43e71ef1df9..a0035d50582 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 43550658ac3..47aa2ab86f6 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 d83ca17dd6b..666a17847c9 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 888179e8a7c..f7bb526d11a 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 dd11921c75e..86e40fce43c 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 a542f0e1ae8..8b03313d6d6 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 d3425974bb1..3032c32ed51 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 cd589022d73..4c44b9537af 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 135205aa95d..6486ba329f4 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 c5facb9785c..fffbc913fe8 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 936c7aca37a..a0ae707724e 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 33f680e6829..f34b7f61580 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 f2d5c54e3c3..0f08cb155aa 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 064e4a9711a..06a04acf0ef 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 8e5a3669041..5d2dff87909 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 1654cc0c01d..7ab7e89b4d5 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 bc0e694e8eb..ad995614ed4 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 962cf6b4f3c..756e9dcfce9 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 f77aaeb7893..37e91a1e435 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 9f259594bfa..c1b94fcf6f2 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 cc1b76d4a5f..82429dd146c 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 8e68eac01eb..201a07c6783 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 f8e6a21823a..f77a38f2505 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 d5171bc954a..922173461a0 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 2029ef989d6..1234def019e 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 fd7f0eb3654..10de028b2d0 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 49819dd919f..97a9d080b86 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 e44a50d57a1..55a5574a444 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 398ccf14fb7..ffae27c5e55 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 d864bd4936c..f806ca374c2 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 d2c7d451844..b49088ddb7d 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 c046f93cdc0..d1eebdf0a5f 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 012ecee2e98..90258a9ae4b 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 5cdf0e4787b..c9a03a5bffb 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 614abdb3665..ec380f5a513 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 924a3b765f5..8613220eee1 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 9bb2c27b112..cee991386ea 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 d15e14aa628..226d623af2b 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 972368298a6..fb8ab8fc552 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 367b4a47a63..78ece708c4c 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 8d639a64d48..2cd44d20a6a 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 57d6869a72c..feb47fadf99 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 87991709e8b..fe80177da12 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 b878505ed84..528807920d3 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 715588a8225..a2c396e7ef5 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 627a41c9511..3257d183de8 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 04b476296f8..5c13bccf58d 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 042e6b45717..e02fd931f66 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 f3e9e0158cd..d166b438f31 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 77aeffd5412..44750cdeb3c 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 108e8fb477b..877bf80080b 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 ec6354aa320..c4623c49c91 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 24c149d2dee..13757e7bb22 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 6706e49fcf4..9bc72fc7b18 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 e174be0304f..269c0690105 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 3c429185556..adda97debb4 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 ffd429e92ad..41933ae2efc 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 cc9ad192bc3..cf4659224e3 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 228972e8718..8d3fc429ce0 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 be7a6310464..8a170b1de8d 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 6ae175b29e9..afac8813d1e 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 78a3c10bbe4..af5f82e49d4 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 91a16ea3fbe..2642e78e7ec 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 578ca58b80f..d413c25c8d4 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 d8610f148bd..1c33b4592df 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 8c629e2240e..0568203a91c 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 61c88a14400..06be7a4f6ff 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 f0cccc8b762..3695c899371 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 e155fe47048..7744154c1c5 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 67f70a716b0..199ab3721c3 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 e021b72ff3d..f0da6366cfc 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 199186cf222..81a57e432d2 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 5b90e656911..ee2e1cb9fff 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 e307d9de382..789e25c62b1 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 9492611f439..d440b324532 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 347d2f1074f..d354e317ccb 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 fd6db8f0c60..b01d1f709fe 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 fe82dd0297b..fdf8f63ab7d 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 ce17316e6c7..4cacb27b49a 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 03cf65a49ff..03c22167358 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 e79303a4e23..aba6c08b06a 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 532e41ac50c..9e9e5a090e4 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 15595b88cd2..e706153ace0 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 a2f32395572..3064832a397 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 bc2fae2452d..d8bebfca2ae 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 de4b32c5475..7e73919aacd 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 ad84515d41d..f9bbbc28a8d 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 66803edffc5..0bb98c44896 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 bfff08d5ea6..67a0c6b7dce 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 edc34aeb80d..fad395f41c2 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 669d81952d4..d673aace40b 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 4253e09a94d..114d74d4d05 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 53575e79c45..cf584207091 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 bf9c83914ac..ecca0366754 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 d8d4e2b7381..a54d4debe75 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 9561cd26e4b..28190522c76 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 f48861cee19..0eff7583311 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 095ecc3c5c6..d8323f7aef6 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 e4626831d7d..7fc7fdb5348 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 c18e1d44b07..04e3e4c5ff9 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 26fdc6d0575..5470d997fab 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 a7e04f4cfb9..1c39e484f97 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 265d7102b91..38b9cae055c 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 6fc22e407f3..f5557c48183 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 f0e0c63d778..24c584016d5 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 943b1c628bf..bccfccf2808 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 105800f8d13..0f9c91415d7 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 78f0c8e468e..94dbb1ba987 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 73ec8349384..1d3dde97ae0 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 ab77e0461bb..0c9c0196f11 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 b0a1e236df5..d2b93cf7154 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 bab765c289c..1b65ec7ae09 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 d1e1c4f430c..2c55b474e00 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 8a233d0b5fe..580842e78ad 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 ea7153b2aee..f2f01202240 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 d18fb91e0c8..bd703ca5a6d 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 ac3c04cfc2e..b3a3cdd1d4d 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 138c08c18f6..f4d6ddaf451 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 d22b2bb2192..c43b55b0233 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 f33a687b88f..63666fc1aca 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 069d8008945..7bff52fb864 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 75b622b48b1..bcc61a01ad6 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 83564f40488..35dbf639dd0 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 b21245645cf..0ac9c30f285 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 0f4deba6e42..e93d6ae03ef 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 4de3bb9235c..46faa8d73e9 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 8f93f4fe14d..6b88f4f26c1 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 ebe8f34c892..e53423d3b14 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 f4293213c00..55f25e6bdd2 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 e4e65288832..2c903e0bcc9 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 e64b39c2383..4a37f1b3208 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 597798af2ea..ede9afc826d 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 f163c9620d1..77f0be3363e 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 7154a36f7b8..e682b119069 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 2921a372e00..01f26df56f3 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 e5fcc834267..79a9f0bafed 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 c1d32df2d6d..45b98fddbc5 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 3fdd10c97d5..b6e55708371 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 8d723ec57cd..e1f87ccf603 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 acd3e2613af..6c9c5e18bf0 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 3684b584047..22d9353e2a2 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 30bcc6c4515..9b7b40873ce 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 f31a07feb29..0620207a8ee 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 144fded24b9..f58c9f9263f 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 acaf2e5adbc..1ac37f10eb9 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 2e49dcb2f30..07c1afae9e2 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 a0bd9df238c..baef00b2596 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 bdd32f251ea..6c6809ee33a 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 b783831d4ec..259cb092cb8 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 60a3cbeec30..fc68e82c2d8 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 62a1a181459..4418f708a7f 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 ef5350eb741..fa351e021e8 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 ef0f198f586..96f9b4c3ab8 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 b462b8c531b..4d81a3cfe80 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 055c5b172bb..bccae667695 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 4e99fa7d8d0..40a5535d5af 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 57ccd02fae3..08973b415ee 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 71db96f8c21..331c0900682 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 38de3a7fb2b..73ef5a813b1 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 87610bed1ae..350495cae7b 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 465e87cde6b..bf76fc1c39f 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 b6c0e893b1c..e4a83375ccc 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 f721f0bac40..272ad6f011b 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 5fce298a56b..c88b887c10e 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 4f17b507560..92094b0b608 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 3565b3baf0d..9f9c2238ba5 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 3f9b5fd5860..a8ebaaaca6f 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 79504f17d65..31925784629 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 9f02bdc46ea..c44bb65d79a 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 7b7cbb7e94f..8d2e47315ef 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 2ef6786153a..099927f1893 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 7593c11d6f3..adab1a456d0 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 745fb04b702..1a75b8ae139 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 089981348b6..9076437b8c7 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 7c11aac7f68..989748af86e 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 89cc22ef766..233e5cd4945 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 fc0dca341a8..74339153f69 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 b19f4b9dfee..f9419f4be4f 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 59d37abbf7b..77b3e9b57de 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 c4fbe474776..bdd1e21d491 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 2b892161f8d..825f57b2cf2 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 80bebda105b..a323b911d1f 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 38bc3b0e201..ba72dfe4cbc 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 adb405f0bf8..3717ffdb25a 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 eec86cd129f..4662e07acbf 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 5e30820f837..031bed232bd 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 4f61c548038..564f3c9d0e2 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 128edd42b19..a098c263c5d 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 7ac6de2fa0b..f24735f4ed0 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 c501ccfa994..f30e47f09a1 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 592c82adc68..f2e5162a0f0 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 a6b5b8df93d..8bb0af6e9ff 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