diff --git a/homeassistant/components/nad/media_player.py b/homeassistant/components/nad/media_player.py index fd84668d651..fa9ce4dd08e 100644 --- a/homeassistant/components/nad/media_player.py +++ b/homeassistant/components/nad/media_player.py @@ -1,4 +1,5 @@ """Support for interfacing with NAD receivers through RS-232.""" + from __future__ import annotations from nad_receiver import NADReceiver, NADReceiverTCP, NADReceiverTelnet diff --git a/homeassistant/components/nam/__init__.py b/homeassistant/components/nam/__init__.py index 9df1b93a4d7..63fd6af9295 100644 --- a/homeassistant/components/nam/__init__.py +++ b/homeassistant/components/nam/__init__.py @@ -1,4 +1,5 @@ """The Nettigo Air Monitor component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nam/button.py b/homeassistant/components/nam/button.py index a280369e7c8..b414e5c5525 100644 --- a/homeassistant/components/nam/button.py +++ b/homeassistant/components/nam/button.py @@ -1,4 +1,5 @@ """Support for the Nettigo Air Monitor service.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nam/config_flow.py b/homeassistant/components/nam/config_flow.py index c91f08b743a..efdc8f2514b 100644 --- a/homeassistant/components/nam/config_flow.py +++ b/homeassistant/components/nam/config_flow.py @@ -1,4 +1,5 @@ """Adds config flow for Nettigo Air Monitor.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nam/const.py b/homeassistant/components/nam/const.py index 5e18b94745c..66718b01c3f 100644 --- a/homeassistant/components/nam/const.py +++ b/homeassistant/components/nam/const.py @@ -1,4 +1,5 @@ """Constants for Nettigo Air Monitor integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nam/diagnostics.py b/homeassistant/components/nam/diagnostics.py index f3e4a20cc76..8ce885f0297 100644 --- a/homeassistant/components/nam/diagnostics.py +++ b/homeassistant/components/nam/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for NAM.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/nam/sensor.py b/homeassistant/components/nam/sensor.py index cd1543affa2..de516c6d607 100644 --- a/homeassistant/components/nam/sensor.py +++ b/homeassistant/components/nam/sensor.py @@ -1,4 +1,5 @@ """Support for the Nettigo Air Monitor service.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/namecheapdns/__init__.py b/homeassistant/components/namecheapdns/__init__.py index 84f995c947a..43310c5e922 100644 --- a/homeassistant/components/namecheapdns/__init__.py +++ b/homeassistant/components/namecheapdns/__init__.py @@ -1,4 +1,5 @@ """Support for namecheap DNS services.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/nanoleaf/__init__.py b/homeassistant/components/nanoleaf/__init__.py index 4c3b0880170..9e368353774 100644 --- a/homeassistant/components/nanoleaf/__init__.py +++ b/homeassistant/components/nanoleaf/__init__.py @@ -1,4 +1,5 @@ """The Nanoleaf integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nanoleaf/config_flow.py b/homeassistant/components/nanoleaf/config_flow.py index d4948507a42..ff25a25caf4 100644 --- a/homeassistant/components/nanoleaf/config_flow.py +++ b/homeassistant/components/nanoleaf/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nanoleaf integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/nanoleaf/device_trigger.py b/homeassistant/components/nanoleaf/device_trigger.py index 5de093a4a17..15b14e9719e 100644 --- a/homeassistant/components/nanoleaf/device_trigger.py +++ b/homeassistant/components/nanoleaf/device_trigger.py @@ -1,4 +1,5 @@ """Provides device triggers for Nanoleaf.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/nanoleaf/diagnostics.py b/homeassistant/components/nanoleaf/diagnostics.py index 9783f7854f3..57f385e5039 100644 --- a/homeassistant/components/nanoleaf/diagnostics.py +++ b/homeassistant/components/nanoleaf/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Nanoleaf.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nanoleaf/light.py b/homeassistant/components/nanoleaf/light.py index e8d604d9236..b80048307bb 100644 --- a/homeassistant/components/nanoleaf/light.py +++ b/homeassistant/components/nanoleaf/light.py @@ -1,4 +1,5 @@ """Support for Nanoleaf Lights.""" + from __future__ import annotations import math diff --git a/homeassistant/components/neato/api.py b/homeassistant/components/neato/api.py index d4596f1658d..75a3d6724de 100644 --- a/homeassistant/components/neato/api.py +++ b/homeassistant/components/neato/api.py @@ -1,4 +1,5 @@ """API for Neato Botvac bound to Home Assistant OAuth.""" + from __future__ import annotations from asyncio import run_coroutine_threadsafe diff --git a/homeassistant/components/neato/button.py b/homeassistant/components/neato/button.py index 8b23bbe4681..29114ce5188 100644 --- a/homeassistant/components/neato/button.py +++ b/homeassistant/components/neato/button.py @@ -1,4 +1,5 @@ """Support for Neato buttons.""" + from __future__ import annotations from pybotvac import Robot diff --git a/homeassistant/components/neato/camera.py b/homeassistant/components/neato/camera.py index 9ce66a53622..7aeadb0698d 100644 --- a/homeassistant/components/neato/camera.py +++ b/homeassistant/components/neato/camera.py @@ -1,4 +1,5 @@ """Support for loading picture from Neato.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/neato/config_flow.py b/homeassistant/components/neato/config_flow.py index 89a8639009f..642fea11081 100644 --- a/homeassistant/components/neato/config_flow.py +++ b/homeassistant/components/neato/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Neato Botvac.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/neato/entity.py b/homeassistant/components/neato/entity.py index 46ad358c638..e4486b20ec4 100644 --- a/homeassistant/components/neato/entity.py +++ b/homeassistant/components/neato/entity.py @@ -1,4 +1,5 @@ """Base entity for Neato.""" + from __future__ import annotations from pybotvac import Robot diff --git a/homeassistant/components/neato/hub.py b/homeassistant/components/neato/hub.py index 6ee00b2a8b4..fd5f045c30f 100644 --- a/homeassistant/components/neato/hub.py +++ b/homeassistant/components/neato/hub.py @@ -1,4 +1,5 @@ """Support for Neato botvac connected vacuum cleaners.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/neato/sensor.py b/homeassistant/components/neato/sensor.py index 3b68ddcf3df..f781c49457e 100644 --- a/homeassistant/components/neato/sensor.py +++ b/homeassistant/components/neato/sensor.py @@ -1,4 +1,5 @@ """Support for Neato sensors.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/neato/switch.py b/homeassistant/components/neato/switch.py index ae90a8230b2..34a0b13a870 100644 --- a/homeassistant/components/neato/switch.py +++ b/homeassistant/components/neato/switch.py @@ -1,4 +1,5 @@ """Support for Neato Connected Vacuums switches.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/neato/vacuum.py b/homeassistant/components/neato/vacuum.py index 15127ed7d66..6f1c7c2f5d7 100644 --- a/homeassistant/components/neato/vacuum.py +++ b/homeassistant/components/neato/vacuum.py @@ -1,4 +1,5 @@ """Support for Neato Connected Vacuums.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nederlandse_spoorwegen/sensor.py b/homeassistant/components/nederlandse_spoorwegen/sensor.py index f0c782bc1b5..1e8a7c30b9d 100644 --- a/homeassistant/components/nederlandse_spoorwegen/sensor.py +++ b/homeassistant/components/nederlandse_spoorwegen/sensor.py @@ -1,4 +1,5 @@ """Support for Nederlandse Spoorwegen public transport.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/ness_alarm/__init__.py b/homeassistant/components/ness_alarm/__init__.py index b5d30219550..a8202434ce5 100644 --- a/homeassistant/components/ness_alarm/__init__.py +++ b/homeassistant/components/ness_alarm/__init__.py @@ -1,4 +1,5 @@ """Support for Ness D8X/D16X devices.""" + from collections import namedtuple import datetime import logging diff --git a/homeassistant/components/ness_alarm/alarm_control_panel.py b/homeassistant/components/ness_alarm/alarm_control_panel.py index a4f77f59e25..2835dee9056 100644 --- a/homeassistant/components/ness_alarm/alarm_control_panel.py +++ b/homeassistant/components/ness_alarm/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Ness D8X/D16X alarm panel.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ness_alarm/binary_sensor.py b/homeassistant/components/ness_alarm/binary_sensor.py index 117d65b0940..bb0fa38ef72 100644 --- a/homeassistant/components/ness_alarm/binary_sensor.py +++ b/homeassistant/components/ness_alarm/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Ness D8X/D16X zone states - represented as binary sensors.""" + from __future__ import annotations from homeassistant.components.binary_sensor import BinarySensorEntity diff --git a/homeassistant/components/nest/__init__.py b/homeassistant/components/nest/__init__.py index 8d1d58f9117..383521452d0 100644 --- a/homeassistant/components/nest/__init__.py +++ b/homeassistant/components/nest/__init__.py @@ -1,4 +1,5 @@ """Support for Nest devices.""" + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/homeassistant/components/nest/camera.py b/homeassistant/components/nest/camera.py index c943ea922e9..f0b3ccd477d 100644 --- a/homeassistant/components/nest/camera.py +++ b/homeassistant/components/nest/camera.py @@ -1,4 +1,5 @@ """Support for Google Nest SDM Cameras.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nest/climate.py b/homeassistant/components/nest/climate.py index 2d0186b2bfd..5e9dcc01e97 100644 --- a/homeassistant/components/nest/climate.py +++ b/homeassistant/components/nest/climate.py @@ -1,4 +1,5 @@ """Support for Google Nest SDM climate devices.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/nest/config_flow.py b/homeassistant/components/nest/config_flow.py index 8e05bc611c9..e3854b06038 100644 --- a/homeassistant/components/nest/config_flow.py +++ b/homeassistant/components/nest/config_flow.py @@ -7,6 +7,7 @@ This configuration flow supports the following: NestFlowHandler is an implementation of AbstractOAuth2FlowHandler with some overrides to custom steps inserted in the middle of the flow. """ + from __future__ import annotations from collections.abc import Iterable, Mapping diff --git a/homeassistant/components/nest/device_trigger.py b/homeassistant/components/nest/device_trigger.py index f7369489e22..52c756d6a18 100644 --- a/homeassistant/components/nest/device_trigger.py +++ b/homeassistant/components/nest/device_trigger.py @@ -1,4 +1,5 @@ """Provides device automations for Nest.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/nest/sensor.py b/homeassistant/components/nest/sensor.py index aa170710eb6..edd359619fd 100644 --- a/homeassistant/components/nest/sensor.py +++ b/homeassistant/components/nest/sensor.py @@ -1,4 +1,5 @@ """Support for Google Nest SDM sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/__init__.py b/homeassistant/components/netatmo/__init__.py index c514e7b890d..322af8cf3ac 100644 --- a/homeassistant/components/netatmo/__init__.py +++ b/homeassistant/components/netatmo/__init__.py @@ -1,4 +1,5 @@ """The Netatmo integration.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/netatmo/api.py b/homeassistant/components/netatmo/api.py index 7605689b3f5..f5fe591bfbf 100644 --- a/homeassistant/components/netatmo/api.py +++ b/homeassistant/components/netatmo/api.py @@ -1,4 +1,5 @@ """API for Netatmo bound to HASS OAuth.""" + from collections.abc import Iterable from typing import cast diff --git a/homeassistant/components/netatmo/camera.py b/homeassistant/components/netatmo/camera.py index dc566afd233..bd12e757359 100644 --- a/homeassistant/components/netatmo/camera.py +++ b/homeassistant/components/netatmo/camera.py @@ -1,4 +1,5 @@ """Support for the Netatmo cameras.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/climate.py b/homeassistant/components/netatmo/climate.py index db12efb2f01..df9c7f6fee2 100644 --- a/homeassistant/components/netatmo/climate.py +++ b/homeassistant/components/netatmo/climate.py @@ -1,4 +1,5 @@ """Support for Netatmo Smart thermostats.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/config_flow.py b/homeassistant/components/netatmo/config_flow.py index b2e24420d11..54ec019f815 100644 --- a/homeassistant/components/netatmo/config_flow.py +++ b/homeassistant/components/netatmo/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Netatmo.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/netatmo/const.py b/homeassistant/components/netatmo/const.py index 416c5668eae..34a5c42038e 100644 --- a/homeassistant/components/netatmo/const.py +++ b/homeassistant/components/netatmo/const.py @@ -1,4 +1,5 @@ """Constants used by the Netatmo component.""" + from homeassistant.const import Platform API = "api" diff --git a/homeassistant/components/netatmo/cover.py b/homeassistant/components/netatmo/cover.py index b9537fee179..f2b5c801eec 100644 --- a/homeassistant/components/netatmo/cover.py +++ b/homeassistant/components/netatmo/cover.py @@ -1,4 +1,5 @@ """Support for Netatmo/Bubendorff covers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/data_handler.py b/homeassistant/components/netatmo/data_handler.py index 42d4ced6792..a4c4dbfa21d 100644 --- a/homeassistant/components/netatmo/data_handler.py +++ b/homeassistant/components/netatmo/data_handler.py @@ -1,4 +1,5 @@ """The Netatmo data handler.""" + from __future__ import annotations from collections import deque diff --git a/homeassistant/components/netatmo/device_trigger.py b/homeassistant/components/netatmo/device_trigger.py index f4719badcfa..efc2978a43b 100644 --- a/homeassistant/components/netatmo/device_trigger.py +++ b/homeassistant/components/netatmo/device_trigger.py @@ -1,4 +1,5 @@ """Provides device automations for Netatmo.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/netatmo/diagnostics.py b/homeassistant/components/netatmo/diagnostics.py index 3a30dcd8588..4901ef6bd55 100644 --- a/homeassistant/components/netatmo/diagnostics.py +++ b/homeassistant/components/netatmo/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Netatmo.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/netatmo/entity.py b/homeassistant/components/netatmo/entity.py index e6829604d48..579d2177824 100644 --- a/homeassistant/components/netatmo/entity.py +++ b/homeassistant/components/netatmo/entity.py @@ -1,4 +1,5 @@ """Base class for Netatmo entities.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/netatmo/fan.py b/homeassistant/components/netatmo/fan.py index 8f22861a249..1b2798dd118 100644 --- a/homeassistant/components/netatmo/fan.py +++ b/homeassistant/components/netatmo/fan.py @@ -1,4 +1,5 @@ """Support for Netatmo/Bubendorff fans.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/helper.py b/homeassistant/components/netatmo/helper.py index ea30e059d3a..026f3f916f5 100644 --- a/homeassistant/components/netatmo/helper.py +++ b/homeassistant/components/netatmo/helper.py @@ -1,4 +1,5 @@ """Helper for Netatmo integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/netatmo/light.py b/homeassistant/components/netatmo/light.py index c38aec41564..9ccab51f792 100644 --- a/homeassistant/components/netatmo/light.py +++ b/homeassistant/components/netatmo/light.py @@ -1,4 +1,5 @@ """Support for the Netatmo camera lights.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/media_source.py b/homeassistant/components/netatmo/media_source.py index 58bf2f93c96..7ad4acf5316 100644 --- a/homeassistant/components/netatmo/media_source.py +++ b/homeassistant/components/netatmo/media_source.py @@ -1,4 +1,5 @@ """Netatmo Media Source Implementation.""" + from __future__ import annotations import datetime as dt diff --git a/homeassistant/components/netatmo/select.py b/homeassistant/components/netatmo/select.py index 2dd88782ac3..6680242f579 100644 --- a/homeassistant/components/netatmo/select.py +++ b/homeassistant/components/netatmo/select.py @@ -1,4 +1,5 @@ """Support for the Netatmo climate schedule selector.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/sensor.py b/homeassistant/components/netatmo/sensor.py index 430de8e318c..f71ffd76cc8 100644 --- a/homeassistant/components/netatmo/sensor.py +++ b/homeassistant/components/netatmo/sensor.py @@ -1,4 +1,5 @@ """Support for the Netatmo sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/netatmo/switch.py b/homeassistant/components/netatmo/switch.py index 730f41afeeb..6677adec4b0 100644 --- a/homeassistant/components/netatmo/switch.py +++ b/homeassistant/components/netatmo/switch.py @@ -1,4 +1,5 @@ """Support for Netatmo/BTicino/Legrande switches.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netdata/sensor.py b/homeassistant/components/netdata/sensor.py index 0e33cd9c952..abbb3bbb6c9 100644 --- a/homeassistant/components/netdata/sensor.py +++ b/homeassistant/components/netdata/sensor.py @@ -1,4 +1,5 @@ """Support gathering system information of hosts which are running netdata.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netgear/__init__.py b/homeassistant/components/netgear/__init__.py index b21286ff05b..445453ad2aa 100644 --- a/homeassistant/components/netgear/__init__.py +++ b/homeassistant/components/netgear/__init__.py @@ -1,4 +1,5 @@ """Support for Netgear routers.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/netgear/button.py b/homeassistant/components/netgear/button.py index 6ec988edbe1..307bfab92d4 100644 --- a/homeassistant/components/netgear/button.py +++ b/homeassistant/components/netgear/button.py @@ -1,4 +1,5 @@ """Support for Netgear Button.""" + from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any diff --git a/homeassistant/components/netgear/config_flow.py b/homeassistant/components/netgear/config_flow.py index 85982196cf2..a872e9fb4ac 100644 --- a/homeassistant/components/netgear/config_flow.py +++ b/homeassistant/components/netgear/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Netgear integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netgear/const.py b/homeassistant/components/netgear/const.py index cf6cc827519..40394677362 100644 --- a/homeassistant/components/netgear/const.py +++ b/homeassistant/components/netgear/const.py @@ -1,4 +1,5 @@ """Netgear component constants.""" + from datetime import timedelta from homeassistant.const import Platform diff --git a/homeassistant/components/netgear/device_tracker.py b/homeassistant/components/netgear/device_tracker.py index 38ad024a2c4..ee3d010e443 100644 --- a/homeassistant/components/netgear/device_tracker.py +++ b/homeassistant/components/netgear/device_tracker.py @@ -1,4 +1,5 @@ """Support for Netgear routers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netgear/entity.py b/homeassistant/components/netgear/entity.py index 45418681db0..2610b4c7132 100644 --- a/homeassistant/components/netgear/entity.py +++ b/homeassistant/components/netgear/entity.py @@ -1,4 +1,5 @@ """Represent the Netgear router and its devices.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/netgear/errors.py b/homeassistant/components/netgear/errors.py index 2ac1ed18224..36e5fcb1e63 100644 --- a/homeassistant/components/netgear/errors.py +++ b/homeassistant/components/netgear/errors.py @@ -1,4 +1,5 @@ """Errors for the Netgear component.""" + from homeassistant.exceptions import HomeAssistantError diff --git a/homeassistant/components/netgear/router.py b/homeassistant/components/netgear/router.py index 3c3be7fe9fb..1e4bf2480e9 100644 --- a/homeassistant/components/netgear/router.py +++ b/homeassistant/components/netgear/router.py @@ -1,4 +1,5 @@ """Represent the Netgear router and its devices.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/netgear/sensor.py b/homeassistant/components/netgear/sensor.py index 00623938b46..d569a50d7e1 100644 --- a/homeassistant/components/netgear/sensor.py +++ b/homeassistant/components/netgear/sensor.py @@ -1,4 +1,5 @@ """Support for Netgear routers.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/netgear/switch.py b/homeassistant/components/netgear/switch.py index 9e5aab2c866..34a4258b085 100644 --- a/homeassistant/components/netgear/switch.py +++ b/homeassistant/components/netgear/switch.py @@ -1,4 +1,5 @@ """Support for Netgear switches.""" + from collections.abc import Callable from dataclasses import dataclass from datetime import timedelta diff --git a/homeassistant/components/netgear/update.py b/homeassistant/components/netgear/update.py index 78e11e7c174..1fbfee3d892 100644 --- a/homeassistant/components/netgear/update.py +++ b/homeassistant/components/netgear/update.py @@ -1,4 +1,5 @@ """Update entities for Netgear devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netgear_lte/__init__.py b/homeassistant/components/netgear_lte/__init__.py index 491ee0efe59..8c54cb96b3d 100644 --- a/homeassistant/components/netgear_lte/__init__.py +++ b/homeassistant/components/netgear_lte/__init__.py @@ -1,4 +1,5 @@ """Support for Netgear LTE modems.""" + from datetime import timedelta from aiohttp.cookiejar import CookieJar diff --git a/homeassistant/components/netgear_lte/binary_sensor.py b/homeassistant/components/netgear_lte/binary_sensor.py index 2830c551b80..43a9c1bd260 100644 --- a/homeassistant/components/netgear_lte/binary_sensor.py +++ b/homeassistant/components/netgear_lte/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Netgear LTE binary sensors.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/netgear_lte/config_flow.py b/homeassistant/components/netgear_lte/config_flow.py index f0c731599f5..fe411f79699 100644 --- a/homeassistant/components/netgear_lte/config_flow.py +++ b/homeassistant/components/netgear_lte/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Netgear LTE integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/netgear_lte/notify.py b/homeassistant/components/netgear_lte/notify.py index ddc5e93677c..97ba402dc35 100644 --- a/homeassistant/components/netgear_lte/notify.py +++ b/homeassistant/components/netgear_lte/notify.py @@ -1,4 +1,5 @@ """Support for Netgear LTE notifications.""" + from __future__ import annotations import attr diff --git a/homeassistant/components/netgear_lte/sensor.py b/homeassistant/components/netgear_lte/sensor.py index c1e7aaad171..62b4796f068 100644 --- a/homeassistant/components/netgear_lte/sensor.py +++ b/homeassistant/components/netgear_lte/sensor.py @@ -1,4 +1,5 @@ """Support for Netgear LTE sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/netgear_lte/services.py b/homeassistant/components/netgear_lte/services.py index 2ea98896791..02000820119 100644 --- a/homeassistant/components/netgear_lte/services.py +++ b/homeassistant/components/netgear_lte/services.py @@ -1,4 +1,5 @@ """Services for the Netgear LTE integration.""" + from typing import TYPE_CHECKING import voluptuous as vol diff --git a/homeassistant/components/netio/switch.py b/homeassistant/components/netio/switch.py index 546aa07e22d..0f0c85c1720 100644 --- a/homeassistant/components/netio/switch.py +++ b/homeassistant/components/netio/switch.py @@ -1,4 +1,5 @@ """The Netio switch component.""" + from __future__ import annotations from collections import namedtuple diff --git a/homeassistant/components/network/__init__.py b/homeassistant/components/network/__init__.py index 32bb9a574cd..0ec6f71814f 100644 --- a/homeassistant/components/network/__init__.py +++ b/homeassistant/components/network/__init__.py @@ -1,4 +1,5 @@ """The Network Configuration integration.""" + from __future__ import annotations from ipaddress import IPv4Address, IPv6Address, ip_interface diff --git a/homeassistant/components/network/const.py b/homeassistant/components/network/const.py index 3a166189b85..6c5b6f80eda 100644 --- a/homeassistant/components/network/const.py +++ b/homeassistant/components/network/const.py @@ -1,4 +1,5 @@ """Constants for the network integration.""" + from __future__ import annotations from typing import Final diff --git a/homeassistant/components/network/models.py b/homeassistant/components/network/models.py index 4428578f8f9..93d34e92302 100644 --- a/homeassistant/components/network/models.py +++ b/homeassistant/components/network/models.py @@ -1,4 +1,5 @@ """Models helper class for the network integration.""" + from __future__ import annotations from typing import TypedDict diff --git a/homeassistant/components/network/network.py b/homeassistant/components/network/network.py index 4613cb91cc9..4158307bb1a 100644 --- a/homeassistant/components/network/network.py +++ b/homeassistant/components/network/network.py @@ -1,4 +1,5 @@ """Network helper class for the network integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/network/util.py b/homeassistant/components/network/util.py index 2fb0690684c..55c3c2f5ead 100644 --- a/homeassistant/components/network/util.py +++ b/homeassistant/components/network/util.py @@ -1,4 +1,5 @@ """Network helper class for the network integration.""" + from __future__ import annotations from ipaddress import IPv4Address, IPv6Address, ip_address diff --git a/homeassistant/components/network/websocket.py b/homeassistant/components/network/websocket.py index 4c55585e112..78626b893e4 100644 --- a/homeassistant/components/network/websocket.py +++ b/homeassistant/components/network/websocket.py @@ -1,4 +1,5 @@ """The Network Configuration integration websocket commands.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/neurio_energy/sensor.py b/homeassistant/components/neurio_energy/sensor.py index a9023ffca2b..4a7ce43a0d7 100644 --- a/homeassistant/components/neurio_energy/sensor.py +++ b/homeassistant/components/neurio_energy/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring a Neurio energy sensor.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nexia/binary_sensor.py b/homeassistant/components/nexia/binary_sensor.py index 02c3fef1162..51306584b7a 100644 --- a/homeassistant/components/nexia/binary_sensor.py +++ b/homeassistant/components/nexia/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Nexia / Trane XL Thermostats.""" + from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/nexia/climate.py b/homeassistant/components/nexia/climate.py index 63caeb445b7..78c0bc88ef7 100644 --- a/homeassistant/components/nexia/climate.py +++ b/homeassistant/components/nexia/climate.py @@ -1,4 +1,5 @@ """Support for Nexia / Trane XL thermostats.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nexia/const.py b/homeassistant/components/nexia/const.py index fe2d6527ea0..b46037eab7b 100644 --- a/homeassistant/components/nexia/const.py +++ b/homeassistant/components/nexia/const.py @@ -1,4 +1,5 @@ """Nexia constants.""" + from homeassistant.const import Platform PLATFORMS = [ diff --git a/homeassistant/components/nexia/coordinator.py b/homeassistant/components/nexia/coordinator.py index cd515e44b14..894c491c45b 100644 --- a/homeassistant/components/nexia/coordinator.py +++ b/homeassistant/components/nexia/coordinator.py @@ -1,4 +1,5 @@ """Component to embed nexia devices.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nexia/diagnostics.py b/homeassistant/components/nexia/diagnostics.py index 9b3f518217b..e03cf23b83b 100644 --- a/homeassistant/components/nexia/diagnostics.py +++ b/homeassistant/components/nexia/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for nexia.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nexia/number.py b/homeassistant/components/nexia/number.py index 019d425d1ad..a4117584720 100644 --- a/homeassistant/components/nexia/number.py +++ b/homeassistant/components/nexia/number.py @@ -1,4 +1,5 @@ """Support for Nexia / Trane XL Thermostats.""" + from __future__ import annotations from nexia.home import NexiaHome diff --git a/homeassistant/components/nexia/scene.py b/homeassistant/components/nexia/scene.py index ba9e8b12dde..337068e44e9 100644 --- a/homeassistant/components/nexia/scene.py +++ b/homeassistant/components/nexia/scene.py @@ -1,4 +1,5 @@ """Support for Nexia Automations.""" + from typing import Any from nexia.automation import NexiaAutomation diff --git a/homeassistant/components/nexia/sensor.py b/homeassistant/components/nexia/sensor.py index 79e07bc71b4..a77920630f8 100644 --- a/homeassistant/components/nexia/sensor.py +++ b/homeassistant/components/nexia/sensor.py @@ -1,4 +1,5 @@ """Support for Nexia / Trane XL Thermostats.""" + from __future__ import annotations from nexia.const import UNIT_CELSIUS diff --git a/homeassistant/components/nexia/switch.py b/homeassistant/components/nexia/switch.py index 87c3f6dc938..5e19136d55e 100644 --- a/homeassistant/components/nexia/switch.py +++ b/homeassistant/components/nexia/switch.py @@ -1,4 +1,5 @@ """Support for Nexia switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nextbus/config_flow.py b/homeassistant/components/nextbus/config_flow.py index 67bc8581e86..1d2b7f0b00f 100644 --- a/homeassistant/components/nextbus/config_flow.py +++ b/homeassistant/components/nextbus/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Nextbus integration.""" + from collections import Counter import logging diff --git a/homeassistant/components/nextbus/coordinator.py b/homeassistant/components/nextbus/coordinator.py index f130e40ef05..abf280bece9 100644 --- a/homeassistant/components/nextbus/coordinator.py +++ b/homeassistant/components/nextbus/coordinator.py @@ -1,4 +1,5 @@ """NextBus data update coordinator.""" + from datetime import timedelta import logging from typing import Any, cast diff --git a/homeassistant/components/nextbus/sensor.py b/homeassistant/components/nextbus/sensor.py index eaedc50cf3b..68d10726609 100644 --- a/homeassistant/components/nextbus/sensor.py +++ b/homeassistant/components/nextbus/sensor.py @@ -1,4 +1,5 @@ """NextBus sensor.""" + from __future__ import annotations from itertools import chain diff --git a/homeassistant/components/nextbus/util.py b/homeassistant/components/nextbus/util.py index 73b3b400ff4..e9a1e1fd254 100644 --- a/homeassistant/components/nextbus/util.py +++ b/homeassistant/components/nextbus/util.py @@ -1,4 +1,5 @@ """Utils for NextBus integration module.""" + from typing import Any diff --git a/homeassistant/components/nextcloud/binary_sensor.py b/homeassistant/components/nextcloud/binary_sensor.py index e4068695086..6c6f6141975 100644 --- a/homeassistant/components/nextcloud/binary_sensor.py +++ b/homeassistant/components/nextcloud/binary_sensor.py @@ -1,4 +1,5 @@ """Summary binary data from Nextcoud.""" + from __future__ import annotations from typing import Final diff --git a/homeassistant/components/nextcloud/config_flow.py b/homeassistant/components/nextcloud/config_flow.py index f843a7d609e..c469936ac48 100644 --- a/homeassistant/components/nextcloud/config_flow.py +++ b/homeassistant/components/nextcloud/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Nextcloud integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/nextcloud/const.py b/homeassistant/components/nextcloud/const.py index 248128dd538..2cc6513cd4b 100644 --- a/homeassistant/components/nextcloud/const.py +++ b/homeassistant/components/nextcloud/const.py @@ -1,4 +1,5 @@ """Constants for Nextcloud integration.""" + from datetime import timedelta DOMAIN = "nextcloud" diff --git a/homeassistant/components/nextcloud/entity.py b/homeassistant/components/nextcloud/entity.py index b9dab9179c1..19431756e43 100644 --- a/homeassistant/components/nextcloud/entity.py +++ b/homeassistant/components/nextcloud/entity.py @@ -1,4 +1,5 @@ """Base entity for the Nextcloud integration.""" + from urllib.parse import urlparse from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/nextcloud/sensor.py b/homeassistant/components/nextcloud/sensor.py index 7d3f14e3b7f..d8a2a362ce0 100644 --- a/homeassistant/components/nextcloud/sensor.py +++ b/homeassistant/components/nextcloud/sensor.py @@ -1,4 +1,5 @@ """Summary data from Nextcoud.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nextcloud/update.py b/homeassistant/components/nextcloud/update.py index 5d52ac2a48f..52583d690bf 100644 --- a/homeassistant/components/nextcloud/update.py +++ b/homeassistant/components/nextcloud/update.py @@ -1,4 +1,5 @@ """Update data from Nextcoud.""" + from __future__ import annotations from homeassistant.components.update import UpdateEntity, UpdateEntityDescription diff --git a/homeassistant/components/nextdns/__init__.py b/homeassistant/components/nextdns/__init__.py index af972fb7509..389173a2694 100644 --- a/homeassistant/components/nextdns/__init__.py +++ b/homeassistant/components/nextdns/__init__.py @@ -1,4 +1,5 @@ """The NextDNS component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nextdns/binary_sensor.py b/homeassistant/components/nextdns/binary_sensor.py index dad29893161..bf230b937c2 100644 --- a/homeassistant/components/nextdns/binary_sensor.py +++ b/homeassistant/components/nextdns/binary_sensor.py @@ -1,4 +1,5 @@ """Support for the NextDNS service.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nextdns/button.py b/homeassistant/components/nextdns/button.py index 2eafe2b477e..d74152248a5 100644 --- a/homeassistant/components/nextdns/button.py +++ b/homeassistant/components/nextdns/button.py @@ -1,4 +1,5 @@ """Support for the NextDNS service.""" + from __future__ import annotations from homeassistant.components.button import ButtonEntity, ButtonEntityDescription diff --git a/homeassistant/components/nextdns/config_flow.py b/homeassistant/components/nextdns/config_flow.py index 2a676f7a3a1..28fd50af2dc 100644 --- a/homeassistant/components/nextdns/config_flow.py +++ b/homeassistant/components/nextdns/config_flow.py @@ -1,4 +1,5 @@ """Adds config flow for NextDNS.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nextdns/const.py b/homeassistant/components/nextdns/const.py index 031dd1c5814..b8210c1939c 100644 --- a/homeassistant/components/nextdns/const.py +++ b/homeassistant/components/nextdns/const.py @@ -1,4 +1,5 @@ """Constants for NextDNS integration.""" + from datetime import timedelta ATTR_CONNECTION = "connection" diff --git a/homeassistant/components/nextdns/diagnostics.py b/homeassistant/components/nextdns/diagnostics.py index 2c0d313060f..c0a9071bb9d 100644 --- a/homeassistant/components/nextdns/diagnostics.py +++ b/homeassistant/components/nextdns/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for NextDNS.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/nextdns/sensor.py b/homeassistant/components/nextdns/sensor.py index b6864fea50a..94441f8f658 100644 --- a/homeassistant/components/nextdns/sensor.py +++ b/homeassistant/components/nextdns/sensor.py @@ -1,4 +1,5 @@ """Support for the NextDNS service.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nextdns/switch.py b/homeassistant/components/nextdns/switch.py index a01b8a8c3c3..f9a5dbde4b7 100644 --- a/homeassistant/components/nextdns/switch.py +++ b/homeassistant/components/nextdns/switch.py @@ -1,4 +1,5 @@ """Support for the NextDNS service.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nextdns/system_health.py b/homeassistant/components/nextdns/system_health.py index a56a89914b8..09c13f0580e 100644 --- a/homeassistant/components/nextdns/system_health.py +++ b/homeassistant/components/nextdns/system_health.py @@ -1,4 +1,5 @@ """Provide info to system health.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nfandroidtv/__init__.py b/homeassistant/components/nfandroidtv/__init__.py index 38622fc0060..42d42e26d1f 100644 --- a/homeassistant/components/nfandroidtv/__init__.py +++ b/homeassistant/components/nfandroidtv/__init__.py @@ -1,4 +1,5 @@ """The NFAndroidTV integration.""" + from notifications_android_tv.notifications import ConnectError, Notifications from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/nfandroidtv/config_flow.py b/homeassistant/components/nfandroidtv/config_flow.py index 3d0b07a2ea3..83621c63789 100644 --- a/homeassistant/components/nfandroidtv/config_flow.py +++ b/homeassistant/components/nfandroidtv/config_flow.py @@ -1,4 +1,5 @@ """Config flow for NFAndroidTV integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nfandroidtv/notify.py b/homeassistant/components/nfandroidtv/notify.py index c70272d3835..dd42a0ab10b 100644 --- a/homeassistant/components/nfandroidtv/notify.py +++ b/homeassistant/components/nfandroidtv/notify.py @@ -1,4 +1,5 @@ """Notifications for Android TV notification service.""" + from __future__ import annotations from io import BufferedReader diff --git a/homeassistant/components/nibe_heatpump/__init__.py b/homeassistant/components/nibe_heatpump/__init__.py index 058f3ef8711..fbb49351e0e 100644 --- a/homeassistant/components/nibe_heatpump/__init__.py +++ b/homeassistant/components/nibe_heatpump/__init__.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump integration.""" + from __future__ import annotations from nibe.connection import Connection diff --git a/homeassistant/components/nibe_heatpump/binary_sensor.py b/homeassistant/components/nibe_heatpump/binary_sensor.py index d1fdfa710a1..035a4a23a08 100644 --- a/homeassistant/components/nibe_heatpump/binary_sensor.py +++ b/homeassistant/components/nibe_heatpump/binary_sensor.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump binary sensors.""" + from __future__ import annotations from nibe.coil import Coil, CoilData diff --git a/homeassistant/components/nibe_heatpump/button.py b/homeassistant/components/nibe_heatpump/button.py index f45b2af2909..0c3122805e1 100644 --- a/homeassistant/components/nibe_heatpump/button.py +++ b/homeassistant/components/nibe_heatpump/button.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump sensors.""" + from __future__ import annotations from nibe.coil_groups import UNIT_COILGROUPS, UnitCoilGroup diff --git a/homeassistant/components/nibe_heatpump/climate.py b/homeassistant/components/nibe_heatpump/climate.py index 3a89f4f6022..746ed26687d 100644 --- a/homeassistant/components/nibe_heatpump/climate.py +++ b/homeassistant/components/nibe_heatpump/climate.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump climate.""" + from __future__ import annotations from datetime import date diff --git a/homeassistant/components/nibe_heatpump/config_flow.py b/homeassistant/components/nibe_heatpump/config_flow.py index 0ba80ad6754..913ebd6b00c 100644 --- a/homeassistant/components/nibe_heatpump/config_flow.py +++ b/homeassistant/components/nibe_heatpump/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nibe Heat Pump integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nibe_heatpump/coordinator.py b/homeassistant/components/nibe_heatpump/coordinator.py index ce75247083b..1711c3d8f2a 100644 --- a/homeassistant/components/nibe_heatpump/coordinator.py +++ b/homeassistant/components/nibe_heatpump/coordinator.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nibe_heatpump/number.py b/homeassistant/components/nibe_heatpump/number.py index 83ccc124e51..509f3364fee 100644 --- a/homeassistant/components/nibe_heatpump/number.py +++ b/homeassistant/components/nibe_heatpump/number.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump numbers.""" + from __future__ import annotations from nibe.coil import Coil, CoilData diff --git a/homeassistant/components/nibe_heatpump/select.py b/homeassistant/components/nibe_heatpump/select.py index c4794cc18b7..07c958885b8 100644 --- a/homeassistant/components/nibe_heatpump/select.py +++ b/homeassistant/components/nibe_heatpump/select.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump select.""" + from __future__ import annotations from nibe.coil import Coil, CoilData diff --git a/homeassistant/components/nibe_heatpump/sensor.py b/homeassistant/components/nibe_heatpump/sensor.py index 8c9439e6531..c6bac0323b9 100644 --- a/homeassistant/components/nibe_heatpump/sensor.py +++ b/homeassistant/components/nibe_heatpump/sensor.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump sensors.""" + from __future__ import annotations from nibe.coil import Coil, CoilData diff --git a/homeassistant/components/nibe_heatpump/switch.py b/homeassistant/components/nibe_heatpump/switch.py index f55882d529c..594a8078b76 100644 --- a/homeassistant/components/nibe_heatpump/switch.py +++ b/homeassistant/components/nibe_heatpump/switch.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump switch.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nibe_heatpump/water_heater.py b/homeassistant/components/nibe_heatpump/water_heater.py index db688fdb69c..c60f5b6e3b2 100644 --- a/homeassistant/components/nibe_heatpump/water_heater.py +++ b/homeassistant/components/nibe_heatpump/water_heater.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump sensors.""" + from __future__ import annotations from datetime import date diff --git a/homeassistant/components/nightscout/sensor.py b/homeassistant/components/nightscout/sensor.py index bdc46e75cb8..92291bdc4f9 100644 --- a/homeassistant/components/nightscout/sensor.py +++ b/homeassistant/components/nightscout/sensor.py @@ -1,4 +1,5 @@ """Support for Nightscout sensors.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nightscout/utils.py b/homeassistant/components/nightscout/utils.py index ac9ce1a3384..928abd1aa4f 100644 --- a/homeassistant/components/nightscout/utils.py +++ b/homeassistant/components/nightscout/utils.py @@ -1,4 +1,5 @@ """Nightscout util functions.""" + from __future__ import annotations import hashlib diff --git a/homeassistant/components/niko_home_control/light.py b/homeassistant/components/niko_home_control/light.py index b541a145a66..6554bf5eeec 100644 --- a/homeassistant/components/niko_home_control/light.py +++ b/homeassistant/components/niko_home_control/light.py @@ -1,4 +1,5 @@ """Support for Niko Home Control.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nilu/air_quality.py b/homeassistant/components/nilu/air_quality.py index 3745c6bae6f..7b1068771d2 100644 --- a/homeassistant/components/nilu/air_quality.py +++ b/homeassistant/components/nilu/air_quality.py @@ -1,4 +1,5 @@ """Sensor for checking the air quality around Norway.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nina/__init__.py b/homeassistant/components/nina/__init__.py index 435ea288aa7..d5b1c5ccb35 100644 --- a/homeassistant/components/nina/__init__.py +++ b/homeassistant/components/nina/__init__.py @@ -1,4 +1,5 @@ """The Nina integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/nina/binary_sensor.py b/homeassistant/components/nina/binary_sensor.py index 92c7d16dc84..bcc1eb2a4b6 100644 --- a/homeassistant/components/nina/binary_sensor.py +++ b/homeassistant/components/nina/binary_sensor.py @@ -1,4 +1,5 @@ """NINA sensor platform.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nina/config_flow.py b/homeassistant/components/nina/config_flow.py index 0954ba26874..8b5bcb72252 100644 --- a/homeassistant/components/nina/config_flow.py +++ b/homeassistant/components/nina/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nina integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nina/const.py b/homeassistant/components/nina/const.py index 198e21c2689..1e755056079 100644 --- a/homeassistant/components/nina/const.py +++ b/homeassistant/components/nina/const.py @@ -1,4 +1,5 @@ """Constants for the Nina integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nina/coordinator.py b/homeassistant/components/nina/coordinator.py index b2c97503442..c731c7a62d7 100644 --- a/homeassistant/components/nina/coordinator.py +++ b/homeassistant/components/nina/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the nina integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nissan_leaf/__init__.py b/homeassistant/components/nissan_leaf/__init__.py index a0cb3c4f8cc..85ff6876a05 100644 --- a/homeassistant/components/nissan_leaf/__init__.py +++ b/homeassistant/components/nissan_leaf/__init__.py @@ -1,4 +1,5 @@ """Support for the Nissan Leaf Carwings/Nissan Connect API.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nissan_leaf/binary_sensor.py b/homeassistant/components/nissan_leaf/binary_sensor.py index 40880714c2a..3b15fabe382 100644 --- a/homeassistant/components/nissan_leaf/binary_sensor.py +++ b/homeassistant/components/nissan_leaf/binary_sensor.py @@ -1,4 +1,5 @@ """Plugged In Status Support for the Nissan Leaf.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nissan_leaf/button.py b/homeassistant/components/nissan_leaf/button.py index 1f948fe9847..aa2bbbbca9b 100644 --- a/homeassistant/components/nissan_leaf/button.py +++ b/homeassistant/components/nissan_leaf/button.py @@ -1,4 +1,5 @@ """Button to start charging the Nissan Leaf.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nissan_leaf/const.py b/homeassistant/components/nissan_leaf/const.py index f7ebed99ab8..299576b86a7 100644 --- a/homeassistant/components/nissan_leaf/const.py +++ b/homeassistant/components/nissan_leaf/const.py @@ -1,4 +1,5 @@ """Constants for the Nissan Leaf integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nissan_leaf/sensor.py b/homeassistant/components/nissan_leaf/sensor.py index cd3524eaf87..bde1719e9b1 100644 --- a/homeassistant/components/nissan_leaf/sensor.py +++ b/homeassistant/components/nissan_leaf/sensor.py @@ -1,4 +1,5 @@ """Battery Charge and Range Support for the Nissan Leaf.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nissan_leaf/switch.py b/homeassistant/components/nissan_leaf/switch.py index 97f02a9e0be..39f875ff95f 100644 --- a/homeassistant/components/nissan_leaf/switch.py +++ b/homeassistant/components/nissan_leaf/switch.py @@ -1,4 +1,5 @@ """Charge and Climate Control Support for the Nissan Leaf.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nmap_tracker/__init__.py b/homeassistant/components/nmap_tracker/__init__.py index bab71df94dc..ffc4b975308 100644 --- a/homeassistant/components/nmap_tracker/__init__.py +++ b/homeassistant/components/nmap_tracker/__init__.py @@ -1,4 +1,5 @@ """The Nmap Tracker integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nmap_tracker/config_flow.py b/homeassistant/components/nmap_tracker/config_flow.py index 40ad698b948..6128272fbbb 100644 --- a/homeassistant/components/nmap_tracker/config_flow.py +++ b/homeassistant/components/nmap_tracker/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nmap Tracker integration.""" + from __future__ import annotations from ipaddress import ip_address, ip_network, summarize_address_range diff --git a/homeassistant/components/nmap_tracker/const.py b/homeassistant/components/nmap_tracker/const.py index c7c1342036e..617f84e8aca 100644 --- a/homeassistant/components/nmap_tracker/const.py +++ b/homeassistant/components/nmap_tracker/const.py @@ -1,4 +1,5 @@ """The Nmap Tracker integration.""" + from typing import Final from homeassistant.const import Platform diff --git a/homeassistant/components/nmap_tracker/device_tracker.py b/homeassistant/components/nmap_tracker/device_tracker.py index 9b5597b6ba4..3f07926eaef 100644 --- a/homeassistant/components/nmap_tracker/device_tracker.py +++ b/homeassistant/components/nmap_tracker/device_tracker.py @@ -1,4 +1,5 @@ """Support for scanning a network with nmap.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nmbs/sensor.py b/homeassistant/components/nmbs/sensor.py index 7fe40af3b69..a684b47e245 100644 --- a/homeassistant/components/nmbs/sensor.py +++ b/homeassistant/components/nmbs/sensor.py @@ -1,4 +1,5 @@ """Get ride details and liveboard details for NMBS (Belgian railway).""" + from __future__ import annotations import logging diff --git a/homeassistant/components/noaa_tides/sensor.py b/homeassistant/components/noaa_tides/sensor.py index a83f18fd6ca..235263345e6 100644 --- a/homeassistant/components/noaa_tides/sensor.py +++ b/homeassistant/components/noaa_tides/sensor.py @@ -1,4 +1,5 @@ """Support for the NOAA Tides and Currents API.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/nobo_hub/__init__.py b/homeassistant/components/nobo_hub/__init__.py index 6c77f98d1b1..15a4b48c315 100644 --- a/homeassistant/components/nobo_hub/__init__.py +++ b/homeassistant/components/nobo_hub/__init__.py @@ -1,4 +1,5 @@ """The Nobø Ecohub integration.""" + from __future__ import annotations from pynobo import nobo diff --git a/homeassistant/components/nobo_hub/climate.py b/homeassistant/components/nobo_hub/climate.py index ca8ee08885d..f1e2f4a78f0 100644 --- a/homeassistant/components/nobo_hub/climate.py +++ b/homeassistant/components/nobo_hub/climate.py @@ -1,4 +1,5 @@ """Python Control of Nobø Hub - Nobø Energy Control.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nobo_hub/config_flow.py b/homeassistant/components/nobo_hub/config_flow.py index 20b61010ba9..6fc5bba2c1b 100644 --- a/homeassistant/components/nobo_hub/config_flow.py +++ b/homeassistant/components/nobo_hub/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nobø Ecohub integration.""" + from __future__ import annotations import socket diff --git a/homeassistant/components/nobo_hub/select.py b/homeassistant/components/nobo_hub/select.py index 2708dd75ffe..43f177dd7a0 100644 --- a/homeassistant/components/nobo_hub/select.py +++ b/homeassistant/components/nobo_hub/select.py @@ -1,4 +1,5 @@ """Python Control of Nobø Hub - Nobø Energy Control.""" + from __future__ import annotations from pynobo import nobo diff --git a/homeassistant/components/nobo_hub/sensor.py b/homeassistant/components/nobo_hub/sensor.py index 3446f1ea43b..1632b6ba5e7 100644 --- a/homeassistant/components/nobo_hub/sensor.py +++ b/homeassistant/components/nobo_hub/sensor.py @@ -1,4 +1,5 @@ """Python Control of Nobø Hub - Nobø Energy Control.""" + from __future__ import annotations from pynobo import nobo diff --git a/homeassistant/components/norway_air/air_quality.py b/homeassistant/components/norway_air/air_quality.py index 1a3d3661a15..c16df860751 100644 --- a/homeassistant/components/norway_air/air_quality.py +++ b/homeassistant/components/norway_air/air_quality.py @@ -1,4 +1,5 @@ """Sensor for checking the air quality forecast around Norway.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/notify/__init__.py b/homeassistant/components/notify/__init__.py index e9e61527884..2aa110649f2 100644 --- a/homeassistant/components/notify/__init__.py +++ b/homeassistant/components/notify/__init__.py @@ -1,4 +1,5 @@ """Provides functionality to notify people.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/notify/legacy.py b/homeassistant/components/notify/legacy.py index 7c78bfc44d3..664e3a6d10d 100644 --- a/homeassistant/components/notify/legacy.py +++ b/homeassistant/components/notify/legacy.py @@ -1,4 +1,5 @@ """Handle legacy notification platforms.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/notify_events/notify.py b/homeassistant/components/notify_events/notify.py index 3eb1bbac9c9..bfe0e4a2a57 100644 --- a/homeassistant/components/notify_events/notify.py +++ b/homeassistant/components/notify_events/notify.py @@ -1,4 +1,5 @@ """Notify.Events platform for notify component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/notion/__init__.py b/homeassistant/components/notion/__init__.py index 3ed2c7bdb93..77236ca6e0c 100644 --- a/homeassistant/components/notion/__init__.py +++ b/homeassistant/components/notion/__init__.py @@ -1,4 +1,5 @@ """Support for Notion.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/notion/binary_sensor.py b/homeassistant/components/notion/binary_sensor.py index dfa6dc5ec06..0c56e4fc33e 100644 --- a/homeassistant/components/notion/binary_sensor.py +++ b/homeassistant/components/notion/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Notion binary sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/notion/config_flow.py b/homeassistant/components/notion/config_flow.py index d9464d50a83..9a65f922fd9 100644 --- a/homeassistant/components/notion/config_flow.py +++ b/homeassistant/components/notion/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Notion integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/notion/diagnostics.py b/homeassistant/components/notion/diagnostics.py index 5c32f235639..77cf9e2a90f 100644 --- a/homeassistant/components/notion/diagnostics.py +++ b/homeassistant/components/notion/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Notion.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/notion/model.py b/homeassistant/components/notion/model.py index 059ea551b09..541ca245329 100644 --- a/homeassistant/components/notion/model.py +++ b/homeassistant/components/notion/model.py @@ -1,4 +1,5 @@ """Define Notion model mixins.""" + from dataclasses import dataclass from aionotion.listener.models import ListenerKind diff --git a/homeassistant/components/notion/sensor.py b/homeassistant/components/notion/sensor.py index d42a7ea194d..9bb8e3b4bbf 100644 --- a/homeassistant/components/notion/sensor.py +++ b/homeassistant/components/notion/sensor.py @@ -1,4 +1,5 @@ """Support for Notion sensors.""" + from dataclasses import dataclass from aionotion.listener.models import ListenerKind diff --git a/homeassistant/components/notion/util.py b/homeassistant/components/notion/util.py index 553199b7c7a..b155249268a 100644 --- a/homeassistant/components/notion/util.py +++ b/homeassistant/components/notion/util.py @@ -1,4 +1,5 @@ """Define notion utilities.""" + from aionotion import ( async_get_client_with_credentials as cwc, async_get_client_with_refresh_token as cwrt, diff --git a/homeassistant/components/nsw_fuel_station/__init__.py b/homeassistant/components/nsw_fuel_station/__init__.py index 818656779a3..76dc9d4c6ff 100644 --- a/homeassistant/components/nsw_fuel_station/__init__.py +++ b/homeassistant/components/nsw_fuel_station/__init__.py @@ -1,4 +1,5 @@ """The nsw_fuel_station component.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/nsw_fuel_station/sensor.py b/homeassistant/components/nsw_fuel_station/sensor.py index 7106b487786..7f28a9d28f2 100644 --- a/homeassistant/components/nsw_fuel_station/sensor.py +++ b/homeassistant/components/nsw_fuel_station/sensor.py @@ -1,4 +1,5 @@ """Sensor platform to display the current fuel prices at a NSW fuel station.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py b/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py index 28e056e29fb..24bae7f7b12 100644 --- a/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py +++ b/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py @@ -1,4 +1,5 @@ """Support for NSW Rural Fire Service Feeds.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nuheat/__init__.py b/homeassistant/components/nuheat/__init__.py index 86574920cd0..c8accd6ab73 100644 --- a/homeassistant/components/nuheat/__init__.py +++ b/homeassistant/components/nuheat/__init__.py @@ -1,4 +1,5 @@ """Support for NuHeat thermostats.""" + from datetime import timedelta from http import HTTPStatus import logging diff --git a/homeassistant/components/nuheat/config_flow.py b/homeassistant/components/nuheat/config_flow.py index 96610139a85..a75b65abccd 100644 --- a/homeassistant/components/nuheat/config_flow.py +++ b/homeassistant/components/nuheat/config_flow.py @@ -1,4 +1,5 @@ """Config flow for NuHeat integration.""" + from http import HTTPStatus import logging diff --git a/homeassistant/components/nuheat/const.py b/homeassistant/components/nuheat/const.py index ea43c33d9b0..96e7cdc2d60 100644 --- a/homeassistant/components/nuheat/const.py +++ b/homeassistant/components/nuheat/const.py @@ -1,4 +1,5 @@ """Constants for NuHeat thermostats.""" + from homeassistant.const import Platform DOMAIN = "nuheat" diff --git a/homeassistant/components/nuki/__init__.py b/homeassistant/components/nuki/__init__.py index 0ea75590ee3..cbd7af3ecec 100644 --- a/homeassistant/components/nuki/__init__.py +++ b/homeassistant/components/nuki/__init__.py @@ -1,4 +1,5 @@ """The nuki component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nuki/binary_sensor.py b/homeassistant/components/nuki/binary_sensor.py index ac2ce24f2b4..f2a98599e27 100644 --- a/homeassistant/components/nuki/binary_sensor.py +++ b/homeassistant/components/nuki/binary_sensor.py @@ -1,4 +1,5 @@ """Doorsensor Support for the Nuki Lock.""" + from __future__ import annotations from pynuki.constants import STATE_DOORSENSOR_OPENED diff --git a/homeassistant/components/nuki/config_flow.py b/homeassistant/components/nuki/config_flow.py index a29ff75580a..4a3e96f68a5 100644 --- a/homeassistant/components/nuki/config_flow.py +++ b/homeassistant/components/nuki/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Nuki integration.""" + from collections.abc import Mapping import logging from typing import Any diff --git a/homeassistant/components/nuki/helpers.py b/homeassistant/components/nuki/helpers.py index 1ba8e393f54..9ea4621168c 100644 --- a/homeassistant/components/nuki/helpers.py +++ b/homeassistant/components/nuki/helpers.py @@ -1,4 +1,5 @@ """nuki integration helpers.""" + from homeassistant import exceptions diff --git a/homeassistant/components/nuki/lock.py b/homeassistant/components/nuki/lock.py index 974ffbd4d85..d63bfaf6757 100644 --- a/homeassistant/components/nuki/lock.py +++ b/homeassistant/components/nuki/lock.py @@ -1,4 +1,5 @@ """Nuki.io lock platform.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/nuki/sensor.py b/homeassistant/components/nuki/sensor.py index 69d166e4ee5..6647eff5c83 100644 --- a/homeassistant/components/nuki/sensor.py +++ b/homeassistant/components/nuki/sensor.py @@ -1,4 +1,5 @@ """Battery sensor for the Nuki Lock.""" + from __future__ import annotations from pynuki.device import NukiDevice diff --git a/homeassistant/components/numato/binary_sensor.py b/homeassistant/components/numato/binary_sensor.py index 98e71b9fc2d..ad81164d4fc 100644 --- a/homeassistant/components/numato/binary_sensor.py +++ b/homeassistant/components/numato/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensor platform integration for Numato USB GPIO expanders.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/numato/sensor.py b/homeassistant/components/numato/sensor.py index 44adb78e6a0..6efc3f6160f 100644 --- a/homeassistant/components/numato/sensor.py +++ b/homeassistant/components/numato/sensor.py @@ -1,4 +1,5 @@ """Sensor platform integration for ADC ports of Numato USB GPIO expanders.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/numato/switch.py b/homeassistant/components/numato/switch.py index 92fc7e0e2df..37d1229e0b2 100644 --- a/homeassistant/components/numato/switch.py +++ b/homeassistant/components/numato/switch.py @@ -1,4 +1,5 @@ """Switch platform integration for Numato USB GPIO expanders.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/number/__init__.py b/homeassistant/components/number/__init__.py index c95381d09c2..5d21109f3fe 100644 --- a/homeassistant/components/number/__init__.py +++ b/homeassistant/components/number/__init__.py @@ -1,4 +1,5 @@ """Component to allow numeric input for platforms.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/number/const.py b/homeassistant/components/number/const.py index 071f480f766..89829adcc50 100644 --- a/homeassistant/components/number/const.py +++ b/homeassistant/components/number/const.py @@ -1,4 +1,5 @@ """Provides the constants needed for the component.""" + from __future__ import annotations from enum import StrEnum diff --git a/homeassistant/components/number/device_action.py b/homeassistant/components/number/device_action.py index 22a51d85ad9..8882bb22a0d 100644 --- a/homeassistant/components/number/device_action.py +++ b/homeassistant/components/number/device_action.py @@ -1,4 +1,5 @@ """Provides device actions for Number.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/number/reproduce_state.py b/homeassistant/components/number/reproduce_state.py index caed64a3d9e..e92573fb40e 100644 --- a/homeassistant/components/number/reproduce_state.py +++ b/homeassistant/components/number/reproduce_state.py @@ -1,4 +1,5 @@ """Reproduce a Number entity state.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/number/significant_change.py b/homeassistant/components/number/significant_change.py index 11bca6457f1..ff77f25e527 100644 --- a/homeassistant/components/number/significant_change.py +++ b/homeassistant/components/number/significant_change.py @@ -1,4 +1,5 @@ """Helper to test significant Number state changes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/number/websocket_api.py b/homeassistant/components/number/websocket_api.py index 1ca61fd158f..5c8730c9eaa 100644 --- a/homeassistant/components/number/websocket_api.py +++ b/homeassistant/components/number/websocket_api.py @@ -1,4 +1,5 @@ """The sensor websocket API.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nut/__init__.py b/homeassistant/components/nut/__init__.py index 8b0d8fe4640..d5a2453f62f 100644 --- a/homeassistant/components/nut/__init__.py +++ b/homeassistant/components/nut/__init__.py @@ -1,4 +1,5 @@ """The nut component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nut/config_flow.py b/homeassistant/components/nut/config_flow.py index 782266a460a..5967aef4dac 100644 --- a/homeassistant/components/nut/config_flow.py +++ b/homeassistant/components/nut/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Network UPS Tools (NUT) integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/nut/const.py b/homeassistant/components/nut/const.py index 13951a44d90..9be06de1f73 100644 --- a/homeassistant/components/nut/const.py +++ b/homeassistant/components/nut/const.py @@ -1,4 +1,5 @@ """The nut component.""" + from __future__ import annotations from homeassistant.const import Platform diff --git a/homeassistant/components/nut/device_action.py b/homeassistant/components/nut/device_action.py index 4898d9cc82d..bf16b3664f1 100644 --- a/homeassistant/components/nut/device_action.py +++ b/homeassistant/components/nut/device_action.py @@ -1,4 +1,5 @@ """Provides device actions for Network UPS Tools (NUT).""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/nut/diagnostics.py b/homeassistant/components/nut/diagnostics.py index 9ee430a655b..88a05e461c9 100644 --- a/homeassistant/components/nut/diagnostics.py +++ b/homeassistant/components/nut/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Nut.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nut/sensor.py b/homeassistant/components/nut/sensor.py index e8290f5fa6d..cd5ae64901d 100644 --- a/homeassistant/components/nut/sensor.py +++ b/homeassistant/components/nut/sensor.py @@ -1,4 +1,5 @@ """Provides a sensor to track various status aspects of a UPS.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/nws/__init__.py b/homeassistant/components/nws/__init__.py index da54f3b119e..34157769b97 100644 --- a/homeassistant/components/nws/__init__.py +++ b/homeassistant/components/nws/__init__.py @@ -1,4 +1,5 @@ """The National Weather Service integration.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/nws/config_flow.py b/homeassistant/components/nws/config_flow.py index a6e14500ed2..37d5bb5bf82 100644 --- a/homeassistant/components/nws/config_flow.py +++ b/homeassistant/components/nws/config_flow.py @@ -1,4 +1,5 @@ """Config flow for National Weather Service (NWS) integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nws/const.py b/homeassistant/components/nws/const.py index 1e028649d89..3de874b5c10 100644 --- a/homeassistant/components/nws/const.py +++ b/homeassistant/components/nws/const.py @@ -1,4 +1,5 @@ """Constants for National Weather Service Integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nws/sensor.py b/homeassistant/components/nws/sensor.py index 35fb6c0ec1f..1d8c5ab045e 100644 --- a/homeassistant/components/nws/sensor.py +++ b/homeassistant/components/nws/sensor.py @@ -1,4 +1,5 @@ """Sensors for National Weather Service (NWS).""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/nws/weather.py b/homeassistant/components/nws/weather.py index 9d41e54ccd0..025a3640ec6 100644 --- a/homeassistant/components/nws/weather.py +++ b/homeassistant/components/nws/weather.py @@ -1,4 +1,5 @@ """Support for NWS weather service.""" + from __future__ import annotations from types import MappingProxyType diff --git a/homeassistant/components/nx584/alarm_control_panel.py b/homeassistant/components/nx584/alarm_control_panel.py index 3eaaf07ad1c..d29ac0388ca 100644 --- a/homeassistant/components/nx584/alarm_control_panel.py +++ b/homeassistant/components/nx584/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for NX584 alarm control panels.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nx584/binary_sensor.py b/homeassistant/components/nx584/binary_sensor.py index ca55ea25c40..627051a4d65 100644 --- a/homeassistant/components/nx584/binary_sensor.py +++ b/homeassistant/components/nx584/binary_sensor.py @@ -1,4 +1,5 @@ """Support for exposing NX584 elements as sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nzbget/config_flow.py b/homeassistant/components/nzbget/config_flow.py index f528712d6a0..ff89d8090d6 100644 --- a/homeassistant/components/nzbget/config_flow.py +++ b/homeassistant/components/nzbget/config_flow.py @@ -1,4 +1,5 @@ """Config flow for NZBGet.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nzbget/sensor.py b/homeassistant/components/nzbget/sensor.py index d76e004d720..394e1175c2f 100644 --- a/homeassistant/components/nzbget/sensor.py +++ b/homeassistant/components/nzbget/sensor.py @@ -1,4 +1,5 @@ """Monitor the NZBGet API.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/nzbget/switch.py b/homeassistant/components/nzbget/switch.py index 5d72cae37cf..c6505fd522d 100644 --- a/homeassistant/components/nzbget/switch.py +++ b/homeassistant/components/nzbget/switch.py @@ -1,4 +1,5 @@ """Support for NZBGet switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/oasa_telematics/sensor.py b/homeassistant/components/oasa_telematics/sensor.py index b9109645943..2a68c7ce15d 100644 --- a/homeassistant/components/oasa_telematics/sensor.py +++ b/homeassistant/components/oasa_telematics/sensor.py @@ -1,4 +1,5 @@ """Support for OASA Telematics from telematics.oasa.gr.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/obihai/sensor.py b/homeassistant/components/obihai/sensor.py index 53208a1e6a1..cc70296028f 100644 --- a/homeassistant/components/obihai/sensor.py +++ b/homeassistant/components/obihai/sensor.py @@ -1,4 +1,5 @@ """Support for Obihai Sensors.""" + from __future__ import annotations import datetime diff --git a/homeassistant/components/octoprint/__init__.py b/homeassistant/components/octoprint/__init__.py index 1a96078c003..7a9f3990435 100644 --- a/homeassistant/components/octoprint/__init__.py +++ b/homeassistant/components/octoprint/__init__.py @@ -1,4 +1,5 @@ """Support for monitoring OctoPrint 3D printers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/octoprint/binary_sensor.py b/homeassistant/components/octoprint/binary_sensor.py index 0bc13f66415..10a637e5a3b 100644 --- a/homeassistant/components/octoprint/binary_sensor.py +++ b/homeassistant/components/octoprint/binary_sensor.py @@ -1,4 +1,5 @@ """Support for monitoring OctoPrint binary sensors.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/octoprint/button.py b/homeassistant/components/octoprint/button.py index b2c1672b3e4..b7c49df7f4c 100644 --- a/homeassistant/components/octoprint/button.py +++ b/homeassistant/components/octoprint/button.py @@ -1,4 +1,5 @@ """Support for Octoprint buttons.""" + from pyoctoprintapi import OctoprintClient, OctoprintPrinterInfo from homeassistant.components.button import ButtonEntity diff --git a/homeassistant/components/octoprint/camera.py b/homeassistant/components/octoprint/camera.py index a6955706508..c5d6f9a62e1 100644 --- a/homeassistant/components/octoprint/camera.py +++ b/homeassistant/components/octoprint/camera.py @@ -1,4 +1,5 @@ """Support for OctoPrint binary camera.""" + from __future__ import annotations from pyoctoprintapi import OctoprintClient, WebcamSettings diff --git a/homeassistant/components/octoprint/config_flow.py b/homeassistant/components/octoprint/config_flow.py index 94c9e940fd3..6bd592c38bf 100644 --- a/homeassistant/components/octoprint/config_flow.py +++ b/homeassistant/components/octoprint/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OctoPrint integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/octoprint/coordinator.py b/homeassistant/components/octoprint/coordinator.py index c6ce8fa66b7..ff00b6c3420 100644 --- a/homeassistant/components/octoprint/coordinator.py +++ b/homeassistant/components/octoprint/coordinator.py @@ -1,4 +1,5 @@ """The data update coordinator for OctoPrint.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/octoprint/sensor.py b/homeassistant/components/octoprint/sensor.py index 1ea29c2b4e8..eb54cadd023 100644 --- a/homeassistant/components/octoprint/sensor.py +++ b/homeassistant/components/octoprint/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring OctoPrint sensors.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/oem/climate.py b/homeassistant/components/oem/climate.py index 86c770ec82d..6c4b97ca450 100644 --- a/homeassistant/components/oem/climate.py +++ b/homeassistant/components/oem/climate.py @@ -1,4 +1,5 @@ """OpenEnergyMonitor Thermostat Support.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ohmconnect/sensor.py b/homeassistant/components/ohmconnect/sensor.py index 11606bfc6c2..2598e5fe514 100644 --- a/homeassistant/components/ohmconnect/sensor.py +++ b/homeassistant/components/ohmconnect/sensor.py @@ -1,4 +1,5 @@ """Support for OhmConnect.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/ombi/const.py b/homeassistant/components/ombi/const.py index 59a57a480c2..6616cd9219d 100644 --- a/homeassistant/components/ombi/const.py +++ b/homeassistant/components/ombi/const.py @@ -1,4 +1,5 @@ """Support for Ombi.""" + from __future__ import annotations ATTR_SEASON = "season" diff --git a/homeassistant/components/ombi/sensor.py b/homeassistant/components/ombi/sensor.py index f534144d02c..ab9df9ad111 100644 --- a/homeassistant/components/ombi/sensor.py +++ b/homeassistant/components/ombi/sensor.py @@ -1,4 +1,5 @@ """Support for Ombi.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/omnilogic/config_flow.py b/homeassistant/components/omnilogic/config_flow.py index 76c42b19866..3f3acc3c100 100644 --- a/homeassistant/components/omnilogic/config_flow.py +++ b/homeassistant/components/omnilogic/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Omnilogic integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/omnilogic/sensor.py b/homeassistant/components/omnilogic/sensor.py index be082584308..5eb5a5dd0c4 100644 --- a/homeassistant/components/omnilogic/sensor.py +++ b/homeassistant/components/omnilogic/sensor.py @@ -1,4 +1,5 @@ """Definition and setup of the Omnilogic Sensors for Home Assistant.""" + from typing import Any from homeassistant.components.sensor import SensorDeviceClass, SensorEntity diff --git a/homeassistant/components/onboarding/__init__.py b/homeassistant/components/onboarding/__init__.py index 4243d05c085..61576c831bf 100644 --- a/homeassistant/components/onboarding/__init__.py +++ b/homeassistant/components/onboarding/__init__.py @@ -1,4 +1,5 @@ """Support to help onboard new users.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/homeassistant/components/onboarding/views.py b/homeassistant/components/onboarding/views.py index 37ace1e1bab..bcc4bd26a58 100644 --- a/homeassistant/components/onboarding/views.py +++ b/homeassistant/components/onboarding/views.py @@ -1,4 +1,5 @@ """Onboarding views.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/oncue/__init__.py b/homeassistant/components/oncue/__init__.py index a87b2a9e02c..b3d59f50321 100644 --- a/homeassistant/components/oncue/__init__.py +++ b/homeassistant/components/oncue/__init__.py @@ -1,4 +1,5 @@ """The Oncue integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/oncue/binary_sensor.py b/homeassistant/components/oncue/binary_sensor.py index cfb088ebdb8..8adf422d656 100644 --- a/homeassistant/components/oncue/binary_sensor.py +++ b/homeassistant/components/oncue/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Oncue binary sensors.""" + from __future__ import annotations from aiooncue import OncueDevice diff --git a/homeassistant/components/oncue/config_flow.py b/homeassistant/components/oncue/config_flow.py index e56266202bd..ba672dcc588 100644 --- a/homeassistant/components/oncue/config_flow.py +++ b/homeassistant/components/oncue/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Oncue integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/oncue/entity.py b/homeassistant/components/oncue/entity.py index 6d988d4aaaf..55bd86d8912 100644 --- a/homeassistant/components/oncue/entity.py +++ b/homeassistant/components/oncue/entity.py @@ -1,4 +1,5 @@ """Support for Oncue sensors.""" + from __future__ import annotations from aiooncue import OncueDevice, OncueSensor diff --git a/homeassistant/components/oncue/sensor.py b/homeassistant/components/oncue/sensor.py index d4d45264396..f79beed38b2 100644 --- a/homeassistant/components/oncue/sensor.py +++ b/homeassistant/components/oncue/sensor.py @@ -1,4 +1,5 @@ """Support for Oncue sensors.""" + from __future__ import annotations from aiooncue import OncueDevice, OncueSensor diff --git a/homeassistant/components/ondilo_ico/api.py b/homeassistant/components/ondilo_ico/api.py index e0c6f9001c4..621750c2f58 100644 --- a/homeassistant/components/ondilo_ico/api.py +++ b/homeassistant/components/ondilo_ico/api.py @@ -1,4 +1,5 @@ """API for Ondilo ICO bound to Home Assistant OAuth.""" + from asyncio import run_coroutine_threadsafe import logging from typing import Any diff --git a/homeassistant/components/ondilo_ico/sensor.py b/homeassistant/components/ondilo_ico/sensor.py index 0a39f661b6b..17569fd784f 100644 --- a/homeassistant/components/ondilo_ico/sensor.py +++ b/homeassistant/components/ondilo_ico/sensor.py @@ -1,4 +1,5 @@ """Platform for sensor integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/onewire/binary_sensor.py b/homeassistant/components/onewire/binary_sensor.py index e7e30588f8a..0f98be0d892 100644 --- a/homeassistant/components/onewire/binary_sensor.py +++ b/homeassistant/components/onewire/binary_sensor.py @@ -1,4 +1,5 @@ """Support for 1-Wire binary sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onewire/config_flow.py b/homeassistant/components/onewire/config_flow.py index 11a57fdaab5..a217674e3b4 100644 --- a/homeassistant/components/onewire/config_flow.py +++ b/homeassistant/components/onewire/config_flow.py @@ -1,4 +1,5 @@ """Config flow for 1-Wire component.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/onewire/const.py b/homeassistant/components/onewire/const.py index ed744caee17..110e3da0976 100644 --- a/homeassistant/components/onewire/const.py +++ b/homeassistant/components/onewire/const.py @@ -1,4 +1,5 @@ """Constants for 1-Wire component.""" + from __future__ import annotations from homeassistant.const import Platform diff --git a/homeassistant/components/onewire/diagnostics.py b/homeassistant/components/onewire/diagnostics.py index 36db7fd5360..387553849f3 100644 --- a/homeassistant/components/onewire/diagnostics.py +++ b/homeassistant/components/onewire/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for 1-Wire.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/onewire/model.py b/homeassistant/components/onewire/model.py index 6e134fd8466..9deaca2d121 100644 --- a/homeassistant/components/onewire/model.py +++ b/homeassistant/components/onewire/model.py @@ -1,4 +1,5 @@ """Type definitions for 1-Wire integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onewire/onewire_entities.py b/homeassistant/components/onewire/onewire_entities.py index cad55234181..03ed2dd679a 100644 --- a/homeassistant/components/onewire/onewire_entities.py +++ b/homeassistant/components/onewire/onewire_entities.py @@ -1,4 +1,5 @@ """Support for 1-Wire entities.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onewire/onewirehub.py b/homeassistant/components/onewire/onewirehub.py index d0e2a0f1706..b01cc6ba3d6 100644 --- a/homeassistant/components/onewire/onewirehub.py +++ b/homeassistant/components/onewire/onewirehub.py @@ -1,4 +1,5 @@ """Hub for communication with 1-Wire server or mount_dir.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/onewire/sensor.py b/homeassistant/components/onewire/sensor.py index a7d199c21a9..2a0f348aa17 100644 --- a/homeassistant/components/onewire/sensor.py +++ b/homeassistant/components/onewire/sensor.py @@ -1,4 +1,5 @@ """Support for 1-Wire environment sensors.""" + from __future__ import annotations from collections.abc import Callable, Mapping diff --git a/homeassistant/components/onewire/switch.py b/homeassistant/components/onewire/switch.py index 00a3f8f65f4..87e049a575d 100644 --- a/homeassistant/components/onewire/switch.py +++ b/homeassistant/components/onewire/switch.py @@ -1,4 +1,5 @@ """Support for 1-Wire environment switches.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onkyo/media_player.py b/homeassistant/components/onkyo/media_player.py index 4d6d0f6965d..ef0105bd6d2 100644 --- a/homeassistant/components/onkyo/media_player.py +++ b/homeassistant/components/onkyo/media_player.py @@ -1,4 +1,5 @@ """Support for Onkyo Receivers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/onvif/base.py b/homeassistant/components/onvif/base.py index 5f8a7d978d1..c9900106256 100644 --- a/homeassistant/components/onvif/base.py +++ b/homeassistant/components/onvif/base.py @@ -1,4 +1,5 @@ """Base classes for ONVIF entities.""" + from __future__ import annotations from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo diff --git a/homeassistant/components/onvif/binary_sensor.py b/homeassistant/components/onvif/binary_sensor.py index 3676e3b6c27..4aa4d81e055 100644 --- a/homeassistant/components/onvif/binary_sensor.py +++ b/homeassistant/components/onvif/binary_sensor.py @@ -1,4 +1,5 @@ """Support for ONVIF binary sensors.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/onvif/button.py b/homeassistant/components/onvif/button.py index f263821a460..1e86b73fc66 100644 --- a/homeassistant/components/onvif/button.py +++ b/homeassistant/components/onvif/button.py @@ -1,4 +1,5 @@ """ONVIF Buttons.""" + from homeassistant.components.button import ButtonDeviceClass, ButtonEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import EntityCategory diff --git a/homeassistant/components/onvif/camera.py b/homeassistant/components/onvif/camera.py index c6ee74c2c50..3fa41d629b2 100644 --- a/homeassistant/components/onvif/camera.py +++ b/homeassistant/components/onvif/camera.py @@ -1,4 +1,5 @@ """Support for ONVIF Cameras with FFmpeg as decoder.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/onvif/config_flow.py b/homeassistant/components/onvif/config_flow.py index ba1fc1c3098..515f9cd5f68 100644 --- a/homeassistant/components/onvif/config_flow.py +++ b/homeassistant/components/onvif/config_flow.py @@ -1,4 +1,5 @@ """Config flow for ONVIF.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/onvif/device.py b/homeassistant/components/onvif/device.py index 358cbbf5c83..2001d95e2d4 100644 --- a/homeassistant/components/onvif/device.py +++ b/homeassistant/components/onvif/device.py @@ -1,4 +1,5 @@ """ONVIF device abstraction.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/onvif/diagnostics.py b/homeassistant/components/onvif/diagnostics.py index a802aed5e80..aa2042f3321 100644 --- a/homeassistant/components/onvif/diagnostics.py +++ b/homeassistant/components/onvif/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for ONVIF.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/onvif/event.py b/homeassistant/components/onvif/event.py index c5539818a1c..9dcdba628e0 100644 --- a/homeassistant/components/onvif/event.py +++ b/homeassistant/components/onvif/event.py @@ -1,4 +1,5 @@ """ONVIF event abstraction.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/onvif/models.py b/homeassistant/components/onvif/models.py index 64edc85f3d1..ad91a514e88 100644 --- a/homeassistant/components/onvif/models.py +++ b/homeassistant/components/onvif/models.py @@ -1,4 +1,5 @@ """ONVIF models.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onvif/parsers.py b/homeassistant/components/onvif/parsers.py index 02899dbc1a2..721ec08cb48 100644 --- a/homeassistant/components/onvif/parsers.py +++ b/homeassistant/components/onvif/parsers.py @@ -1,4 +1,5 @@ """ONVIF event parsers.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/onvif/sensor.py b/homeassistant/components/onvif/sensor.py index 67da0ed979d..5b0c72e88dd 100644 --- a/homeassistant/components/onvif/sensor.py +++ b/homeassistant/components/onvif/sensor.py @@ -1,4 +1,5 @@ """Support for ONVIF binary sensors.""" + from __future__ import annotations from datetime import date, datetime diff --git a/homeassistant/components/onvif/switch.py b/homeassistant/components/onvif/switch.py index 61983ef1ab5..004872606d3 100644 --- a/homeassistant/components/onvif/switch.py +++ b/homeassistant/components/onvif/switch.py @@ -1,4 +1,5 @@ """ONVIF switches for controlling cameras.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/onvif/util.py b/homeassistant/components/onvif/util.py index 5077a65e0b0..064d9cfad5f 100644 --- a/homeassistant/components/onvif/util.py +++ b/homeassistant/components/onvif/util.py @@ -1,4 +1,5 @@ """ONVIF util.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/open_meteo/__init__.py b/homeassistant/components/open_meteo/__init__.py index 4dc6a45e16c..ac09b0f61a2 100644 --- a/homeassistant/components/open_meteo/__init__.py +++ b/homeassistant/components/open_meteo/__init__.py @@ -1,4 +1,5 @@ """Support for Open-Meteo.""" + from __future__ import annotations from open_meteo import ( diff --git a/homeassistant/components/open_meteo/config_flow.py b/homeassistant/components/open_meteo/config_flow.py index 1c5c76500b1..128e9f17f37 100644 --- a/homeassistant/components/open_meteo/config_flow.py +++ b/homeassistant/components/open_meteo/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Open-Meteo integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/open_meteo/const.py b/homeassistant/components/open_meteo/const.py index 94e27293bad..e83fad9d59f 100644 --- a/homeassistant/components/open_meteo/const.py +++ b/homeassistant/components/open_meteo/const.py @@ -1,4 +1,5 @@ """Constants for the Open-Meteo integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/open_meteo/diagnostics.py b/homeassistant/components/open_meteo/diagnostics.py index a88325066fe..0ce9f4fcf3d 100644 --- a/homeassistant/components/open_meteo/diagnostics.py +++ b/homeassistant/components/open_meteo/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Open-Meteo.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/open_meteo/weather.py b/homeassistant/components/open_meteo/weather.py index 3d66422fd60..850ce61bcb5 100644 --- a/homeassistant/components/open_meteo/weather.py +++ b/homeassistant/components/open_meteo/weather.py @@ -1,4 +1,5 @@ """Support for Open-Meteo weather.""" + from __future__ import annotations from open_meteo import Forecast as OpenMeteoForecast diff --git a/homeassistant/components/openai_conversation/__init__.py b/homeassistant/components/openai_conversation/__init__.py index b0762979ca2..07e872a0f5d 100644 --- a/homeassistant/components/openai_conversation/__init__.py +++ b/homeassistant/components/openai_conversation/__init__.py @@ -1,4 +1,5 @@ """The OpenAI Conversation integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openai_conversation/config_flow.py b/homeassistant/components/openai_conversation/config_flow.py index a971e34ccf5..fdbbbc554df 100644 --- a/homeassistant/components/openai_conversation/config_flow.py +++ b/homeassistant/components/openai_conversation/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OpenAI Conversation integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openalpr_cloud/image_processing.py b/homeassistant/components/openalpr_cloud/image_processing.py index 0dbebda6962..2c2807f5364 100644 --- a/homeassistant/components/openalpr_cloud/image_processing.py +++ b/homeassistant/components/openalpr_cloud/image_processing.py @@ -1,4 +1,5 @@ """Component that will help set the OpenALPR cloud for ALPR processing.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/opencv/image_processing.py b/homeassistant/components/opencv/image_processing.py index 89c1a16aa59..760c473243d 100644 --- a/homeassistant/components/opencv/image_processing.py +++ b/homeassistant/components/opencv/image_processing.py @@ -1,4 +1,5 @@ """Support for OpenCV classification on images.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/openerz/sensor.py b/homeassistant/components/openerz/sensor.py index 4bfe11ee264..7447f2eafe4 100644 --- a/homeassistant/components/openerz/sensor.py +++ b/homeassistant/components/openerz/sensor.py @@ -1,4 +1,5 @@ """Support for OpenERZ API for Zurich city waste disposal system.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/openevse/sensor.py b/homeassistant/components/openevse/sensor.py index aafda0d038b..b2360b13a6f 100644 --- a/homeassistant/components/openevse/sensor.py +++ b/homeassistant/components/openevse/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring an OpenEVSE Charger.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openexchangerates/__init__.py b/homeassistant/components/openexchangerates/__init__.py index 1b6ab4e65f1..65005235c6b 100644 --- a/homeassistant/components/openexchangerates/__init__.py +++ b/homeassistant/components/openexchangerates/__init__.py @@ -1,4 +1,5 @@ """The Open Exchange Rates integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/openexchangerates/config_flow.py b/homeassistant/components/openexchangerates/config_flow.py index 4a15ed33fd8..2fc0acea78d 100644 --- a/homeassistant/components/openexchangerates/config_flow.py +++ b/homeassistant/components/openexchangerates/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Open Exchange Rates integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/openexchangerates/const.py b/homeassistant/components/openexchangerates/const.py index 146919cfe44..0dd79158ff7 100644 --- a/homeassistant/components/openexchangerates/const.py +++ b/homeassistant/components/openexchangerates/const.py @@ -1,4 +1,5 @@ """Provide common constants for Open Exchange Rates.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/openexchangerates/coordinator.py b/homeassistant/components/openexchangerates/coordinator.py index beb588c7ce6..627e0d92e32 100644 --- a/homeassistant/components/openexchangerates/coordinator.py +++ b/homeassistant/components/openexchangerates/coordinator.py @@ -1,4 +1,5 @@ """Provide an OpenExchangeRates data coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/openexchangerates/sensor.py b/homeassistant/components/openexchangerates/sensor.py index 66baf54c16a..55ca7bd2fb9 100644 --- a/homeassistant/components/openexchangerates/sensor.py +++ b/homeassistant/components/openexchangerates/sensor.py @@ -1,4 +1,5 @@ """Support for openexchangerates.org exchange rates service.""" + from __future__ import annotations from homeassistant.components.sensor import SensorEntity diff --git a/homeassistant/components/opengarage/__init__.py b/homeassistant/components/opengarage/__init__.py index 46d018ec1af..adc96ee0946 100644 --- a/homeassistant/components/opengarage/__init__.py +++ b/homeassistant/components/opengarage/__init__.py @@ -1,4 +1,5 @@ """The OpenGarage integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/opengarage/binary_sensor.py b/homeassistant/components/opengarage/binary_sensor.py index 1b40aacffe5..2eca670b990 100644 --- a/homeassistant/components/opengarage/binary_sensor.py +++ b/homeassistant/components/opengarage/binary_sensor.py @@ -1,4 +1,5 @@ """Platform for the opengarage.io binary sensor component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opengarage/button.py b/homeassistant/components/opengarage/button.py index 9f676919098..f3a31d1b050 100644 --- a/homeassistant/components/opengarage/button.py +++ b/homeassistant/components/opengarage/button.py @@ -1,4 +1,5 @@ """OpenGarage button.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/opengarage/config_flow.py b/homeassistant/components/opengarage/config_flow.py index 6b9a84a6a77..0b86c563783 100644 --- a/homeassistant/components/opengarage/config_flow.py +++ b/homeassistant/components/opengarage/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OpenGarage integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opengarage/cover.py b/homeassistant/components/opengarage/cover.py index 3f3f6b11acf..69338ad4b90 100644 --- a/homeassistant/components/opengarage/cover.py +++ b/homeassistant/components/opengarage/cover.py @@ -1,4 +1,5 @@ """Platform for the opengarage.io cover component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opengarage/entity.py b/homeassistant/components/opengarage/entity.py index c8380ea9244..4bf63567fe3 100644 --- a/homeassistant/components/opengarage/entity.py +++ b/homeassistant/components/opengarage/entity.py @@ -1,4 +1,5 @@ """Entity for the opengarage.io component.""" + from __future__ import annotations from homeassistant.core import callback diff --git a/homeassistant/components/opengarage/sensor.py b/homeassistant/components/opengarage/sensor.py index c3fa3decc82..39b431157ab 100644 --- a/homeassistant/components/opengarage/sensor.py +++ b/homeassistant/components/opengarage/sensor.py @@ -1,4 +1,5 @@ """Platform for the opengarage.io sensor component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openhardwaremonitor/sensor.py b/homeassistant/components/openhardwaremonitor/sensor.py index 4206bc72c1d..a68b9b11678 100644 --- a/homeassistant/components/openhardwaremonitor/sensor.py +++ b/homeassistant/components/openhardwaremonitor/sensor.py @@ -1,4 +1,5 @@ """Support for Open Hardware Monitor Sensor Platform.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/openhome/media_player.py b/homeassistant/components/openhome/media_player.py index 25052824ffe..12e5ed992c2 100644 --- a/homeassistant/components/openhome/media_player.py +++ b/homeassistant/components/openhome/media_player.py @@ -1,4 +1,5 @@ """Support for Openhome Devices.""" + from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine diff --git a/homeassistant/components/openhome/update.py b/homeassistant/components/openhome/update.py index 6d36bccec65..bbe4fdac3b3 100644 --- a/homeassistant/components/openhome/update.py +++ b/homeassistant/components/openhome/update.py @@ -1,4 +1,5 @@ """Update entities for Linn devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opensensemap/air_quality.py b/homeassistant/components/opensensemap/air_quality.py index 0e918103cd2..c9b4c726a59 100644 --- a/homeassistant/components/opensensemap/air_quality.py +++ b/homeassistant/components/opensensemap/air_quality.py @@ -1,4 +1,5 @@ """Support for openSenseMap Air Quality data.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/opensky/__init__.py b/homeassistant/components/opensky/__init__.py index 6e60c2ec4f1..c95dc1283a4 100644 --- a/homeassistant/components/opensky/__init__.py +++ b/homeassistant/components/opensky/__init__.py @@ -1,4 +1,5 @@ """The opensky component.""" + from __future__ import annotations from aiohttp import BasicAuth diff --git a/homeassistant/components/opensky/config_flow.py b/homeassistant/components/opensky/config_flow.py index 568082b67fd..863b6050616 100644 --- a/homeassistant/components/opensky/config_flow.py +++ b/homeassistant/components/opensky/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OpenSky integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/opensky/coordinator.py b/homeassistant/components/opensky/coordinator.py index d85924737a1..f54e01b0006 100644 --- a/homeassistant/components/opensky/coordinator.py +++ b/homeassistant/components/opensky/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the OpenSky integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/opensky/sensor.py b/homeassistant/components/opensky/sensor.py index 449f17cefbb..9d317ae3e0d 100644 --- a/homeassistant/components/opensky/sensor.py +++ b/homeassistant/components/opensky/sensor.py @@ -1,4 +1,5 @@ """Sensor for the Open Sky Network.""" + from __future__ import annotations from homeassistant.components.sensor import SensorEntity, SensorStateClass diff --git a/homeassistant/components/opentherm_gw/climate.py b/homeassistant/components/opentherm_gw/climate.py index 0b9cd1862be..c020a82f08f 100644 --- a/homeassistant/components/opentherm_gw/climate.py +++ b/homeassistant/components/opentherm_gw/climate.py @@ -1,4 +1,5 @@ """Support for OpenTherm Gateway climate devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opentherm_gw/config_flow.py b/homeassistant/components/opentherm_gw/config_flow.py index 9e2b4d76dd3..19906689b57 100644 --- a/homeassistant/components/opentherm_gw/config_flow.py +++ b/homeassistant/components/opentherm_gw/config_flow.py @@ -1,4 +1,5 @@ """OpenTherm Gateway config flow.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/opentherm_gw/const.py b/homeassistant/components/opentherm_gw/const.py index 82d982b2fa9..65a684de224 100644 --- a/homeassistant/components/opentherm_gw/const.py +++ b/homeassistant/components/opentherm_gw/const.py @@ -1,4 +1,5 @@ """Constants for the opentherm_gw integration.""" + from __future__ import annotations import pyotgw.vars as gw_vars diff --git a/homeassistant/components/openuv/__init__.py b/homeassistant/components/openuv/__init__.py index a9ea1946f91..b7c13ad49f1 100644 --- a/homeassistant/components/openuv/__init__.py +++ b/homeassistant/components/openuv/__init__.py @@ -1,4 +1,5 @@ """Support for UV data from openuv.io.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/openuv/binary_sensor.py b/homeassistant/components/openuv/binary_sensor.py index 7946597f3c3..da4dfc3f742 100644 --- a/homeassistant/components/openuv/binary_sensor.py +++ b/homeassistant/components/openuv/binary_sensor.py @@ -1,4 +1,5 @@ """Support for OpenUV binary sensors.""" + from homeassistant.components.binary_sensor import ( BinarySensorEntity, BinarySensorEntityDescription, diff --git a/homeassistant/components/openuv/config_flow.py b/homeassistant/components/openuv/config_flow.py index 0e6dfcdad1e..52e369fd6df 100644 --- a/homeassistant/components/openuv/config_flow.py +++ b/homeassistant/components/openuv/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the OpenUV component.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/openuv/coordinator.py b/homeassistant/components/openuv/coordinator.py index f82a85e19b0..32d502cb8ce 100644 --- a/homeassistant/components/openuv/coordinator.py +++ b/homeassistant/components/openuv/coordinator.py @@ -1,4 +1,5 @@ """Define an update coordinator for OpenUV.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/openuv/diagnostics.py b/homeassistant/components/openuv/diagnostics.py index 99c5f89d456..e16316d4148 100644 --- a/homeassistant/components/openuv/diagnostics.py +++ b/homeassistant/components/openuv/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for OpenUV.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/openuv/sensor.py b/homeassistant/components/openuv/sensor.py index f2eafa0dffb..a79bc410715 100644 --- a/homeassistant/components/openuv/sensor.py +++ b/homeassistant/components/openuv/sensor.py @@ -1,4 +1,5 @@ """Support for OpenUV sensors.""" + from __future__ import annotations from collections.abc import Callable, Mapping diff --git a/homeassistant/components/openweathermap/__init__.py b/homeassistant/components/openweathermap/__init__.py index 22c97d72fa5..ad99416e448 100644 --- a/homeassistant/components/openweathermap/__init__.py +++ b/homeassistant/components/openweathermap/__init__.py @@ -1,4 +1,5 @@ """The openweathermap component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openweathermap/config_flow.py b/homeassistant/components/openweathermap/config_flow.py index 717a5148398..cc4c71c2bd5 100644 --- a/homeassistant/components/openweathermap/config_flow.py +++ b/homeassistant/components/openweathermap/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OpenWeatherMap.""" + from __future__ import annotations from pyowm import OWM diff --git a/homeassistant/components/openweathermap/const.py b/homeassistant/components/openweathermap/const.py index d7deab21743..dbd536a2556 100644 --- a/homeassistant/components/openweathermap/const.py +++ b/homeassistant/components/openweathermap/const.py @@ -1,4 +1,5 @@ """Consts for the OpenWeatherMap.""" + from __future__ import annotations from homeassistant.components.weather import ( diff --git a/homeassistant/components/openweathermap/sensor.py b/homeassistant/components/openweathermap/sensor.py index a1e0e9d2169..16d9c3064d7 100644 --- a/homeassistant/components/openweathermap/sensor.py +++ b/homeassistant/components/openweathermap/sensor.py @@ -1,4 +1,5 @@ """Support for the OpenWeatherMap (OWM) service.""" + from __future__ import annotations from datetime import datetime diff --git a/homeassistant/components/openweathermap/weather.py b/homeassistant/components/openweathermap/weather.py index bf1ae5ca7da..063415d0762 100644 --- a/homeassistant/components/openweathermap/weather.py +++ b/homeassistant/components/openweathermap/weather.py @@ -1,4 +1,5 @@ """Support for the OpenWeatherMap (OWM) service.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/opnsense/device_tracker.py b/homeassistant/components/opnsense/device_tracker.py index 78a8315335c..7c018e20a36 100644 --- a/homeassistant/components/opnsense/device_tracker.py +++ b/homeassistant/components/opnsense/device_tracker.py @@ -1,4 +1,5 @@ """Device tracker support for OPNSense routers.""" + from __future__ import annotations from homeassistant.components.device_tracker import DeviceScanner diff --git a/homeassistant/components/opower/__init__.py b/homeassistant/components/opower/__init__.py index f4fca22c9b4..1a34d0547aa 100644 --- a/homeassistant/components/opower/__init__.py +++ b/homeassistant/components/opower/__init__.py @@ -1,4 +1,5 @@ """The Opower integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/opower/config_flow.py b/homeassistant/components/opower/config_flow.py index b21ad72d688..858d14dd832 100644 --- a/homeassistant/components/opower/config_flow.py +++ b/homeassistant/components/opower/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Opower integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/opower/coordinator.py b/homeassistant/components/opower/coordinator.py index 73c60068cd4..22ff9d951d2 100644 --- a/homeassistant/components/opower/coordinator.py +++ b/homeassistant/components/opower/coordinator.py @@ -1,4 +1,5 @@ """Coordinator to handle Opower connections.""" + from datetime import datetime, timedelta import logging import socket diff --git a/homeassistant/components/opower/sensor.py b/homeassistant/components/opower/sensor.py index 9940132dac2..1987abcc69d 100644 --- a/homeassistant/components/opower/sensor.py +++ b/homeassistant/components/opower/sensor.py @@ -1,4 +1,5 @@ """Support for Opower sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/opple/light.py b/homeassistant/components/opple/light.py index 0d42b35b83b..2fbbf6ae02a 100644 --- a/homeassistant/components/opple/light.py +++ b/homeassistant/components/opple/light.py @@ -1,4 +1,5 @@ """Support for the Opple light.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/oralb/__init__.py b/homeassistant/components/oralb/__init__.py index 23a022effef..29aa63410e5 100644 --- a/homeassistant/components/oralb/__init__.py +++ b/homeassistant/components/oralb/__init__.py @@ -1,4 +1,5 @@ """The OralB integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/oralb/config_flow.py b/homeassistant/components/oralb/config_flow.py index 41938cc0c49..ab5d919194e 100644 --- a/homeassistant/components/oralb/config_flow.py +++ b/homeassistant/components/oralb/config_flow.py @@ -1,4 +1,5 @@ """Config flow for oralb ble integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/oralb/device.py b/homeassistant/components/oralb/device.py index 3cc46fd27c6..0fb6b71981d 100644 --- a/homeassistant/components/oralb/device.py +++ b/homeassistant/components/oralb/device.py @@ -1,4 +1,5 @@ """Support for OralB devices.""" + from __future__ import annotations from oralb_ble import DeviceKey diff --git a/homeassistant/components/oralb/sensor.py b/homeassistant/components/oralb/sensor.py index f743122d0cb..b6e52c1284d 100644 --- a/homeassistant/components/oralb/sensor.py +++ b/homeassistant/components/oralb/sensor.py @@ -1,4 +1,5 @@ """Support for OralB sensors.""" + from __future__ import annotations from oralb_ble import OralBSensor, SensorUpdate diff --git a/homeassistant/components/oru/sensor.py b/homeassistant/components/oru/sensor.py index a971a8e461b..b1d814dd98a 100644 --- a/homeassistant/components/oru/sensor.py +++ b/homeassistant/components/oru/sensor.py @@ -1,4 +1,5 @@ """Platform for sensor integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/orvibo/switch.py b/homeassistant/components/orvibo/switch.py index 9e86d3787af..ece833b7036 100644 --- a/homeassistant/components/orvibo/switch.py +++ b/homeassistant/components/orvibo/switch.py @@ -1,4 +1,5 @@ """Support for Orvibo S20 Wifi Smart Switches.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/osoenergy/__init__.py b/homeassistant/components/osoenergy/__init__.py index f0b89eaea90..269fd6614b7 100644 --- a/homeassistant/components/osoenergy/__init__.py +++ b/homeassistant/components/osoenergy/__init__.py @@ -1,4 +1,5 @@ """Support for the OSO Energy devices and services.""" + from typing import Any, Generic, TypeVar from aiohttp.web_exceptions import HTTPException diff --git a/homeassistant/components/osoenergy/config_flow.py b/homeassistant/components/osoenergy/config_flow.py index 0591630c660..ce0932571e5 100644 --- a/homeassistant/components/osoenergy/config_flow.py +++ b/homeassistant/components/osoenergy/config_flow.py @@ -1,4 +1,5 @@ """Config Flow for OSO Energy.""" + from collections.abc import Mapping import logging from typing import Any diff --git a/homeassistant/components/osoenergy/water_heater.py b/homeassistant/components/osoenergy/water_heater.py index 4b2ad7c48d6..146bdaa3a60 100644 --- a/homeassistant/components/osoenergy/water_heater.py +++ b/homeassistant/components/osoenergy/water_heater.py @@ -1,4 +1,5 @@ """Support for OSO Energy water heaters.""" + from typing import Any from apyosoenergyapi.helper.const import OSOEnergyWaterHeaterData diff --git a/homeassistant/components/osramlightify/light.py b/homeassistant/components/osramlightify/light.py index 1c0a134831b..2f0ba1bccb4 100644 --- a/homeassistant/components/osramlightify/light.py +++ b/homeassistant/components/osramlightify/light.py @@ -1,4 +1,5 @@ """Support for Osram Lightify.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/otbr/__init__.py b/homeassistant/components/otbr/__init__.py index fe4cc8c1145..97c2f40eb99 100644 --- a/homeassistant/components/otbr/__init__.py +++ b/homeassistant/components/otbr/__init__.py @@ -1,4 +1,5 @@ """The Open Thread Border Router integration.""" + from __future__ import annotations import aiohttp diff --git a/homeassistant/components/otbr/config_flow.py b/homeassistant/components/otbr/config_flow.py index 98e6c18741f..9a70970bdb6 100644 --- a/homeassistant/components/otbr/config_flow.py +++ b/homeassistant/components/otbr/config_flow.py @@ -1,4 +1,5 @@ """Config flow for the Open Thread Border Router integration.""" + from __future__ import annotations from contextlib import suppress diff --git a/homeassistant/components/otbr/util.py b/homeassistant/components/otbr/util.py index 9c47df5eaf7..4374412b8c1 100644 --- a/homeassistant/components/otbr/util.py +++ b/homeassistant/components/otbr/util.py @@ -1,4 +1,5 @@ """Utility functions for the Open Thread Border Router integration.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/otp/sensor.py b/homeassistant/components/otp/sensor.py index 7c7c30df970..a9b4368d1e6 100644 --- a/homeassistant/components/otp/sensor.py +++ b/homeassistant/components/otp/sensor.py @@ -1,4 +1,5 @@ """Support for One-Time Password (OTP).""" + from __future__ import annotations import time diff --git a/homeassistant/components/ourgroceries/__init__.py b/homeassistant/components/ourgroceries/__init__.py index 472313aa315..5086a5cfc9b 100644 --- a/homeassistant/components/ourgroceries/__init__.py +++ b/homeassistant/components/ourgroceries/__init__.py @@ -1,4 +1,5 @@ """The OurGroceries integration.""" + from __future__ import annotations from aiohttp import ClientError diff --git a/homeassistant/components/ourgroceries/config_flow.py b/homeassistant/components/ourgroceries/config_flow.py index 2d95428ee59..98eae900db6 100644 --- a/homeassistant/components/ourgroceries/config_flow.py +++ b/homeassistant/components/ourgroceries/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OurGroceries integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ourgroceries/coordinator.py b/homeassistant/components/ourgroceries/coordinator.py index c583fb4d5b1..bc645b2bdb3 100644 --- a/homeassistant/components/ourgroceries/coordinator.py +++ b/homeassistant/components/ourgroceries/coordinator.py @@ -1,4 +1,5 @@ """The OurGroceries coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/overkiz/__init__.py b/homeassistant/components/overkiz/__init__.py index 03a81f67308..ce877e15261 100644 --- a/homeassistant/components/overkiz/__init__.py +++ b/homeassistant/components/overkiz/__init__.py @@ -1,4 +1,5 @@ """The Overkiz (by Somfy) integration.""" + from __future__ import annotations from collections import defaultdict diff --git a/homeassistant/components/overkiz/alarm_control_panel.py b/homeassistant/components/overkiz/alarm_control_panel.py index e2555308e34..ccb7c5d919e 100644 --- a/homeassistant/components/overkiz/alarm_control_panel.py +++ b/homeassistant/components/overkiz/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Overkiz alarm control panel.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/overkiz/binary_sensor.py b/homeassistant/components/overkiz/binary_sensor.py index 975ef4ff834..62bf88c5f9c 100644 --- a/homeassistant/components/overkiz/binary_sensor.py +++ b/homeassistant/components/overkiz/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Overkiz binary sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/overkiz/button.py b/homeassistant/components/overkiz/button.py index f8f33db7eed..3e0321b5055 100644 --- a/homeassistant/components/overkiz/button.py +++ b/homeassistant/components/overkiz/button.py @@ -1,4 +1,5 @@ """Support for Overkiz (virtual) buttons.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/overkiz/climate.py b/homeassistant/components/overkiz/climate.py index 2c24ca4f832..e23403c2162 100644 --- a/homeassistant/components/overkiz/climate.py +++ b/homeassistant/components/overkiz/climate.py @@ -1,4 +1,5 @@ """Support for Overkiz climate devices.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/overkiz/climate_entities/__init__.py b/homeassistant/components/overkiz/climate_entities/__init__.py index 72230c99a05..df997f7a68e 100644 --- a/homeassistant/components/overkiz/climate_entities/__init__.py +++ b/homeassistant/components/overkiz/climate_entities/__init__.py @@ -1,4 +1,5 @@ """Climate entities for the Overkiz (by Somfy) integration.""" + from enum import StrEnum, unique from pyoverkiz.enums import Protocol diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater.py b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater.py index 2678986574d..ce9857f9d8c 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater.py @@ -1,4 +1,5 @@ """Support for Atlantic Electrical Heater.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py index 36e958fb49c..47dc75710ec 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py @@ -1,4 +1,5 @@ """Support for Atlantic Electrical Heater (With Adjustable Temperature Setpoint).""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py index fefaa75a114..16568c0b1b7 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py @@ -1,4 +1,5 @@ """Support for Atlantic Electrical Towel Dryer.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.py b/homeassistant/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.py index 5876f7df4a7..698979672ea 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.py @@ -1,4 +1,5 @@ """Support for AtlanticHeatRecoveryVentilation.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py index 157ec72a249..72a9182974f 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py @@ -1,4 +1,5 @@ """Support for Atlantic Pass APC Heating Control.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py index cfb92067875..7fbab821b8d 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py @@ -1,4 +1,5 @@ """Support for Atlantic Pass APC Zone Control.""" + from typing import cast from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control_zone.py b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control_zone.py index a30cb93f287..c61c92a3c44 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control_zone.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control_zone.py @@ -1,4 +1,5 @@ """Support for Atlantic Pass APC Heating Control.""" + from __future__ import annotations from asyncio import sleep diff --git a/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py b/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py index 9b956acd014..efdae2165a9 100644 --- a/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py +++ b/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py @@ -1,4 +1,5 @@ """Support for HitachiAirToAirHeatPump.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py b/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py index bf6bb5f95d5..c1792a8e050 100644 --- a/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py +++ b/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py @@ -1,4 +1,5 @@ """Support for HitachiAirToAirHeatPump.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/climate_entities/somfy_heating_temperature_interface.py b/homeassistant/components/overkiz/climate_entities/somfy_heating_temperature_interface.py index f98865456e1..becb807d41a 100644 --- a/homeassistant/components/overkiz/climate_entities/somfy_heating_temperature_interface.py +++ b/homeassistant/components/overkiz/climate_entities/somfy_heating_temperature_interface.py @@ -1,4 +1,5 @@ """Support for Somfy Heating Temperature Interface.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/climate_entities/somfy_thermostat.py b/homeassistant/components/overkiz/climate_entities/somfy_thermostat.py index 2b6840b463d..615c618dd40 100644 --- a/homeassistant/components/overkiz/climate_entities/somfy_thermostat.py +++ b/homeassistant/components/overkiz/climate_entities/somfy_thermostat.py @@ -1,4 +1,5 @@ """Support for Somfy Smart Thermostat.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/climate_entities/valve_heating_temperature_interface.py b/homeassistant/components/overkiz/climate_entities/valve_heating_temperature_interface.py index 7b7493a37bb..893e4ca3d8e 100644 --- a/homeassistant/components/overkiz/climate_entities/valve_heating_temperature_interface.py +++ b/homeassistant/components/overkiz/climate_entities/valve_heating_temperature_interface.py @@ -1,4 +1,5 @@ """Support for ValveHeatingTemperatureInterface.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/config_flow.py b/homeassistant/components/overkiz/config_flow.py index e9abef5897a..f95f885f7ef 100644 --- a/homeassistant/components/overkiz/config_flow.py +++ b/homeassistant/components/overkiz/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Overkiz integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/overkiz/const.py b/homeassistant/components/overkiz/const.py index 0f30f64444b..59acc4ac232 100644 --- a/homeassistant/components/overkiz/const.py +++ b/homeassistant/components/overkiz/const.py @@ -1,4 +1,5 @@ """Constants for the Overkiz (by Somfy) integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/overkiz/coordinator.py b/homeassistant/components/overkiz/coordinator.py index 4630af8bbf8..17068d26b7c 100644 --- a/homeassistant/components/overkiz/coordinator.py +++ b/homeassistant/components/overkiz/coordinator.py @@ -1,4 +1,5 @@ """Helpers to help coordinate updates.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/overkiz/cover.py b/homeassistant/components/overkiz/cover.py index 4e741aa68e6..51d2c9f2334 100644 --- a/homeassistant/components/overkiz/cover.py +++ b/homeassistant/components/overkiz/cover.py @@ -1,4 +1,5 @@ """Support for Overkiz covers - shutters etc.""" + from pyoverkiz.enums import OverkizCommand, UIClass from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/overkiz/cover_entities/awning.py b/homeassistant/components/overkiz/cover_entities/awning.py index da940d59218..4b6e5b176a7 100644 --- a/homeassistant/components/overkiz/cover_entities/awning.py +++ b/homeassistant/components/overkiz/cover_entities/awning.py @@ -1,4 +1,5 @@ """Support for Overkiz awnings.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/cover_entities/generic_cover.py b/homeassistant/components/overkiz/cover_entities/generic_cover.py index f4a8a6a0d45..df13072524d 100644 --- a/homeassistant/components/overkiz/cover_entities/generic_cover.py +++ b/homeassistant/components/overkiz/cover_entities/generic_cover.py @@ -1,4 +1,5 @@ """Base class for Overkiz covers, shutters, awnings, etc.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/cover_entities/vertical_cover.py b/homeassistant/components/overkiz/cover_entities/vertical_cover.py index 2bc6f73103f..48ac2c838c5 100644 --- a/homeassistant/components/overkiz/cover_entities/vertical_cover.py +++ b/homeassistant/components/overkiz/cover_entities/vertical_cover.py @@ -1,4 +1,5 @@ """Support for Overkiz Vertical Covers.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/diagnostics.py b/homeassistant/components/overkiz/diagnostics.py index cb8cf6eb22f..427230b9c82 100644 --- a/homeassistant/components/overkiz/diagnostics.py +++ b/homeassistant/components/overkiz/diagnostics.py @@ -1,4 +1,5 @@ """Provides diagnostics for Overkiz.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/entity.py b/homeassistant/components/overkiz/entity.py index 3c0170e543f..c13b2fc96ba 100644 --- a/homeassistant/components/overkiz/entity.py +++ b/homeassistant/components/overkiz/entity.py @@ -1,4 +1,5 @@ """Parent class for every Overkiz device.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/overkiz/executor.py b/homeassistant/components/overkiz/executor.py index af29dbaf523..e11dc59cc27 100644 --- a/homeassistant/components/overkiz/executor.py +++ b/homeassistant/components/overkiz/executor.py @@ -1,4 +1,5 @@ """Class for helpers and communication with the OverKiz API.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/light.py b/homeassistant/components/overkiz/light.py index bb06b645d24..18d724dd63a 100644 --- a/homeassistant/components/overkiz/light.py +++ b/homeassistant/components/overkiz/light.py @@ -1,4 +1,5 @@ """Support for Overkiz lights.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/lock.py b/homeassistant/components/overkiz/lock.py index 8a333652b75..2494903d076 100644 --- a/homeassistant/components/overkiz/lock.py +++ b/homeassistant/components/overkiz/lock.py @@ -1,4 +1,5 @@ """Support for Overkiz locks.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/number.py b/homeassistant/components/overkiz/number.py index b53dbb5db75..1842a6cfcd2 100644 --- a/homeassistant/components/overkiz/number.py +++ b/homeassistant/components/overkiz/number.py @@ -1,4 +1,5 @@ """Support for Overkiz (virtual) numbers.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/overkiz/scene.py b/homeassistant/components/overkiz/scene.py index 464b19d87e6..8cbbb9dbe5d 100644 --- a/homeassistant/components/overkiz/scene.py +++ b/homeassistant/components/overkiz/scene.py @@ -1,4 +1,5 @@ """Support for Overkiz scenes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/select.py b/homeassistant/components/overkiz/select.py index c225d475f63..78bcb3b3e0a 100644 --- a/homeassistant/components/overkiz/select.py +++ b/homeassistant/components/overkiz/select.py @@ -1,4 +1,5 @@ """Support for Overkiz select.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/overkiz/sensor.py b/homeassistant/components/overkiz/sensor.py index 3f1de4c381e..b8693784395 100644 --- a/homeassistant/components/overkiz/sensor.py +++ b/homeassistant/components/overkiz/sensor.py @@ -1,4 +1,5 @@ """Support for Overkiz sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/overkiz/siren.py b/homeassistant/components/overkiz/siren.py index f60eb04cfd3..a7ba41e2fef 100644 --- a/homeassistant/components/overkiz/siren.py +++ b/homeassistant/components/overkiz/siren.py @@ -1,4 +1,5 @@ """Support for Overkiz sirens.""" + from typing import Any from pyoverkiz.enums import OverkizState diff --git a/homeassistant/components/overkiz/switch.py b/homeassistant/components/overkiz/switch.py index 0396e385a3c..185c20824eb 100644 --- a/homeassistant/components/overkiz/switch.py +++ b/homeassistant/components/overkiz/switch.py @@ -1,4 +1,5 @@ """Support for Overkiz switches.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/overkiz/water_heater.py b/homeassistant/components/overkiz/water_heater.py index e22f442c266..c76f6d5099f 100644 --- a/homeassistant/components/overkiz/water_heater.py +++ b/homeassistant/components/overkiz/water_heater.py @@ -1,4 +1,5 @@ """Support for Overkiz water heater devices.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/overkiz/water_heater_entities/__init__.py b/homeassistant/components/overkiz/water_heater_entities/__init__.py index 71b66f6ea93..6f6539ef659 100644 --- a/homeassistant/components/overkiz/water_heater_entities/__init__.py +++ b/homeassistant/components/overkiz/water_heater_entities/__init__.py @@ -1,4 +1,5 @@ """Water heater entities for the Overkiz (by Somfy) integration.""" + from pyoverkiz.enums.ui import UIWidget from .atlantic_pass_apc_dhw import AtlanticPassAPCDHW diff --git a/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py b/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py index 2285e2dc3d2..abd3f40adc2 100644 --- a/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py +++ b/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py @@ -1,4 +1,5 @@ """Support for DomesticHotWaterProduction.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py b/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py index 0dd5b70feb6..9f0a8798233 100644 --- a/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py +++ b/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py @@ -1,4 +1,5 @@ """Support for Hitachi DHW.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ovo_energy/__init__.py b/homeassistant/components/ovo_energy/__init__.py index 3e2e868728d..6ad39ad82cb 100644 --- a/homeassistant/components/ovo_energy/__init__.py +++ b/homeassistant/components/ovo_energy/__init__.py @@ -1,4 +1,5 @@ """Support for OVO Energy.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/ovo_energy/config_flow.py b/homeassistant/components/ovo_energy/config_flow.py index 8070dfaac6e..41c64913764 100644 --- a/homeassistant/components/ovo_energy/config_flow.py +++ b/homeassistant/components/ovo_energy/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the OVO Energy integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/ovo_energy/sensor.py b/homeassistant/components/ovo_energy/sensor.py index 059ced8477e..76c084b368f 100644 --- a/homeassistant/components/ovo_energy/sensor.py +++ b/homeassistant/components/ovo_energy/sensor.py @@ -1,4 +1,5 @@ """Support for OVO Energy sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/owntracks/__init__.py b/homeassistant/components/owntracks/__init__.py index 1b3d67ce7b4..dbc4df293c0 100644 --- a/homeassistant/components/owntracks/__init__.py +++ b/homeassistant/components/owntracks/__init__.py @@ -1,4 +1,5 @@ """Support for OwnTracks.""" + from collections import defaultdict import json import logging diff --git a/homeassistant/components/owntracks/device_tracker.py b/homeassistant/components/owntracks/device_tracker.py index e2053868cb9..8471f734196 100644 --- a/homeassistant/components/owntracks/device_tracker.py +++ b/homeassistant/components/owntracks/device_tracker.py @@ -1,4 +1,5 @@ """Device tracker platform that adds support for OwnTracks over MQTT.""" + from homeassistant.components.device_tracker import ( ATTR_SOURCE_TYPE, DOMAIN, diff --git a/homeassistant/components/p1_monitor/__init__.py b/homeassistant/components/p1_monitor/__init__.py index 18c58525097..201e76d4a76 100644 --- a/homeassistant/components/p1_monitor/__init__.py +++ b/homeassistant/components/p1_monitor/__init__.py @@ -1,4 +1,5 @@ """The P1 Monitor integration.""" + from __future__ import annotations from typing import TypedDict diff --git a/homeassistant/components/p1_monitor/config_flow.py b/homeassistant/components/p1_monitor/config_flow.py index 230cd57d614..9c039d06b94 100644 --- a/homeassistant/components/p1_monitor/config_flow.py +++ b/homeassistant/components/p1_monitor/config_flow.py @@ -1,4 +1,5 @@ """Config flow for P1 Monitor integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/p1_monitor/const.py b/homeassistant/components/p1_monitor/const.py index 045301d38c4..297a06a9629 100644 --- a/homeassistant/components/p1_monitor/const.py +++ b/homeassistant/components/p1_monitor/const.py @@ -1,4 +1,5 @@ """Constants for the P1 Monitor integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/p1_monitor/diagnostics.py b/homeassistant/components/p1_monitor/diagnostics.py index b2668f060a4..b1b3bd2a506 100644 --- a/homeassistant/components/p1_monitor/diagnostics.py +++ b/homeassistant/components/p1_monitor/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for P1 Monitor.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/p1_monitor/sensor.py b/homeassistant/components/p1_monitor/sensor.py index 4108194aced..b97383bdae5 100644 --- a/homeassistant/components/p1_monitor/sensor.py +++ b/homeassistant/components/p1_monitor/sensor.py @@ -1,4 +1,5 @@ """Support for P1 Monitor sensors.""" + from __future__ import annotations from typing import Literal diff --git a/homeassistant/components/panasonic_bluray/media_player.py b/homeassistant/components/panasonic_bluray/media_player.py index ae017e7d72c..a121da93486 100644 --- a/homeassistant/components/panasonic_bluray/media_player.py +++ b/homeassistant/components/panasonic_bluray/media_player.py @@ -1,4 +1,5 @@ """Support for Panasonic Blu-ray players.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/panasonic_viera/__init__.py b/homeassistant/components/panasonic_viera/__init__.py index 6504aad7509..7d224c7126f 100644 --- a/homeassistant/components/panasonic_viera/__init__.py +++ b/homeassistant/components/panasonic_viera/__init__.py @@ -1,4 +1,5 @@ """The Panasonic Viera integration.""" + from functools import partial import logging from urllib.error import HTTPError, URLError diff --git a/homeassistant/components/panasonic_viera/config_flow.py b/homeassistant/components/panasonic_viera/config_flow.py index 35719f4cbfd..c06de119244 100644 --- a/homeassistant/components/panasonic_viera/config_flow.py +++ b/homeassistant/components/panasonic_viera/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Panasonic Viera TV integration.""" + from functools import partial import logging from urllib.error import URLError diff --git a/homeassistant/components/panasonic_viera/media_player.py b/homeassistant/components/panasonic_viera/media_player.py index 9e7fe4168ab..44063022129 100644 --- a/homeassistant/components/panasonic_viera/media_player.py +++ b/homeassistant/components/panasonic_viera/media_player.py @@ -1,4 +1,5 @@ """Media player support for Panasonic Viera TV.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/panasonic_viera/remote.py b/homeassistant/components/panasonic_viera/remote.py index b0512ededce..c47dce36306 100644 --- a/homeassistant/components/panasonic_viera/remote.py +++ b/homeassistant/components/panasonic_viera/remote.py @@ -1,4 +1,5 @@ """Remote control support for Panasonic Viera TV.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/pandora/media_player.py b/homeassistant/components/pandora/media_player.py index 7b09f40c3f1..eb6815959c2 100644 --- a/homeassistant/components/pandora/media_player.py +++ b/homeassistant/components/pandora/media_player.py @@ -1,4 +1,5 @@ """Component for controlling Pandora stations through the pianobar client.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/panel_custom/__init__.py b/homeassistant/components/panel_custom/__init__.py index 4f084d5900a..89ad6066f48 100644 --- a/homeassistant/components/panel_custom/__init__.py +++ b/homeassistant/components/panel_custom/__init__.py @@ -1,4 +1,5 @@ """Register a custom front end panel.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/peco/__init__.py b/homeassistant/components/peco/__init__.py index 52e988f0f60..168b045ff4d 100644 --- a/homeassistant/components/peco/__init__.py +++ b/homeassistant/components/peco/__init__.py @@ -1,4 +1,5 @@ """The PECO Outage Counter integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/peco/binary_sensor.py b/homeassistant/components/peco/binary_sensor.py index 7f0402b207f..a55f0fcc731 100644 --- a/homeassistant/components/peco/binary_sensor.py +++ b/homeassistant/components/peco/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensor for PECO outage counter.""" + from __future__ import annotations from typing import Final diff --git a/homeassistant/components/peco/config_flow.py b/homeassistant/components/peco/config_flow.py index 6fd4bfc0fe4..a5e8f4451fd 100644 --- a/homeassistant/components/peco/config_flow.py +++ b/homeassistant/components/peco/config_flow.py @@ -1,4 +1,5 @@ """Config flow for PECO Outage Counter integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/peco/sensor.py b/homeassistant/components/peco/sensor.py index ed6540b9eb1..60a3a07212d 100644 --- a/homeassistant/components/peco/sensor.py +++ b/homeassistant/components/peco/sensor.py @@ -1,4 +1,5 @@ """Sensor component for PECO outage counter.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/pegel_online/__init__.py b/homeassistant/components/pegel_online/__init__.py index e9e0e9d6aae..38b952293e0 100644 --- a/homeassistant/components/pegel_online/__init__.py +++ b/homeassistant/components/pegel_online/__init__.py @@ -1,4 +1,5 @@ """The PEGELONLINE component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pegel_online/config_flow.py b/homeassistant/components/pegel_online/config_flow.py index b0ce4cc3f38..440d1fbddf9 100644 --- a/homeassistant/components/pegel_online/config_flow.py +++ b/homeassistant/components/pegel_online/config_flow.py @@ -1,4 +1,5 @@ """Config flow for PEGELONLINE.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pegel_online/const.py b/homeassistant/components/pegel_online/const.py index 1e6c26a057b..ae7ef1f032a 100644 --- a/homeassistant/components/pegel_online/const.py +++ b/homeassistant/components/pegel_online/const.py @@ -1,4 +1,5 @@ """Constants for PEGELONLINE.""" + from datetime import timedelta DOMAIN = "pegel_online" diff --git a/homeassistant/components/pegel_online/entity.py b/homeassistant/components/pegel_online/entity.py index e9c4ebdb909..4ad12f12913 100644 --- a/homeassistant/components/pegel_online/entity.py +++ b/homeassistant/components/pegel_online/entity.py @@ -1,4 +1,5 @@ """The PEGELONLINE base entity.""" + from __future__ import annotations from homeassistant.helpers.device_registry import DeviceInfo diff --git a/homeassistant/components/pegel_online/sensor.py b/homeassistant/components/pegel_online/sensor.py index 657baf29c9f..b2b922f3d23 100644 --- a/homeassistant/components/pegel_online/sensor.py +++ b/homeassistant/components/pegel_online/sensor.py @@ -1,4 +1,5 @@ """PEGELONLINE sensor entities.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/pencom/switch.py b/homeassistant/components/pencom/switch.py index 064ac43e6b8..a1ec25a58e9 100644 --- a/homeassistant/components/pencom/switch.py +++ b/homeassistant/components/pencom/switch.py @@ -1,4 +1,5 @@ """Pencom relay control.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/permobil/__init__.py b/homeassistant/components/permobil/__init__.py index 18025220852..675a803ce91 100644 --- a/homeassistant/components/permobil/__init__.py +++ b/homeassistant/components/permobil/__init__.py @@ -1,4 +1,5 @@ """The MyPermobil integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/permobil/binary_sensor.py b/homeassistant/components/permobil/binary_sensor.py index afa17bde04f..4b768cf5af5 100644 --- a/homeassistant/components/permobil/binary_sensor.py +++ b/homeassistant/components/permobil/binary_sensor.py @@ -1,4 +1,5 @@ """Platform for binary sensor integration.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/permobil/config_flow.py b/homeassistant/components/permobil/config_flow.py index d70365a9ca1..cb47640e55f 100644 --- a/homeassistant/components/permobil/config_flow.py +++ b/homeassistant/components/permobil/config_flow.py @@ -1,4 +1,5 @@ """Config flow for MyPermobil integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/permobil/sensor.py b/homeassistant/components/permobil/sensor.py index 6b783f3a385..ce9cf906f37 100644 --- a/homeassistant/components/permobil/sensor.py +++ b/homeassistant/components/permobil/sensor.py @@ -1,4 +1,5 @@ """Platform for sensor integration.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/persistent_notification/__init__.py b/homeassistant/components/persistent_notification/__init__.py index 6d6fb7bfbd6..25e5385cc0d 100644 --- a/homeassistant/components/persistent_notification/__init__.py +++ b/homeassistant/components/persistent_notification/__init__.py @@ -1,4 +1,5 @@ """Support for displaying persistent notifications.""" + from __future__ import annotations from collections.abc import Callable, Mapping diff --git a/homeassistant/components/persistent_notification/trigger.py b/homeassistant/components/persistent_notification/trigger.py index 4c9c2bd9204..431443d9139 100644 --- a/homeassistant/components/persistent_notification/trigger.py +++ b/homeassistant/components/persistent_notification/trigger.py @@ -1,4 +1,5 @@ """Offer persistent_notifications triggered automation rules.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/person/__init__.py b/homeassistant/components/person/__init__.py index 2075c3fc713..b2511a3cf30 100644 --- a/homeassistant/components/person/__init__.py +++ b/homeassistant/components/person/__init__.py @@ -1,4 +1,5 @@ """Support for tracking people.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/person/significant_change.py b/homeassistant/components/person/significant_change.py index 680b9194144..c6720bcc4ff 100644 --- a/homeassistant/components/person/significant_change.py +++ b/homeassistant/components/person/significant_change.py @@ -1,4 +1,5 @@ """Helper to test significant Person state changes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/philips_js/__init__.py b/homeassistant/components/philips_js/__init__.py index c8540a187da..e56d1cdc651 100644 --- a/homeassistant/components/philips_js/__init__.py +++ b/homeassistant/components/philips_js/__init__.py @@ -1,4 +1,5 @@ """The Philips TV integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/philips_js/binary_sensor.py b/homeassistant/components/philips_js/binary_sensor.py index 678ba9d98f1..d1004cfd00b 100644 --- a/homeassistant/components/philips_js/binary_sensor.py +++ b/homeassistant/components/philips_js/binary_sensor.py @@ -1,4 +1,5 @@ """Philips TV binary sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/philips_js/config_flow.py b/homeassistant/components/philips_js/config_flow.py index fd308427ef4..ed0fce05f46 100644 --- a/homeassistant/components/philips_js/config_flow.py +++ b/homeassistant/components/philips_js/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Philips TV integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/philips_js/device_trigger.py b/homeassistant/components/philips_js/device_trigger.py index bdf47674bc8..4c2ec9b95db 100644 --- a/homeassistant/components/philips_js/device_trigger.py +++ b/homeassistant/components/philips_js/device_trigger.py @@ -1,4 +1,5 @@ """Provides device automations for control of device.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/philips_js/diagnostics.py b/homeassistant/components/philips_js/diagnostics.py index 889b8e47e3f..34cc71c9b94 100644 --- a/homeassistant/components/philips_js/diagnostics.py +++ b/homeassistant/components/philips_js/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Philips JS.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/philips_js/entity.py b/homeassistant/components/philips_js/entity.py index c2645974f49..e0d97f940d0 100644 --- a/homeassistant/components/philips_js/entity.py +++ b/homeassistant/components/philips_js/entity.py @@ -1,4 +1,5 @@ """Base Philips js entity.""" + from __future__ import annotations from homeassistant.helpers.update_coordinator import CoordinatorEntity diff --git a/homeassistant/components/philips_js/light.py b/homeassistant/components/philips_js/light.py index 7803938cf7e..6a91b872913 100644 --- a/homeassistant/components/philips_js/light.py +++ b/homeassistant/components/philips_js/light.py @@ -1,4 +1,5 @@ """Component to integrate ambilight for TVs exposing the Joint Space API.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/philips_js/media_player.py b/homeassistant/components/philips_js/media_player.py index 6ee70b03d54..c8b89d57854 100644 --- a/homeassistant/components/philips_js/media_player.py +++ b/homeassistant/components/philips_js/media_player.py @@ -1,4 +1,5 @@ """Media Player component to integrate TVs exposing the Joint Space API.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/philips_js/remote.py b/homeassistant/components/philips_js/remote.py index c5b24089809..5972724c54b 100644 --- a/homeassistant/components/philips_js/remote.py +++ b/homeassistant/components/philips_js/remote.py @@ -1,4 +1,5 @@ """Remote control support for Apple TV.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/philips_js/switch.py b/homeassistant/components/philips_js/switch.py index 71548c8238e..697e7f2f060 100644 --- a/homeassistant/components/philips_js/switch.py +++ b/homeassistant/components/philips_js/switch.py @@ -1,4 +1,5 @@ """Philips TV menu switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pi_hole/__init__.py b/homeassistant/components/pi_hole/__init__.py index c57b969ce9c..f892114b26c 100644 --- a/homeassistant/components/pi_hole/__init__.py +++ b/homeassistant/components/pi_hole/__init__.py @@ -1,4 +1,5 @@ """The pi_hole component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pi_hole/binary_sensor.py b/homeassistant/components/pi_hole/binary_sensor.py index 42a52d07656..4c49cf3a98d 100644 --- a/homeassistant/components/pi_hole/binary_sensor.py +++ b/homeassistant/components/pi_hole/binary_sensor.py @@ -1,4 +1,5 @@ """Support for getting status from a Pi-hole system.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/pi_hole/config_flow.py b/homeassistant/components/pi_hole/config_flow.py index 446191ed0ae..d6f42d57deb 100644 --- a/homeassistant/components/pi_hole/config_flow.py +++ b/homeassistant/components/pi_hole/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Pi-hole integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pi_hole/const.py b/homeassistant/components/pi_hole/const.py index 0114a6621b5..b6c97bc6118 100644 --- a/homeassistant/components/pi_hole/const.py +++ b/homeassistant/components/pi_hole/const.py @@ -1,4 +1,5 @@ """Constants for the pi_hole integration.""" + from datetime import timedelta DOMAIN = "pi_hole" diff --git a/homeassistant/components/pi_hole/diagnostics.py b/homeassistant/components/pi_hole/diagnostics.py index 8b3c32b0ac2..46efebaf475 100644 --- a/homeassistant/components/pi_hole/diagnostics.py +++ b/homeassistant/components/pi_hole/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for the Pi-hole integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pi_hole/sensor.py b/homeassistant/components/pi_hole/sensor.py index 9584c23af38..a62252d10c1 100644 --- a/homeassistant/components/pi_hole/sensor.py +++ b/homeassistant/components/pi_hole/sensor.py @@ -1,4 +1,5 @@ """Support for getting statistical data from a Pi-hole system.""" + from __future__ import annotations from hole import Hole diff --git a/homeassistant/components/pi_hole/switch.py b/homeassistant/components/pi_hole/switch.py index dc699beb26b..963ee7c9738 100644 --- a/homeassistant/components/pi_hole/switch.py +++ b/homeassistant/components/pi_hole/switch.py @@ -1,4 +1,5 @@ """Support for turning on and off Pi-hole system.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pi_hole/update.py b/homeassistant/components/pi_hole/update.py index b559a1cf806..75d4f91f2be 100644 --- a/homeassistant/components/pi_hole/update.py +++ b/homeassistant/components/pi_hole/update.py @@ -1,4 +1,5 @@ """Support for update entities of a Pi-hole system.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/picnic/config_flow.py b/homeassistant/components/picnic/config_flow.py index f28b4dfed4d..1900f39306d 100644 --- a/homeassistant/components/picnic/config_flow.py +++ b/homeassistant/components/picnic/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Picnic integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/picnic/const.py b/homeassistant/components/picnic/const.py index 851df6f41b2..4e8eafd8912 100644 --- a/homeassistant/components/picnic/const.py +++ b/homeassistant/components/picnic/const.py @@ -1,4 +1,5 @@ """Constants for the Picnic integration.""" + from __future__ import annotations DOMAIN = "picnic" diff --git a/homeassistant/components/picnic/sensor.py b/homeassistant/components/picnic/sensor.py index 56d2d22cf29..9127d82ba8f 100644 --- a/homeassistant/components/picnic/sensor.py +++ b/homeassistant/components/picnic/sensor.py @@ -1,4 +1,5 @@ """Definition of Picnic sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/picnic/services.py b/homeassistant/components/picnic/services.py index 03b7576703d..f820daee54b 100644 --- a/homeassistant/components/picnic/services.py +++ b/homeassistant/components/picnic/services.py @@ -1,4 +1,5 @@ """Services for the Picnic integration.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/picnic/todo.py b/homeassistant/components/picnic/todo.py index fea99f7403d..2992c016148 100644 --- a/homeassistant/components/picnic/todo.py +++ b/homeassistant/components/picnic/todo.py @@ -1,4 +1,5 @@ """Definition of Picnic shopping cart.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pilight/__init__.py b/homeassistant/components/pilight/__init__.py index f4d2e539b6a..1f1eee0c92a 100644 --- a/homeassistant/components/pilight/__init__.py +++ b/homeassistant/components/pilight/__init__.py @@ -1,4 +1,5 @@ """Component to create an interface to a Pilight daemon.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/pilight/binary_sensor.py b/homeassistant/components/pilight/binary_sensor.py index 303c755a035..0ddb2de4603 100644 --- a/homeassistant/components/pilight/binary_sensor.py +++ b/homeassistant/components/pilight/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Pilight binary sensors.""" + from __future__ import annotations import datetime diff --git a/homeassistant/components/pilight/light.py b/homeassistant/components/pilight/light.py index bcb2197db19..60713b59475 100644 --- a/homeassistant/components/pilight/light.py +++ b/homeassistant/components/pilight/light.py @@ -1,4 +1,5 @@ """Support for switching devices via Pilight to on and off.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pilight/sensor.py b/homeassistant/components/pilight/sensor.py index 21036a94210..003e3428bdd 100644 --- a/homeassistant/components/pilight/sensor.py +++ b/homeassistant/components/pilight/sensor.py @@ -1,4 +1,5 @@ """Support for Pilight sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pilight/switch.py b/homeassistant/components/pilight/switch.py index 75d286afad2..0d0023d9cd6 100644 --- a/homeassistant/components/pilight/switch.py +++ b/homeassistant/components/pilight/switch.py @@ -1,4 +1,5 @@ """Support for switching devices via Pilight to on and off.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/ping/__init__.py b/homeassistant/components/ping/__init__.py index 9aaf8ffbd99..e75b36dc38d 100644 --- a/homeassistant/components/ping/__init__.py +++ b/homeassistant/components/ping/__init__.py @@ -1,4 +1,5 @@ """The ping component.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/ping/binary_sensor.py b/homeassistant/components/ping/binary_sensor.py index 5c1435cc3b1..35d4e218dce 100644 --- a/homeassistant/components/ping/binary_sensor.py +++ b/homeassistant/components/ping/binary_sensor.py @@ -1,4 +1,5 @@ """Tracks the latency of a host by sending ICMP echo requests (ping).""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ping/config_flow.py b/homeassistant/components/ping/config_flow.py index 4163f710f2e..52600c379c4 100644 --- a/homeassistant/components/ping/config_flow.py +++ b/homeassistant/components/ping/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Ping (ICMP) integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/ping/coordinator.py b/homeassistant/components/ping/coordinator.py index 57e212ed69d..38ab2e79ffc 100644 --- a/homeassistant/components/ping/coordinator.py +++ b/homeassistant/components/ping/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the ping integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/ping/device_tracker.py b/homeassistant/components/ping/device_tracker.py index 6b904043b30..b202c1c406e 100644 --- a/homeassistant/components/ping/device_tracker.py +++ b/homeassistant/components/ping/device_tracker.py @@ -1,4 +1,5 @@ """Tracks devices by sending a ICMP echo request (ping).""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/ping/entity.py b/homeassistant/components/ping/entity.py index 8854634e898..34207b284bb 100644 --- a/homeassistant/components/ping/entity.py +++ b/homeassistant/components/ping/entity.py @@ -1,4 +1,5 @@ """Base entity for the Ping component.""" + from homeassistant.config_entries import ConfigEntry from homeassistant.core import DOMAIN from homeassistant.helpers.device_registry import DeviceInfo diff --git a/homeassistant/components/ping/sensor.py b/homeassistant/components/ping/sensor.py index f5e5de81aac..135087f4b5b 100644 --- a/homeassistant/components/ping/sensor.py +++ b/homeassistant/components/ping/sensor.py @@ -1,4 +1,5 @@ """Sensor platform that for Ping integration.""" + from collections.abc import Callable from dataclasses import dataclass diff --git a/homeassistant/components/pioneer/media_player.py b/homeassistant/components/pioneer/media_player.py index 741d2b580e4..15cd3cbf303 100644 --- a/homeassistant/components/pioneer/media_player.py +++ b/homeassistant/components/pioneer/media_player.py @@ -1,4 +1,5 @@ """Support for Pioneer Network Receivers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pjlink/media_player.py b/homeassistant/components/pjlink/media_player.py index 1a7ff877bb8..ff3be3266a0 100644 --- a/homeassistant/components/pjlink/media_player.py +++ b/homeassistant/components/pjlink/media_player.py @@ -1,4 +1,5 @@ """Support for controlling projector via the PJLink protocol.""" + from __future__ import annotations from pypjlink import MUTE_AUDIO, Projector diff --git a/homeassistant/components/plaato/__init__.py b/homeassistant/components/plaato/__init__.py index 69c65383138..0d8678d95ef 100644 --- a/homeassistant/components/plaato/__init__.py +++ b/homeassistant/components/plaato/__init__.py @@ -1,4 +1,5 @@ """Support for Plaato devices.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/plaato/binary_sensor.py b/homeassistant/components/plaato/binary_sensor.py index e8fbaa5d6f1..42019bbec9b 100644 --- a/homeassistant/components/plaato/binary_sensor.py +++ b/homeassistant/components/plaato/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Plaato Airlock sensors.""" + from __future__ import annotations from pyplaato.plaato import PlaatoKeg diff --git a/homeassistant/components/plaato/config_flow.py b/homeassistant/components/plaato/config_flow.py index df99f604146..1240abc5e81 100644 --- a/homeassistant/components/plaato/config_flow.py +++ b/homeassistant/components/plaato/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Plaato.""" + from __future__ import annotations from pyplaato.plaato import PlaatoDeviceType diff --git a/homeassistant/components/plaato/const.py b/homeassistant/components/plaato/const.py index 6825baff906..73382765bfe 100644 --- a/homeassistant/components/plaato/const.py +++ b/homeassistant/components/plaato/const.py @@ -1,4 +1,5 @@ """Const for Plaato.""" + from datetime import timedelta from homeassistant.const import Platform diff --git a/homeassistant/components/plaato/entity.py b/homeassistant/components/plaato/entity.py index b7650567c2b..d4c4622a998 100644 --- a/homeassistant/components/plaato/entity.py +++ b/homeassistant/components/plaato/entity.py @@ -1,4 +1,5 @@ """PlaatoEntity class.""" + from pyplaato.models.device import PlaatoDevice from homeassistant.helpers import entity diff --git a/homeassistant/components/plaato/sensor.py b/homeassistant/components/plaato/sensor.py index f3d9a5c3e41..7aa30dd2fe0 100644 --- a/homeassistant/components/plaato/sensor.py +++ b/homeassistant/components/plaato/sensor.py @@ -1,4 +1,5 @@ """Support for Plaato Airlock sensors.""" + from __future__ import annotations from pyplaato.models.device import PlaatoDevice diff --git a/homeassistant/components/plant/__init__.py b/homeassistant/components/plant/__init__.py index 28cdece0b02..5d79f8d303a 100644 --- a/homeassistant/components/plant/__init__.py +++ b/homeassistant/components/plant/__init__.py @@ -1,4 +1,5 @@ """Support for monitoring plants.""" + from collections import deque from contextlib import suppress from datetime import datetime, timedelta diff --git a/homeassistant/components/plant/const.py b/homeassistant/components/plant/const.py index 0368c55e152..656705b3d12 100644 --- a/homeassistant/components/plant/const.py +++ b/homeassistant/components/plant/const.py @@ -1,4 +1,5 @@ """Const for Plant.""" + from typing import Final DOMAIN: Final = "plant" diff --git a/homeassistant/components/plex/__init__.py b/homeassistant/components/plex/__init__.py index 4ce5a359dcd..4e17e4032aa 100644 --- a/homeassistant/components/plex/__init__.py +++ b/homeassistant/components/plex/__init__.py @@ -1,4 +1,5 @@ """Support to embed Plex.""" + from functools import partial import logging diff --git a/homeassistant/components/plex/button.py b/homeassistant/components/plex/button.py index 24bc09bac42..8bb34be38ce 100644 --- a/homeassistant/components/plex/button.py +++ b/homeassistant/components/plex/button.py @@ -1,4 +1,5 @@ """Representation of Plex buttons.""" + from __future__ import annotations from homeassistant.components.button import ButtonEntity diff --git a/homeassistant/components/plex/cast.py b/homeassistant/components/plex/cast.py index 7dc112b72de..bf68be20292 100644 --- a/homeassistant/components/plex/cast.py +++ b/homeassistant/components/plex/cast.py @@ -1,4 +1,5 @@ """Google Cast support for the Plex component.""" + from __future__ import annotations from pychromecast import Chromecast diff --git a/homeassistant/components/plex/config_flow.py b/homeassistant/components/plex/config_flow.py index 1bc72b9e639..301716e14d5 100644 --- a/homeassistant/components/plex/config_flow.py +++ b/homeassistant/components/plex/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Plex.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/plex/const.py b/homeassistant/components/plex/const.py index 30b59c73994..8dc75a447af 100644 --- a/homeassistant/components/plex/const.py +++ b/homeassistant/components/plex/const.py @@ -1,4 +1,5 @@ """Constants for the Plex component.""" + from datetime import timedelta from typing import Final diff --git a/homeassistant/components/plex/errors.py b/homeassistant/components/plex/errors.py index ddbc1a2ea40..c1e1a186b9e 100644 --- a/homeassistant/components/plex/errors.py +++ b/homeassistant/components/plex/errors.py @@ -1,4 +1,5 @@ """Errors for the Plex component.""" + from homeassistant.exceptions import HomeAssistantError diff --git a/homeassistant/components/plex/helpers.py b/homeassistant/components/plex/helpers.py index 6a334c5ff61..f51350ac597 100644 --- a/homeassistant/components/plex/helpers.py +++ b/homeassistant/components/plex/helpers.py @@ -1,4 +1,5 @@ """Helper methods for common Plex integration operations.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/plex/media_browser.py b/homeassistant/components/plex/media_browser.py index d3a0cc0fb2e..e5bbb9284ff 100644 --- a/homeassistant/components/plex/media_browser.py +++ b/homeassistant/components/plex/media_browser.py @@ -1,4 +1,5 @@ """Support to interface with the Plex API.""" + from __future__ import annotations from yarl import URL diff --git a/homeassistant/components/plex/media_player.py b/homeassistant/components/plex/media_player.py index 3e817b4ea1a..21e52171fe8 100644 --- a/homeassistant/components/plex/media_player.py +++ b/homeassistant/components/plex/media_player.py @@ -1,4 +1,5 @@ """Support to interface with the Plex API.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/plex/media_search.py b/homeassistant/components/plex/media_search.py index a853bac33a5..bd785a08907 100644 --- a/homeassistant/components/plex/media_search.py +++ b/homeassistant/components/plex/media_search.py @@ -1,4 +1,5 @@ """Helper methods to search for Plex media.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/plex/sensor.py b/homeassistant/components/plex/sensor.py index 350e0a2dce2..74fab3b1714 100644 --- a/homeassistant/components/plex/sensor.py +++ b/homeassistant/components/plex/sensor.py @@ -1,4 +1,5 @@ """Support for Plex media server monitoring.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/plex/server.py b/homeassistant/components/plex/server.py index 1c3c944c9c4..bd2aa7063dd 100644 --- a/homeassistant/components/plex/server.py +++ b/homeassistant/components/plex/server.py @@ -1,4 +1,5 @@ """Shared class to maintain Plex server instances.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/plex/view.py b/homeassistant/components/plex/view.py index 49c0af1c48e..c1254a9795a 100644 --- a/homeassistant/components/plex/view.py +++ b/homeassistant/components/plex/view.py @@ -1,4 +1,5 @@ """Implement a view to provide proxied Plex thumbnails to the media browser.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/plugwise/__init__.py b/homeassistant/components/plugwise/__init__.py index bfae7772b93..28389ffa357 100644 --- a/homeassistant/components/plugwise/__init__.py +++ b/homeassistant/components/plugwise/__init__.py @@ -1,4 +1,5 @@ """Plugwise platform for Home Assistant Core.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/plugwise/binary_sensor.py b/homeassistant/components/plugwise/binary_sensor.py index c362652cf47..d32ae94160f 100644 --- a/homeassistant/components/plugwise/binary_sensor.py +++ b/homeassistant/components/plugwise/binary_sensor.py @@ -1,4 +1,5 @@ """Plugwise Binary Sensor component for Home Assistant.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/plugwise/climate.py b/homeassistant/components/plugwise/climate.py index 3553df02e8d..7820c86a242 100644 --- a/homeassistant/components/plugwise/climate.py +++ b/homeassistant/components/plugwise/climate.py @@ -1,4 +1,5 @@ """Plugwise Climate component for Home Assistant.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/plugwise/config_flow.py b/homeassistant/components/plugwise/config_flow.py index 48a932ad466..4c33e51788f 100644 --- a/homeassistant/components/plugwise/config_flow.py +++ b/homeassistant/components/plugwise/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Plugwise integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/plugwise/const.py b/homeassistant/components/plugwise/const.py index cad891f16f2..975ddae346a 100644 --- a/homeassistant/components/plugwise/const.py +++ b/homeassistant/components/plugwise/const.py @@ -1,4 +1,5 @@ """Constants for Plugwise component.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/plugwise/coordinator.py b/homeassistant/components/plugwise/coordinator.py index 395ec4e6e63..15a0e8c4821 100644 --- a/homeassistant/components/plugwise/coordinator.py +++ b/homeassistant/components/plugwise/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for Plugwise.""" + from datetime import timedelta from plugwise import PlugwiseData, Smile diff --git a/homeassistant/components/plugwise/diagnostics.py b/homeassistant/components/plugwise/diagnostics.py index ef54efbe96d..44c0fa9a1da 100644 --- a/homeassistant/components/plugwise/diagnostics.py +++ b/homeassistant/components/plugwise/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Plugwise.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/plugwise/entity.py b/homeassistant/components/plugwise/entity.py index 1c9149fad72..b2562ef8f39 100644 --- a/homeassistant/components/plugwise/entity.py +++ b/homeassistant/components/plugwise/entity.py @@ -1,4 +1,5 @@ """Generic Plugwise Entity Class.""" + from __future__ import annotations from plugwise.constants import DeviceData diff --git a/homeassistant/components/plugwise/number.py b/homeassistant/components/plugwise/number.py index c71b52cf5c8..95d09bd845e 100644 --- a/homeassistant/components/plugwise/number.py +++ b/homeassistant/components/plugwise/number.py @@ -1,4 +1,5 @@ """Number platform for Plugwise integration.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/plugwise/select.py b/homeassistant/components/plugwise/select.py index ff5eb3af4a5..21b0794a1e3 100644 --- a/homeassistant/components/plugwise/select.py +++ b/homeassistant/components/plugwise/select.py @@ -1,4 +1,5 @@ """Plugwise Select component for Home Assistant.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/plugwise/sensor.py b/homeassistant/components/plugwise/sensor.py index 86992bb08f1..2dfe97a06c5 100644 --- a/homeassistant/components/plugwise/sensor.py +++ b/homeassistant/components/plugwise/sensor.py @@ -1,4 +1,5 @@ """Plugwise Sensor component for Home Assistant.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/plugwise/switch.py b/homeassistant/components/plugwise/switch.py index 50e0a3cc4f8..3c737e19a4a 100644 --- a/homeassistant/components/plugwise/switch.py +++ b/homeassistant/components/plugwise/switch.py @@ -1,4 +1,5 @@ """Plugwise Switch component for HomeAssistant.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/plugwise/util.py b/homeassistant/components/plugwise/util.py index 4f8d4c8d8fe..df1069cbbc3 100644 --- a/homeassistant/components/plugwise/util.py +++ b/homeassistant/components/plugwise/util.py @@ -1,4 +1,5 @@ """Utilities for Plugwise.""" + from collections.abc import Awaitable, Callable, Coroutine from typing import Any, Concatenate, ParamSpec, TypeVar diff --git a/homeassistant/components/plum_lightpad/config_flow.py b/homeassistant/components/plum_lightpad/config_flow.py index 546398f5fa6..2a929d14c9e 100644 --- a/homeassistant/components/plum_lightpad/config_flow.py +++ b/homeassistant/components/plum_lightpad/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Plum Lightpad.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/plum_lightpad/light.py b/homeassistant/components/plum_lightpad/light.py index 6d591d29fe4..a385565b837 100644 --- a/homeassistant/components/plum_lightpad/light.py +++ b/homeassistant/components/plum_lightpad/light.py @@ -1,4 +1,5 @@ """Support for Plum Lightpad lights.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pocketcasts/sensor.py b/homeassistant/components/pocketcasts/sensor.py index c541e2cc0f2..b2ad050fc14 100644 --- a/homeassistant/components/pocketcasts/sensor.py +++ b/homeassistant/components/pocketcasts/sensor.py @@ -1,4 +1,5 @@ """Support for Pocket Casts.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/point/alarm_control_panel.py b/homeassistant/components/point/alarm_control_panel.py index c2a904ec2a1..b04742af06a 100644 --- a/homeassistant/components/point/alarm_control_panel.py +++ b/homeassistant/components/point/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Minut Point.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/point/binary_sensor.py b/homeassistant/components/point/binary_sensor.py index 81101d2da79..8863ee8ed81 100644 --- a/homeassistant/components/point/binary_sensor.py +++ b/homeassistant/components/point/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Minut Point binary sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/point/const.py b/homeassistant/components/point/const.py index c21971185f9..c8c8f14d019 100644 --- a/homeassistant/components/point/const.py +++ b/homeassistant/components/point/const.py @@ -1,4 +1,5 @@ """Define constants for the Point component.""" + from datetime import timedelta DOMAIN = "point" diff --git a/homeassistant/components/point/sensor.py b/homeassistant/components/point/sensor.py index 471fa72c6c5..101371b0822 100644 --- a/homeassistant/components/point/sensor.py +++ b/homeassistant/components/point/sensor.py @@ -1,4 +1,5 @@ """Support for Minut Point sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/poolsense/binary_sensor.py b/homeassistant/components/poolsense/binary_sensor.py index 052a205a37b..69c133c8c1e 100644 --- a/homeassistant/components/poolsense/binary_sensor.py +++ b/homeassistant/components/poolsense/binary_sensor.py @@ -1,4 +1,5 @@ """Support for PoolSense binary sensors.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/poolsense/entity.py b/homeassistant/components/poolsense/entity.py index 0eca39cc48d..eaf2c4ab540 100644 --- a/homeassistant/components/poolsense/entity.py +++ b/homeassistant/components/poolsense/entity.py @@ -1,4 +1,5 @@ """Base entity for poolsense integration.""" + from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity diff --git a/homeassistant/components/poolsense/sensor.py b/homeassistant/components/poolsense/sensor.py index 23235c09a84..d40ee823664 100644 --- a/homeassistant/components/poolsense/sensor.py +++ b/homeassistant/components/poolsense/sensor.py @@ -1,4 +1,5 @@ """Sensor platform for the PoolSense sensor.""" + from __future__ import annotations from homeassistant.components.sensor import ( diff --git a/homeassistant/components/powerwall/__init__.py b/homeassistant/components/powerwall/__init__.py index 086e49eef94..5257e5a6299 100644 --- a/homeassistant/components/powerwall/__init__.py +++ b/homeassistant/components/powerwall/__init__.py @@ -1,4 +1,5 @@ """The Tesla Powerwall integration.""" + from __future__ import annotations from contextlib import AsyncExitStack diff --git a/homeassistant/components/powerwall/config_flow.py b/homeassistant/components/powerwall/config_flow.py index 767c4f1120d..7629d83d9d6 100644 --- a/homeassistant/components/powerwall/config_flow.py +++ b/homeassistant/components/powerwall/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Tesla Powerwall integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/powerwall/const.py b/homeassistant/components/powerwall/const.py index c20ab760f23..bb3a6c2355e 100644 --- a/homeassistant/components/powerwall/const.py +++ b/homeassistant/components/powerwall/const.py @@ -1,4 +1,5 @@ """Constants for the Tesla Powerwall integration.""" + from typing import Final DOMAIN = "powerwall" diff --git a/homeassistant/components/powerwall/models.py b/homeassistant/components/powerwall/models.py index 3216b83a7db..1adfd754650 100644 --- a/homeassistant/components/powerwall/models.py +++ b/homeassistant/components/powerwall/models.py @@ -1,4 +1,5 @@ """The powerwall integration models.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/powerwall/sensor.py b/homeassistant/components/powerwall/sensor.py index 9e17cd32e9c..38189ecd6f3 100644 --- a/homeassistant/components/powerwall/sensor.py +++ b/homeassistant/components/powerwall/sensor.py @@ -1,4 +1,5 @@ """Support for powerwall sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/private_ble_device/__init__.py b/homeassistant/components/private_ble_device/__init__.py index dcb6555bbc9..ab4de9ef04d 100644 --- a/homeassistant/components/private_ble_device/__init__.py +++ b/homeassistant/components/private_ble_device/__init__.py @@ -1,4 +1,5 @@ """Private BLE Device integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/private_ble_device/config_flow.py b/homeassistant/components/private_ble_device/config_flow.py index ff6fade1141..c7311e8691b 100644 --- a/homeassistant/components/private_ble_device/config_flow.py +++ b/homeassistant/components/private_ble_device/config_flow.py @@ -1,4 +1,5 @@ """Config flow for the BLE Tracker.""" + from __future__ import annotations import base64 diff --git a/homeassistant/components/private_ble_device/coordinator.py b/homeassistant/components/private_ble_device/coordinator.py index e41c3d02e9e..69db399a454 100644 --- a/homeassistant/components/private_ble_device/coordinator.py +++ b/homeassistant/components/private_ble_device/coordinator.py @@ -1,4 +1,5 @@ """Central manager for tracking devices with random but resolvable MAC addresses.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/private_ble_device/device_tracker.py b/homeassistant/components/private_ble_device/device_tracker.py index 4f22c9b275c..fbaf0d44751 100644 --- a/homeassistant/components/private_ble_device/device_tracker.py +++ b/homeassistant/components/private_ble_device/device_tracker.py @@ -1,4 +1,5 @@ """Tracking for bluetooth low energy devices.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/private_ble_device/entity.py b/homeassistant/components/private_ble_device/entity.py index 978313e9671..2c574805c53 100644 --- a/homeassistant/components/private_ble_device/entity.py +++ b/homeassistant/components/private_ble_device/entity.py @@ -1,4 +1,5 @@ """Tracking for bluetooth low energy devices.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/private_ble_device/sensor.py b/homeassistant/components/private_ble_device/sensor.py index 1cff006794c..d186563da5e 100644 --- a/homeassistant/components/private_ble_device/sensor.py +++ b/homeassistant/components/private_ble_device/sensor.py @@ -1,4 +1,5 @@ """Support for iBeacon device sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/profiler/config_flow.py b/homeassistant/components/profiler/config_flow.py index bb25e7f7e57..4acce51e25f 100644 --- a/homeassistant/components/profiler/config_flow.py +++ b/homeassistant/components/profiler/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Profiler integration.""" + from homeassistant.config_entries import ConfigFlow from .const import DEFAULT_NAME, DOMAIN diff --git a/homeassistant/components/proliphix/climate.py b/homeassistant/components/proliphix/climate.py index 797fd751197..23ccc03a038 100644 --- a/homeassistant/components/proliphix/climate.py +++ b/homeassistant/components/proliphix/climate.py @@ -1,4 +1,5 @@ """Support for Proliphix NT10e Thermostats.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/prometheus/__init__.py b/homeassistant/components/prometheus/__init__.py index 317b5c569d4..2b8ed6f22b0 100644 --- a/homeassistant/components/prometheus/__init__.py +++ b/homeassistant/components/prometheus/__init__.py @@ -1,4 +1,5 @@ """Support for Prometheus metrics export.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/prosegur/alarm_control_panel.py b/homeassistant/components/prosegur/alarm_control_panel.py index 77cdb5e11a2..61e7c73e3a5 100644 --- a/homeassistant/components/prosegur/alarm_control_panel.py +++ b/homeassistant/components/prosegur/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Prosegur alarm control panels.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/prosegur/camera.py b/homeassistant/components/prosegur/camera.py index c711ca2eac6..fd911fa5898 100644 --- a/homeassistant/components/prosegur/camera.py +++ b/homeassistant/components/prosegur/camera.py @@ -1,4 +1,5 @@ """Support for Prosegur cameras.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/prosegur/config_flow.py b/homeassistant/components/prosegur/config_flow.py index a1f3dac832b..ca8e4db35cc 100644 --- a/homeassistant/components/prosegur/config_flow.py +++ b/homeassistant/components/prosegur/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Prosegur Alarm integration.""" + from collections.abc import Mapping import logging from typing import Any, cast diff --git a/homeassistant/components/prosegur/diagnostics.py b/homeassistant/components/prosegur/diagnostics.py index 59b51f5b5d1..ec13f5511a4 100644 --- a/homeassistant/components/prosegur/diagnostics.py +++ b/homeassistant/components/prosegur/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Prosegur.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/prowl/notify.py b/homeassistant/components/prowl/notify.py index c365ce151ec..b5556c15c6c 100644 --- a/homeassistant/components/prowl/notify.py +++ b/homeassistant/components/prowl/notify.py @@ -1,4 +1,5 @@ """Prowl notification service.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/proximity/__init__.py b/homeassistant/components/proximity/__init__.py index 349658223f3..f6c67fc088f 100644 --- a/homeassistant/components/proximity/__init__.py +++ b/homeassistant/components/proximity/__init__.py @@ -1,4 +1,5 @@ """Support for tracking the proximity of a device.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/proximity/config_flow.py b/homeassistant/components/proximity/config_flow.py index 77ebf26f52a..14f26f5d45d 100644 --- a/homeassistant/components/proximity/config_flow.py +++ b/homeassistant/components/proximity/config_flow.py @@ -1,4 +1,5 @@ """Config flow for proximity.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/proximity/diagnostics.py b/homeassistant/components/proximity/diagnostics.py index 3ccecbe1f19..d296c489e94 100644 --- a/homeassistant/components/proximity/diagnostics.py +++ b/homeassistant/components/proximity/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Proximity.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/proximity/helpers.py b/homeassistant/components/proximity/helpers.py index 9c0787538e5..af3d6d2a3bb 100644 --- a/homeassistant/components/proximity/helpers.py +++ b/homeassistant/components/proximity/helpers.py @@ -1,4 +1,5 @@ """Helper functions for proximity.""" + from homeassistant.components.automation import automations_with_entity from homeassistant.components.script import scripts_with_entity from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/proxmoxve/__init__.py b/homeassistant/components/proxmoxve/__init__.py index 1c22ca50c23..e0b8f91088d 100644 --- a/homeassistant/components/proxmoxve/__init__.py +++ b/homeassistant/components/proxmoxve/__init__.py @@ -1,4 +1,5 @@ """Support for Proxmox VE.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/proxmoxve/binary_sensor.py b/homeassistant/components/proxmoxve/binary_sensor.py index ea02e547e98..412f40af6e8 100644 --- a/homeassistant/components/proxmoxve/binary_sensor.py +++ b/homeassistant/components/proxmoxve/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensor to read Proxmox VE data.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/proxy/camera.py b/homeassistant/components/proxy/camera.py index 79e9faf8d70..c50dc819f9a 100644 --- a/homeassistant/components/proxy/camera.py +++ b/homeassistant/components/proxy/camera.py @@ -1,4 +1,5 @@ """Proxy camera platform that enables image processing of camera data.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/prusalink/__init__.py b/homeassistant/components/prusalink/__init__.py index 08670ef5433..e8c930c3157 100644 --- a/homeassistant/components/prusalink/__init__.py +++ b/homeassistant/components/prusalink/__init__.py @@ -1,4 +1,5 @@ """The PrusaLink integration.""" + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/homeassistant/components/prusalink/button.py b/homeassistant/components/prusalink/button.py index 46d10fc9703..d70356f04d1 100644 --- a/homeassistant/components/prusalink/button.py +++ b/homeassistant/components/prusalink/button.py @@ -1,4 +1,5 @@ """PrusaLink sensors.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/prusalink/camera.py b/homeassistant/components/prusalink/camera.py index 7f6fab0583b..48c2fee9cdb 100644 --- a/homeassistant/components/prusalink/camera.py +++ b/homeassistant/components/prusalink/camera.py @@ -1,4 +1,5 @@ """Camera entity for PrusaLink.""" + from __future__ import annotations from homeassistant.components.camera import Camera diff --git a/homeassistant/components/prusalink/config_flow.py b/homeassistant/components/prusalink/config_flow.py index ac4dba0d20c..c0c8c797133 100644 --- a/homeassistant/components/prusalink/config_flow.py +++ b/homeassistant/components/prusalink/config_flow.py @@ -1,4 +1,5 @@ """Config flow for PrusaLink integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/prusalink/sensor.py b/homeassistant/components/prusalink/sensor.py index efdd044399a..be4230b844c 100644 --- a/homeassistant/components/prusalink/sensor.py +++ b/homeassistant/components/prusalink/sensor.py @@ -1,4 +1,5 @@ """PrusaLink sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/ps4/config_flow.py b/homeassistant/components/ps4/config_flow.py index ef74b3e8712..b842c2f7cfb 100644 --- a/homeassistant/components/ps4/config_flow.py +++ b/homeassistant/components/ps4/config_flow.py @@ -1,4 +1,5 @@ """Config Flow for PlayStation 4.""" + from collections import OrderedDict from pyps4_2ndscreen.errors import CredentialTimeout diff --git a/homeassistant/components/ps4/media_player.py b/homeassistant/components/ps4/media_player.py index 732d86bef37..f01bc00ba72 100644 --- a/homeassistant/components/ps4/media_player.py +++ b/homeassistant/components/ps4/media_player.py @@ -1,4 +1,5 @@ """Support for PlayStation 4 consoles.""" + from contextlib import suppress import logging from typing import Any, cast diff --git a/homeassistant/components/pulseaudio_loopback/switch.py b/homeassistant/components/pulseaudio_loopback/switch.py index 92dfb235b1b..553a1b4a283 100644 --- a/homeassistant/components/pulseaudio_loopback/switch.py +++ b/homeassistant/components/pulseaudio_loopback/switch.py @@ -1,4 +1,5 @@ """Switch logic for loading/unloading pulseaudio loopback modules.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pure_energie/__init__.py b/homeassistant/components/pure_energie/__init__.py index cda73a7da0b..e018648e95e 100644 --- a/homeassistant/components/pure_energie/__init__.py +++ b/homeassistant/components/pure_energie/__init__.py @@ -1,4 +1,5 @@ """The Pure Energie integration.""" + from __future__ import annotations from typing import NamedTuple diff --git a/homeassistant/components/pure_energie/config_flow.py b/homeassistant/components/pure_energie/config_flow.py index b7dc2552231..a2bbb671ff7 100644 --- a/homeassistant/components/pure_energie/config_flow.py +++ b/homeassistant/components/pure_energie/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Pure Energie integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pure_energie/const.py b/homeassistant/components/pure_energie/const.py index 9c908da6068..bba7708c174 100644 --- a/homeassistant/components/pure_energie/const.py +++ b/homeassistant/components/pure_energie/const.py @@ -1,4 +1,5 @@ """Constants for the Pure Energie integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/pure_energie/diagnostics.py b/homeassistant/components/pure_energie/diagnostics.py index b2e071d58cd..fb93b81a4fd 100644 --- a/homeassistant/components/pure_energie/diagnostics.py +++ b/homeassistant/components/pure_energie/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Pure Energie.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/pure_energie/sensor.py b/homeassistant/components/pure_energie/sensor.py index 09470609c9e..fa3bed72df4 100644 --- a/homeassistant/components/pure_energie/sensor.py +++ b/homeassistant/components/pure_energie/sensor.py @@ -1,4 +1,5 @@ """Support for Pure Energie sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/purpleair/__init__.py b/homeassistant/components/purpleair/__init__.py index f52d0799d35..fb86612597a 100644 --- a/homeassistant/components/purpleair/__init__.py +++ b/homeassistant/components/purpleair/__init__.py @@ -1,4 +1,5 @@ """The PurpleAir integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/purpleair/config_flow.py b/homeassistant/components/purpleair/config_flow.py index 90a250a57b0..f0c09af5135 100644 --- a/homeassistant/components/purpleair/config_flow.py +++ b/homeassistant/components/purpleair/config_flow.py @@ -1,4 +1,5 @@ """Config flow for PurpleAir integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/purpleair/coordinator.py b/homeassistant/components/purpleair/coordinator.py index 9982db667f2..7bf0770c6fc 100644 --- a/homeassistant/components/purpleair/coordinator.py +++ b/homeassistant/components/purpleair/coordinator.py @@ -1,4 +1,5 @@ """Define a PurpleAir DataUpdateCoordinator.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/purpleair/diagnostics.py b/homeassistant/components/purpleair/diagnostics.py index 0c52879b7a7..a3b3af857fb 100644 --- a/homeassistant/components/purpleair/diagnostics.py +++ b/homeassistant/components/purpleair/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for PurpleAir.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/purpleair/sensor.py b/homeassistant/components/purpleair/sensor.py index eee4583ca11..d1db77c2c31 100644 --- a/homeassistant/components/purpleair/sensor.py +++ b/homeassistant/components/purpleair/sensor.py @@ -1,4 +1,5 @@ """Support for PurpleAir sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/push/camera.py b/homeassistant/components/push/camera.py index 2cedcb8598a..8744ce8c2a1 100644 --- a/homeassistant/components/push/camera.py +++ b/homeassistant/components/push/camera.py @@ -1,4 +1,5 @@ """Camera platform that receives images through HTTP POST.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/pushbullet/__init__.py b/homeassistant/components/pushbullet/__init__.py index 14d90d4ca0b..e5892afc926 100644 --- a/homeassistant/components/pushbullet/__init__.py +++ b/homeassistant/components/pushbullet/__init__.py @@ -1,4 +1,5 @@ """The pushbullet component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pushbullet/api.py b/homeassistant/components/pushbullet/api.py index 691ef7413c3..72805a9aa94 100644 --- a/homeassistant/components/pushbullet/api.py +++ b/homeassistant/components/pushbullet/api.py @@ -1,4 +1,5 @@ """Pushbullet Notification provider.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pushbullet/config_flow.py b/homeassistant/components/pushbullet/config_flow.py index 1b2ca3b6040..08ade743aee 100644 --- a/homeassistant/components/pushbullet/config_flow.py +++ b/homeassistant/components/pushbullet/config_flow.py @@ -1,4 +1,5 @@ """Config flow for pushbullet integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pushbullet/notify.py b/homeassistant/components/pushbullet/notify.py index 662240d0bf5..96f78c4a35d 100644 --- a/homeassistant/components/pushbullet/notify.py +++ b/homeassistant/components/pushbullet/notify.py @@ -1,4 +1,5 @@ """Pushbullet platform for notify component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pushbullet/sensor.py b/homeassistant/components/pushbullet/sensor.py index 2f2a1d066f3..4989fc91d5e 100644 --- a/homeassistant/components/pushbullet/sensor.py +++ b/homeassistant/components/pushbullet/sensor.py @@ -1,4 +1,5 @@ """Pushbullet platform for sensor component.""" + from __future__ import annotations from homeassistant.components.sensor import SensorEntity, SensorEntityDescription diff --git a/homeassistant/components/pushover/__init__.py b/homeassistant/components/pushover/__init__.py index c3b15b7c130..73c4223889e 100644 --- a/homeassistant/components/pushover/__init__.py +++ b/homeassistant/components/pushover/__init__.py @@ -1,4 +1,5 @@ """The pushover component.""" + from __future__ import annotations from pushover_complete import BadAPIRequestError, PushoverAPI diff --git a/homeassistant/components/pushover/config_flow.py b/homeassistant/components/pushover/config_flow.py index 5f67db08073..fcc28b45ede 100644 --- a/homeassistant/components/pushover/config_flow.py +++ b/homeassistant/components/pushover/config_flow.py @@ -1,4 +1,5 @@ """Config flow for pushover integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pushover/notify.py b/homeassistant/components/pushover/notify.py index 52eaed227e5..34ee1d08bdd 100644 --- a/homeassistant/components/pushover/notify.py +++ b/homeassistant/components/pushover/notify.py @@ -1,4 +1,5 @@ """Pushover platform for notify component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pushsafer/notify.py b/homeassistant/components/pushsafer/notify.py index 5411db05e2d..f4f5bf88a22 100644 --- a/homeassistant/components/pushsafer/notify.py +++ b/homeassistant/components/pushsafer/notify.py @@ -1,4 +1,5 @@ """Pushsafer platform for notify component.""" + from __future__ import annotations import base64 diff --git a/homeassistant/components/pvoutput/__init__.py b/homeassistant/components/pvoutput/__init__.py index bca5a23e62b..7dc02a07d1c 100644 --- a/homeassistant/components/pvoutput/__init__.py +++ b/homeassistant/components/pvoutput/__init__.py @@ -1,4 +1,5 @@ """The PVOutput integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/pvoutput/config_flow.py b/homeassistant/components/pvoutput/config_flow.py index 7056e0f00b2..9d18952e7b4 100644 --- a/homeassistant/components/pvoutput/config_flow.py +++ b/homeassistant/components/pvoutput/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the PVOutput integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pvoutput/const.py b/homeassistant/components/pvoutput/const.py index f01d10fd13d..be63053a899 100644 --- a/homeassistant/components/pvoutput/const.py +++ b/homeassistant/components/pvoutput/const.py @@ -1,4 +1,5 @@ """Constants for the PVOutput integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/pvoutput/coordinator.py b/homeassistant/components/pvoutput/coordinator.py index 7b307f20274..5c38792c553 100644 --- a/homeassistant/components/pvoutput/coordinator.py +++ b/homeassistant/components/pvoutput/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the PVOutput integration.""" + from __future__ import annotations from pvo import PVOutput, PVOutputAuthenticationError, PVOutputNoDataError, Status diff --git a/homeassistant/components/pvoutput/diagnostics.py b/homeassistant/components/pvoutput/diagnostics.py index dfe215b7ddd..3b9007b77b4 100644 --- a/homeassistant/components/pvoutput/diagnostics.py +++ b/homeassistant/components/pvoutput/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for PVOutput.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pvoutput/sensor.py b/homeassistant/components/pvoutput/sensor.py index c003e3cfad8..ef2bb3eb660 100644 --- a/homeassistant/components/pvoutput/sensor.py +++ b/homeassistant/components/pvoutput/sensor.py @@ -1,4 +1,5 @@ """Support for getting collected information from PVOutput.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/pvpc_hourly_pricing/__init__.py b/homeassistant/components/pvpc_hourly_pricing/__init__.py index af9154f5512..6ef16ea29b6 100644 --- a/homeassistant/components/pvpc_hourly_pricing/__init__.py +++ b/homeassistant/components/pvpc_hourly_pricing/__init__.py @@ -1,4 +1,5 @@ """The pvpc_hourly_pricing integration to collect Spain official electric prices.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/pvpc_hourly_pricing/config_flow.py b/homeassistant/components/pvpc_hourly_pricing/config_flow.py index 23c6241462c..239e1bcb0e9 100644 --- a/homeassistant/components/pvpc_hourly_pricing/config_flow.py +++ b/homeassistant/components/pvpc_hourly_pricing/config_flow.py @@ -1,4 +1,5 @@ """Config flow for pvpc_hourly_pricing.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pvpc_hourly_pricing/const.py b/homeassistant/components/pvpc_hourly_pricing/const.py index a6bfc6f3188..9aaa46233cb 100644 --- a/homeassistant/components/pvpc_hourly_pricing/const.py +++ b/homeassistant/components/pvpc_hourly_pricing/const.py @@ -1,4 +1,5 @@ """Constant values for pvpc_hourly_pricing.""" + from aiopvpc.const import TARIFFS import voluptuous as vol diff --git a/homeassistant/components/pvpc_hourly_pricing/helpers.py b/homeassistant/components/pvpc_hourly_pricing/helpers.py index 195d20aee89..e0792f76404 100644 --- a/homeassistant/components/pvpc_hourly_pricing/helpers.py +++ b/homeassistant/components/pvpc_hourly_pricing/helpers.py @@ -1,4 +1,5 @@ """Helper functions to relate sensors keys and unique ids.""" + from aiopvpc.const import ( ALL_SENSORS, KEY_INJECTION, diff --git a/homeassistant/components/pvpc_hourly_pricing/sensor.py b/homeassistant/components/pvpc_hourly_pricing/sensor.py index 9cc3ef35a4b..1b97abcddae 100644 --- a/homeassistant/components/pvpc_hourly_pricing/sensor.py +++ b/homeassistant/components/pvpc_hourly_pricing/sensor.py @@ -1,4 +1,5 @@ """Sensor to collect the reference daily prices of electricity ('PVPC') in Spain.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pyload/sensor.py b/homeassistant/components/pyload/sensor.py index 35e32d510ca..b7d4d1f461b 100644 --- a/homeassistant/components/pyload/sensor.py +++ b/homeassistant/components/pyload/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring pyLoad.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/qbittorrent/config_flow.py b/homeassistant/components/qbittorrent/config_flow.py index 148e9765c48..c17c842529b 100644 --- a/homeassistant/components/qbittorrent/config_flow.py +++ b/homeassistant/components/qbittorrent/config_flow.py @@ -1,4 +1,5 @@ """Config flow for qBittorrent.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qbittorrent/const.py b/homeassistant/components/qbittorrent/const.py index 96c60e9b380..d8fe2c012a3 100644 --- a/homeassistant/components/qbittorrent/const.py +++ b/homeassistant/components/qbittorrent/const.py @@ -1,4 +1,5 @@ """Constants for qBittorrent.""" + from typing import Final DOMAIN: Final = "qbittorrent" diff --git a/homeassistant/components/qbittorrent/coordinator.py b/homeassistant/components/qbittorrent/coordinator.py index 11467ce62f4..32ce4cf9711 100644 --- a/homeassistant/components/qbittorrent/coordinator.py +++ b/homeassistant/components/qbittorrent/coordinator.py @@ -1,4 +1,5 @@ """The QBittorrent coordinator.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/qbittorrent/helpers.py b/homeassistant/components/qbittorrent/helpers.py index 7f7833e912a..b9c29675473 100644 --- a/homeassistant/components/qbittorrent/helpers.py +++ b/homeassistant/components/qbittorrent/helpers.py @@ -1,4 +1,5 @@ """Helper functions for qBittorrent.""" + from qbittorrent.client import Client diff --git a/homeassistant/components/qbittorrent/sensor.py b/homeassistant/components/qbittorrent/sensor.py index 9e9f7626857..84eac7d28cf 100644 --- a/homeassistant/components/qbittorrent/sensor.py +++ b/homeassistant/components/qbittorrent/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring the qBittorrent API.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/qingping/__init__.py b/homeassistant/components/qingping/__init__.py index 9155c02c07c..48cae5c48e6 100644 --- a/homeassistant/components/qingping/__init__.py +++ b/homeassistant/components/qingping/__init__.py @@ -1,4 +1,5 @@ """The Qingping integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qingping/binary_sensor.py b/homeassistant/components/qingping/binary_sensor.py index 99bcf83ec1a..f4f81eac394 100644 --- a/homeassistant/components/qingping/binary_sensor.py +++ b/homeassistant/components/qingping/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Qingping binary sensors.""" + from __future__ import annotations from qingping_ble import ( diff --git a/homeassistant/components/qingping/config_flow.py b/homeassistant/components/qingping/config_flow.py index d5fd45e4614..c5efe03a878 100644 --- a/homeassistant/components/qingping/config_flow.py +++ b/homeassistant/components/qingping/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Qingping integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/qingping/device.py b/homeassistant/components/qingping/device.py index ec6bb23c2af..466ac43f079 100644 --- a/homeassistant/components/qingping/device.py +++ b/homeassistant/components/qingping/device.py @@ -1,4 +1,5 @@ """Support for Qingping devices.""" + from __future__ import annotations from qingping_ble import DeviceKey diff --git a/homeassistant/components/qingping/sensor.py b/homeassistant/components/qingping/sensor.py index bc99ed80ff3..e75c9b34f49 100644 --- a/homeassistant/components/qingping/sensor.py +++ b/homeassistant/components/qingping/sensor.py @@ -1,4 +1,5 @@ """Support for Qingping sensors.""" + from __future__ import annotations from qingping_ble import ( diff --git a/homeassistant/components/qld_bushfire/geo_location.py b/homeassistant/components/qld_bushfire/geo_location.py index 3606b664a3f..5d0173f8c54 100644 --- a/homeassistant/components/qld_bushfire/geo_location.py +++ b/homeassistant/components/qld_bushfire/geo_location.py @@ -1,4 +1,5 @@ """Support for Queensland Bushfire Alert Feeds.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/qnap/__init__.py b/homeassistant/components/qnap/__init__.py index 2491e69803f..82e912a60cd 100644 --- a/homeassistant/components/qnap/__init__.py +++ b/homeassistant/components/qnap/__init__.py @@ -1,4 +1,5 @@ """The qnap component.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/qnap/config_flow.py b/homeassistant/components/qnap/config_flow.py index d8646c722d7..3e0c524f59e 100644 --- a/homeassistant/components/qnap/config_flow.py +++ b/homeassistant/components/qnap/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure qnap component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qnap/coordinator.py b/homeassistant/components/qnap/coordinator.py index b868a931ebd..8c2bf81a47f 100644 --- a/homeassistant/components/qnap/coordinator.py +++ b/homeassistant/components/qnap/coordinator.py @@ -1,4 +1,5 @@ """Data coordinator for the qnap integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/qnap/sensor.py b/homeassistant/components/qnap/sensor.py index 348759012ac..2a5186ad940 100644 --- a/homeassistant/components/qnap/sensor.py +++ b/homeassistant/components/qnap/sensor.py @@ -1,4 +1,5 @@ """Support for QNAP NAS Sensors.""" + from __future__ import annotations from homeassistant import config_entries diff --git a/homeassistant/components/qnap_qsw/__init__.py b/homeassistant/components/qnap_qsw/__init__.py index b3bcc1705de..d7352435b07 100644 --- a/homeassistant/components/qnap_qsw/__init__.py +++ b/homeassistant/components/qnap_qsw/__init__.py @@ -1,4 +1,5 @@ """The QNAP QSW integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qnap_qsw/binary_sensor.py b/homeassistant/components/qnap_qsw/binary_sensor.py index f655beee3d4..907e3d927d3 100644 --- a/homeassistant/components/qnap_qsw/binary_sensor.py +++ b/homeassistant/components/qnap_qsw/binary_sensor.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW binary sensors.""" + from __future__ import annotations from dataclasses import dataclass, replace diff --git a/homeassistant/components/qnap_qsw/button.py b/homeassistant/components/qnap_qsw/button.py index c2c4f9f6043..1a11a5209c0 100644 --- a/homeassistant/components/qnap_qsw/button.py +++ b/homeassistant/components/qnap_qsw/button.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW buttons.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/qnap_qsw/config_flow.py b/homeassistant/components/qnap_qsw/config_flow.py index 8ade8169e57..3a10e54ac82 100644 --- a/homeassistant/components/qnap_qsw/config_flow.py +++ b/homeassistant/components/qnap_qsw/config_flow.py @@ -1,4 +1,5 @@ """Config flow for QNAP QSW.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qnap_qsw/coordinator.py b/homeassistant/components/qnap_qsw/coordinator.py index 6451b525004..c873f2a773d 100644 --- a/homeassistant/components/qnap_qsw/coordinator.py +++ b/homeassistant/components/qnap_qsw/coordinator.py @@ -1,4 +1,5 @@ """The QNAP QSW coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/qnap_qsw/diagnostics.py b/homeassistant/components/qnap_qsw/diagnostics.py index 2467e9181a3..e732c551a40 100644 --- a/homeassistant/components/qnap_qsw/diagnostics.py +++ b/homeassistant/components/qnap_qsw/diagnostics.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW diagnostics.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/qnap_qsw/entity.py b/homeassistant/components/qnap_qsw/entity.py index de92afe69a2..a3038b1fc7b 100644 --- a/homeassistant/components/qnap_qsw/entity.py +++ b/homeassistant/components/qnap_qsw/entity.py @@ -1,4 +1,5 @@ """Entity classes for the QNAP QSW integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/qnap_qsw/sensor.py b/homeassistant/components/qnap_qsw/sensor.py index 0fcb74174b5..f9299c778cb 100644 --- a/homeassistant/components/qnap_qsw/sensor.py +++ b/homeassistant/components/qnap_qsw/sensor.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW sensors.""" + from __future__ import annotations from dataclasses import dataclass, replace diff --git a/homeassistant/components/qnap_qsw/update.py b/homeassistant/components/qnap_qsw/update.py index 5ea6e80f4bb..ac789235271 100644 --- a/homeassistant/components/qnap_qsw/update.py +++ b/homeassistant/components/qnap_qsw/update.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW update.""" + from __future__ import annotations from typing import Any, Final diff --git a/homeassistant/components/qrcode/image_processing.py b/homeassistant/components/qrcode/image_processing.py index 06fe92e5b1d..aacd3c0c38f 100644 --- a/homeassistant/components/qrcode/image_processing.py +++ b/homeassistant/components/qrcode/image_processing.py @@ -1,4 +1,5 @@ """Support for the QR code image processing.""" + from __future__ import annotations import io diff --git a/homeassistant/components/quantum_gateway/device_tracker.py b/homeassistant/components/quantum_gateway/device_tracker.py index c8e23b68416..1c43cbb14a8 100644 --- a/homeassistant/components/quantum_gateway/device_tracker.py +++ b/homeassistant/components/quantum_gateway/device_tracker.py @@ -1,4 +1,5 @@ """Support for Verizon FiOS Quantum Gateways.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qvr_pro/camera.py b/homeassistant/components/qvr_pro/camera.py index f3caac864d9..544ef808ca7 100644 --- a/homeassistant/components/qvr_pro/camera.py +++ b/homeassistant/components/qvr_pro/camera.py @@ -1,4 +1,5 @@ """Support for QVR Pro streams.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qwikswitch/__init__.py b/homeassistant/components/qwikswitch/__init__.py index d11b71a6dd4..8c753da7cc2 100644 --- a/homeassistant/components/qwikswitch/__init__.py +++ b/homeassistant/components/qwikswitch/__init__.py @@ -1,4 +1,5 @@ """Support for Qwikswitch devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qwikswitch/binary_sensor.py b/homeassistant/components/qwikswitch/binary_sensor.py index a4ab193228c..b35908da12c 100644 --- a/homeassistant/components/qwikswitch/binary_sensor.py +++ b/homeassistant/components/qwikswitch/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Qwikswitch Binary Sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qwikswitch/light.py b/homeassistant/components/qwikswitch/light.py index 2109b8d2c3b..12c2763d3a4 100644 --- a/homeassistant/components/qwikswitch/light.py +++ b/homeassistant/components/qwikswitch/light.py @@ -1,4 +1,5 @@ """Support for Qwikswitch Relays and Dimmers.""" + from __future__ import annotations from homeassistant.components.light import ColorMode, LightEntity diff --git a/homeassistant/components/qwikswitch/sensor.py b/homeassistant/components/qwikswitch/sensor.py index 8a72ca7c811..856949d8926 100644 --- a/homeassistant/components/qwikswitch/sensor.py +++ b/homeassistant/components/qwikswitch/sensor.py @@ -1,4 +1,5 @@ """Support for Qwikswitch Sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qwikswitch/switch.py b/homeassistant/components/qwikswitch/switch.py index e36fc60d589..1623bfb3361 100644 --- a/homeassistant/components/qwikswitch/switch.py +++ b/homeassistant/components/qwikswitch/switch.py @@ -1,4 +1,5 @@ """Support for Qwikswitch relays.""" + from __future__ import annotations from homeassistant.components.switch import SwitchEntity