From c773d57d392dc1062948a5cd935b419587896575 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:35:45 +0100 Subject: [PATCH] Add empty line after module docstring [w-z] (#112706) --- homeassistant/components/w800rf32/binary_sensor.py | 1 + homeassistant/components/wake_on_lan/__init__.py | 1 + homeassistant/components/wake_on_lan/switch.py | 1 + homeassistant/components/wake_word/__init__.py | 1 + homeassistant/components/wake_word/models.py | 1 + homeassistant/components/wallbox/__init__.py | 1 + homeassistant/components/wallbox/config_flow.py | 1 + homeassistant/components/wallbox/const.py | 1 + homeassistant/components/wallbox/coordinator.py | 1 + homeassistant/components/wallbox/entity.py | 1 + homeassistant/components/wallbox/lock.py | 1 + homeassistant/components/wallbox/number.py | 1 + homeassistant/components/wallbox/sensor.py | 1 + homeassistant/components/wallbox/switch.py | 1 + homeassistant/components/waqi/__init__.py | 1 + homeassistant/components/waqi/config_flow.py | 1 + homeassistant/components/waqi/coordinator.py | 1 + homeassistant/components/waqi/sensor.py | 1 + homeassistant/components/water_heater/__init__.py | 1 + homeassistant/components/water_heater/device_action.py | 1 + homeassistant/components/water_heater/reproduce_state.py | 1 + homeassistant/components/water_heater/significant_change.py | 1 + homeassistant/components/waterfurnace/__init__.py | 1 + homeassistant/components/waterfurnace/sensor.py | 1 + homeassistant/components/watttime/__init__.py | 1 + homeassistant/components/watttime/config_flow.py | 1 + homeassistant/components/watttime/diagnostics.py | 1 + homeassistant/components/watttime/sensor.py | 1 + homeassistant/components/waze_travel_time/config_flow.py | 1 + homeassistant/components/waze_travel_time/const.py | 1 + homeassistant/components/waze_travel_time/sensor.py | 1 + homeassistant/components/weather/__init__.py | 1 + homeassistant/components/weather/const.py | 1 + homeassistant/components/weather/intent.py | 1 + homeassistant/components/weather/significant_change.py | 1 + homeassistant/components/weather/websocket_api.py | 1 + homeassistant/components/weatherflow/__init__.py | 1 + homeassistant/components/weatherflow/config_flow.py | 1 + homeassistant/components/weatherflow/sensor.py | 1 + homeassistant/components/weatherflow_cloud/__init__.py | 1 + homeassistant/components/weatherflow_cloud/config_flow.py | 1 + homeassistant/components/weatherflow_cloud/coordinator.py | 1 + homeassistant/components/weatherflow_cloud/weather.py | 1 + homeassistant/components/weatherkit/__init__.py | 1 + homeassistant/components/weatherkit/config_flow.py | 1 + homeassistant/components/weatherkit/const.py | 1 + homeassistant/components/weatherkit/coordinator.py | 1 + homeassistant/components/webhook/__init__.py | 1 + homeassistant/components/webhook/trigger.py | 1 + homeassistant/components/webmin/config_flow.py | 1 + homeassistant/components/webmin/coordinator.py | 1 + homeassistant/components/webmin/sensor.py | 1 + homeassistant/components/webostv/__init__.py | 1 + homeassistant/components/webostv/config_flow.py | 1 + homeassistant/components/webostv/device_trigger.py | 1 + homeassistant/components/webostv/diagnostics.py | 1 + homeassistant/components/webostv/helpers.py | 1 + homeassistant/components/webostv/media_player.py | 1 + homeassistant/components/webostv/notify.py | 1 + homeassistant/components/webostv/trigger.py | 1 + homeassistant/components/webostv/triggers/turn_on.py | 1 + homeassistant/components/websocket_api/__init__.py | 1 + homeassistant/components/websocket_api/auth.py | 1 + homeassistant/components/websocket_api/commands.py | 1 + homeassistant/components/websocket_api/connection.py | 1 + homeassistant/components/websocket_api/const.py | 1 + homeassistant/components/websocket_api/decorators.py | 1 + homeassistant/components/websocket_api/error.py | 1 + homeassistant/components/websocket_api/http.py | 1 + homeassistant/components/websocket_api/messages.py | 1 + homeassistant/components/websocket_api/sensor.py | 1 + homeassistant/components/wemo/__init__.py | 1 + homeassistant/components/wemo/device_trigger.py | 1 + homeassistant/components/wemo/entity.py | 1 + homeassistant/components/wemo/fan.py | 1 + homeassistant/components/wemo/light.py | 1 + homeassistant/components/wemo/sensor.py | 1 + homeassistant/components/wemo/switch.py | 1 + homeassistant/components/wemo/wemo_device.py | 1 + homeassistant/components/whirlpool/__init__.py | 1 + homeassistant/components/whirlpool/climate.py | 1 + homeassistant/components/whirlpool/config_flow.py | 1 + homeassistant/components/whirlpool/sensor.py | 1 + homeassistant/components/whois/__init__.py | 1 + homeassistant/components/whois/config_flow.py | 1 + homeassistant/components/whois/const.py | 1 + homeassistant/components/whois/diagnostics.py | 1 + homeassistant/components/whois/sensor.py | 1 + homeassistant/components/wiffi/__init__.py | 1 + homeassistant/components/wiffi/binary_sensor.py | 1 + homeassistant/components/wiffi/config_flow.py | 1 + homeassistant/components/wiffi/sensor.py | 1 + homeassistant/components/wilight/config_flow.py | 1 + homeassistant/components/wilight/cover.py | 1 + homeassistant/components/wilight/fan.py | 1 + homeassistant/components/wilight/light.py | 1 + homeassistant/components/wilight/parent_device.py | 1 + homeassistant/components/wilight/support.py | 1 + homeassistant/components/wilight/switch.py | 1 + homeassistant/components/wirelesstag/binary_sensor.py | 1 + homeassistant/components/wirelesstag/sensor.py | 1 + homeassistant/components/wirelesstag/switch.py | 1 + homeassistant/components/withings/__init__.py | 1 + homeassistant/components/withings/binary_sensor.py | 1 + homeassistant/components/withings/calendar.py | 1 + homeassistant/components/withings/config_flow.py | 1 + homeassistant/components/withings/coordinator.py | 1 + homeassistant/components/withings/diagnostics.py | 1 + homeassistant/components/withings/entity.py | 1 + homeassistant/components/withings/sensor.py | 1 + homeassistant/components/wiz/__init__.py | 1 + homeassistant/components/wiz/binary_sensor.py | 1 + homeassistant/components/wiz/config_flow.py | 1 + homeassistant/components/wiz/const.py | 1 + homeassistant/components/wiz/diagnostics.py | 1 + homeassistant/components/wiz/discovery.py | 1 + homeassistant/components/wiz/entity.py | 1 + homeassistant/components/wiz/light.py | 1 + homeassistant/components/wiz/models.py | 1 + homeassistant/components/wiz/number.py | 1 + homeassistant/components/wiz/sensor.py | 1 + homeassistant/components/wiz/switch.py | 1 + homeassistant/components/wiz/utils.py | 1 + homeassistant/components/wled/__init__.py | 1 + homeassistant/components/wled/binary_sensor.py | 1 + homeassistant/components/wled/button.py | 1 + homeassistant/components/wled/config_flow.py | 1 + homeassistant/components/wled/const.py | 1 + homeassistant/components/wled/coordinator.py | 1 + homeassistant/components/wled/diagnostics.py | 1 + homeassistant/components/wled/helpers.py | 1 + homeassistant/components/wled/light.py | 1 + homeassistant/components/wled/models.py | 1 + homeassistant/components/wled/number.py | 1 + homeassistant/components/wled/select.py | 1 + homeassistant/components/wled/sensor.py | 1 + homeassistant/components/wled/switch.py | 1 + homeassistant/components/wled/update.py | 1 + homeassistant/components/wolflink/__init__.py | 1 + homeassistant/components/wolflink/sensor.py | 1 + homeassistant/components/workday/__init__.py | 1 + homeassistant/components/workday/config_flow.py | 1 + homeassistant/components/workday/const.py | 1 + homeassistant/components/worldclock/sensor.py | 1 + homeassistant/components/worldtidesinfo/sensor.py | 1 + homeassistant/components/worxlandroid/sensor.py | 1 + homeassistant/components/ws66i/__init__.py | 1 + homeassistant/components/ws66i/config_flow.py | 1 + homeassistant/components/ws66i/const.py | 1 + homeassistant/components/ws66i/coordinator.py | 1 + homeassistant/components/ws66i/media_player.py | 1 + homeassistant/components/ws66i/models.py | 1 + homeassistant/components/wsdot/sensor.py | 1 + homeassistant/components/wyoming/__init__.py | 1 + homeassistant/components/wyoming/config_flow.py | 1 + homeassistant/components/wyoming/devices.py | 1 + homeassistant/components/wyoming/error.py | 1 + homeassistant/components/wyoming/models.py | 1 + homeassistant/components/wyoming/stt.py | 1 + homeassistant/components/wyoming/tts.py | 1 + homeassistant/components/x10/light.py | 1 + homeassistant/components/xbox/__init__.py | 1 + homeassistant/components/xbox/api.py | 1 + homeassistant/components/xbox/base_sensor.py | 1 + homeassistant/components/xbox/binary_sensor.py | 1 + homeassistant/components/xbox/browse_media.py | 1 + homeassistant/components/xbox/media_player.py | 1 + homeassistant/components/xbox/media_source.py | 1 + homeassistant/components/xbox/remote.py | 1 + homeassistant/components/xbox/sensor.py | 1 + homeassistant/components/xeoma/camera.py | 1 + homeassistant/components/xiaomi/camera.py | 1 + homeassistant/components/xiaomi/device_tracker.py | 1 + homeassistant/components/xiaomi_aqara/cover.py | 1 + homeassistant/components/xiaomi_aqara/lock.py | 1 + homeassistant/components/xiaomi_aqara/sensor.py | 1 + homeassistant/components/xiaomi_ble/__init__.py | 1 + homeassistant/components/xiaomi_ble/binary_sensor.py | 1 + homeassistant/components/xiaomi_ble/config_flow.py | 1 + homeassistant/components/xiaomi_ble/const.py | 1 + homeassistant/components/xiaomi_ble/coordinator.py | 1 + homeassistant/components/xiaomi_ble/device.py | 1 + homeassistant/components/xiaomi_ble/device_trigger.py | 1 + homeassistant/components/xiaomi_ble/event.py | 1 + homeassistant/components/xiaomi_ble/sensor.py | 1 + homeassistant/components/xiaomi_miio/__init__.py | 1 + homeassistant/components/xiaomi_miio/air_quality.py | 1 + homeassistant/components/xiaomi_miio/alarm_control_panel.py | 1 + homeassistant/components/xiaomi_miio/binary_sensor.py | 1 + homeassistant/components/xiaomi_miio/button.py | 1 + homeassistant/components/xiaomi_miio/config_flow.py | 1 + homeassistant/components/xiaomi_miio/const.py | 1 + homeassistant/components/xiaomi_miio/device_tracker.py | 1 + homeassistant/components/xiaomi_miio/diagnostics.py | 1 + homeassistant/components/xiaomi_miio/fan.py | 1 + homeassistant/components/xiaomi_miio/light.py | 1 + homeassistant/components/xiaomi_miio/number.py | 1 + homeassistant/components/xiaomi_miio/remote.py | 1 + homeassistant/components/xiaomi_miio/select.py | 1 + homeassistant/components/xiaomi_miio/sensor.py | 1 + homeassistant/components/xiaomi_miio/switch.py | 1 + homeassistant/components/xiaomi_miio/vacuum.py | 1 + homeassistant/components/xiaomi_tv/media_player.py | 1 + homeassistant/components/xmpp/notify.py | 1 + homeassistant/components/xs1/climate.py | 1 + homeassistant/components/xs1/sensor.py | 1 + homeassistant/components/xs1/switch.py | 1 + homeassistant/components/yale_smart_alarm/__init__.py | 1 + homeassistant/components/yale_smart_alarm/alarm_control_panel.py | 1 + homeassistant/components/yale_smart_alarm/binary_sensor.py | 1 + homeassistant/components/yale_smart_alarm/button.py | 1 + homeassistant/components/yale_smart_alarm/config_flow.py | 1 + homeassistant/components/yale_smart_alarm/coordinator.py | 1 + homeassistant/components/yale_smart_alarm/diagnostics.py | 1 + homeassistant/components/yale_smart_alarm/lock.py | 1 + homeassistant/components/yalexs_ble/__init__.py | 1 + homeassistant/components/yalexs_ble/binary_sensor.py | 1 + homeassistant/components/yalexs_ble/config_flow.py | 1 + homeassistant/components/yalexs_ble/entity.py | 1 + homeassistant/components/yalexs_ble/lock.py | 1 + homeassistant/components/yalexs_ble/models.py | 1 + homeassistant/components/yalexs_ble/sensor.py | 1 + homeassistant/components/yalexs_ble/util.py | 1 + homeassistant/components/yamaha/media_player.py | 1 + homeassistant/components/yamaha_musiccast/__init__.py | 1 + homeassistant/components/yamaha_musiccast/config_flow.py | 1 + homeassistant/components/yamaha_musiccast/media_player.py | 1 + homeassistant/components/yamaha_musiccast/number.py | 1 + homeassistant/components/yamaha_musiccast/select.py | 1 + homeassistant/components/yamaha_musiccast/switch.py | 1 + homeassistant/components/yandex_transport/sensor.py | 1 + homeassistant/components/yardian/__init__.py | 1 + homeassistant/components/yardian/config_flow.py | 1 + homeassistant/components/yardian/switch.py | 1 + homeassistant/components/yeelight/__init__.py | 1 + homeassistant/components/yeelight/config_flow.py | 1 + homeassistant/components/yeelight/device.py | 1 + homeassistant/components/yeelight/entity.py | 1 + homeassistant/components/yeelight/light.py | 1 + homeassistant/components/yeelight/scanner.py | 1 + homeassistant/components/yeelightsunflower/light.py | 1 + homeassistant/components/yi/camera.py | 1 + homeassistant/components/yolink/__init__.py | 1 + homeassistant/components/yolink/api.py | 1 + homeassistant/components/yolink/binary_sensor.py | 1 + homeassistant/components/yolink/climate.py | 1 + homeassistant/components/yolink/config_flow.py | 1 + homeassistant/components/yolink/coordinator.py | 1 + homeassistant/components/yolink/cover.py | 1 + homeassistant/components/yolink/device_trigger.py | 1 + homeassistant/components/yolink/entity.py | 1 + homeassistant/components/yolink/light.py | 1 + homeassistant/components/yolink/lock.py | 1 + homeassistant/components/yolink/sensor.py | 1 + homeassistant/components/yolink/siren.py | 1 + homeassistant/components/yolink/switch.py | 1 + homeassistant/components/youless/__init__.py | 1 + homeassistant/components/youless/config_flow.py | 1 + homeassistant/components/youless/sensor.py | 1 + homeassistant/components/youtube/__init__.py | 1 + homeassistant/components/youtube/api.py | 1 + homeassistant/components/youtube/application_credentials.py | 1 + homeassistant/components/youtube/config_flow.py | 1 + homeassistant/components/youtube/coordinator.py | 1 + homeassistant/components/youtube/diagnostics.py | 1 + homeassistant/components/youtube/entity.py | 1 + homeassistant/components/youtube/sensor.py | 1 + homeassistant/components/zabbix/__init__.py | 1 + homeassistant/components/zabbix/sensor.py | 1 + homeassistant/components/zamg/__init__.py | 1 + homeassistant/components/zamg/config_flow.py | 1 + homeassistant/components/zamg/coordinator.py | 1 + homeassistant/components/zamg/sensor.py | 1 + homeassistant/components/zamg/weather.py | 1 + homeassistant/components/zengge/light.py | 1 + homeassistant/components/zeroconf/__init__.py | 1 + homeassistant/components/zerproc/__init__.py | 1 + homeassistant/components/zerproc/light.py | 1 + homeassistant/components/zestimate/sensor.py | 1 + homeassistant/components/zeversolar/__init__.py | 1 + homeassistant/components/zeversolar/config_flow.py | 1 + homeassistant/components/zeversolar/coordinator.py | 1 + homeassistant/components/zeversolar/entity.py | 1 + homeassistant/components/zeversolar/sensor.py | 1 + homeassistant/components/zha/alarm_control_panel.py | 1 + homeassistant/components/zha/binary_sensor.py | 1 + homeassistant/components/zha/button.py | 1 + homeassistant/components/zha/climate.py | 1 + homeassistant/components/zha/config_flow.py | 1 + homeassistant/components/zha/core/cluster_handlers/__init__.py | 1 + homeassistant/components/zha/core/cluster_handlers/closures.py | 1 + homeassistant/components/zha/core/cluster_handlers/general.py | 1 + homeassistant/components/zha/core/cluster_handlers/helpers.py | 1 + .../components/zha/core/cluster_handlers/homeautomation.py | 1 + homeassistant/components/zha/core/cluster_handlers/hvac.py | 1 + homeassistant/components/zha/core/cluster_handlers/lighting.py | 1 + .../components/zha/core/cluster_handlers/manufacturerspecific.py | 1 + .../components/zha/core/cluster_handlers/measurement.py | 1 + homeassistant/components/zha/core/cluster_handlers/protocol.py | 1 + homeassistant/components/zha/core/cluster_handlers/security.py | 1 + .../components/zha/core/cluster_handlers/smartenergy.py | 1 + homeassistant/components/zha/core/const.py | 1 + homeassistant/components/zha/core/decorators.py | 1 + homeassistant/components/zha/core/device.py | 1 + homeassistant/components/zha/core/discovery.py | 1 + homeassistant/components/zha/core/endpoint.py | 1 + homeassistant/components/zha/core/gateway.py | 1 + homeassistant/components/zha/core/group.py | 1 + homeassistant/components/zha/core/helpers.py | 1 + homeassistant/components/zha/core/registries.py | 1 + homeassistant/components/zha/cover.py | 1 + homeassistant/components/zha/device_action.py | 1 + homeassistant/components/zha/device_tracker.py | 1 + homeassistant/components/zha/diagnostics.py | 1 + homeassistant/components/zha/entity.py | 1 + homeassistant/components/zha/fan.py | 1 + homeassistant/components/zha/light.py | 1 + homeassistant/components/zha/logbook.py | 1 + homeassistant/components/zha/number.py | 1 + homeassistant/components/zha/radio_manager.py | 1 + homeassistant/components/zha/repairs/__init__.py | 1 + .../components/zha/repairs/network_settings_inconsistent.py | 1 + homeassistant/components/zha/repairs/wrong_silabs_firmware.py | 1 + homeassistant/components/zha/select.py | 1 + homeassistant/components/zha/sensor.py | 1 + homeassistant/components/zha/siren.py | 1 + homeassistant/components/zha/switch.py | 1 + homeassistant/components/zha/update.py | 1 + homeassistant/components/zha/websocket_api.py | 1 + homeassistant/components/zhong_hong/climate.py | 1 + homeassistant/components/ziggo_mediabox_xl/media_player.py | 1 + homeassistant/components/zodiac/config_flow.py | 1 + homeassistant/components/zodiac/sensor.py | 1 + homeassistant/components/zone/__init__.py | 1 + homeassistant/components/zone/config_flow.py | 1 + homeassistant/components/zone/trigger.py | 1 + homeassistant/components/zoneminder/binary_sensor.py | 1 + homeassistant/components/zoneminder/camera.py | 1 + homeassistant/components/zoneminder/sensor.py | 1 + homeassistant/components/zoneminder/switch.py | 1 + homeassistant/components/zwave_js/__init__.py | 1 + homeassistant/components/zwave_js/addon.py | 1 + homeassistant/components/zwave_js/api.py | 1 + homeassistant/components/zwave_js/binary_sensor.py | 1 + homeassistant/components/zwave_js/button.py | 1 + homeassistant/components/zwave_js/climate.py | 1 + homeassistant/components/zwave_js/config_flow.py | 1 + homeassistant/components/zwave_js/config_validation.py | 1 + homeassistant/components/zwave_js/const.py | 1 + homeassistant/components/zwave_js/cover.py | 1 + homeassistant/components/zwave_js/device_action.py | 1 + homeassistant/components/zwave_js/device_automation_helpers.py | 1 + homeassistant/components/zwave_js/device_condition.py | 1 + homeassistant/components/zwave_js/device_trigger.py | 1 + homeassistant/components/zwave_js/diagnostics.py | 1 + homeassistant/components/zwave_js/discovery.py | 1 + homeassistant/components/zwave_js/discovery_data_template.py | 1 + homeassistant/components/zwave_js/entity.py | 1 + homeassistant/components/zwave_js/event.py | 1 + homeassistant/components/zwave_js/fan.py | 1 + homeassistant/components/zwave_js/helpers.py | 1 + homeassistant/components/zwave_js/humidifier.py | 1 + homeassistant/components/zwave_js/light.py | 1 + homeassistant/components/zwave_js/lock.py | 1 + homeassistant/components/zwave_js/logbook.py | 1 + homeassistant/components/zwave_js/migrate.py | 1 + homeassistant/components/zwave_js/number.py | 1 + homeassistant/components/zwave_js/repairs.py | 1 + .../zwave_js/scripts/convert_device_diagnostics_to_fixture.py | 1 + homeassistant/components/zwave_js/select.py | 1 + homeassistant/components/zwave_js/sensor.py | 1 + homeassistant/components/zwave_js/services.py | 1 + homeassistant/components/zwave_js/siren.py | 1 + homeassistant/components/zwave_js/switch.py | 1 + homeassistant/components/zwave_js/trigger.py | 1 + homeassistant/components/zwave_js/triggers/event.py | 1 + homeassistant/components/zwave_js/triggers/trigger_helpers.py | 1 + homeassistant/components/zwave_js/triggers/value_updated.py | 1 + homeassistant/components/zwave_js/update.py | 1 + homeassistant/components/zwave_me/binary_sensor.py | 1 + homeassistant/components/zwave_me/button.py | 1 + homeassistant/components/zwave_me/climate.py | 1 + homeassistant/components/zwave_me/config_flow.py | 1 + homeassistant/components/zwave_me/const.py | 1 + homeassistant/components/zwave_me/cover.py | 1 + homeassistant/components/zwave_me/fan.py | 1 + homeassistant/components/zwave_me/helpers.py | 1 + homeassistant/components/zwave_me/light.py | 1 + homeassistant/components/zwave_me/lock.py | 1 + homeassistant/components/zwave_me/number.py | 1 + homeassistant/components/zwave_me/sensor.py | 1 + homeassistant/components/zwave_me/siren.py | 1 + 392 files changed, 392 insertions(+) diff --git a/homeassistant/components/w800rf32/binary_sensor.py b/homeassistant/components/w800rf32/binary_sensor.py index 2bc0c0eea75..49eec35cb1e 100644 --- a/homeassistant/components/w800rf32/binary_sensor.py +++ b/homeassistant/components/w800rf32/binary_sensor.py @@ -1,4 +1,5 @@ """Support for w800rf32 binary sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/wake_on_lan/__init__.py b/homeassistant/components/wake_on_lan/__init__.py index 54809d6cec3..37837da683a 100644 --- a/homeassistant/components/wake_on_lan/__init__.py +++ b/homeassistant/components/wake_on_lan/__init__.py @@ -1,4 +1,5 @@ """Support for sending Wake-On-LAN magic packets.""" + from functools import partial import logging diff --git a/homeassistant/components/wake_on_lan/switch.py b/homeassistant/components/wake_on_lan/switch.py index 446df402c87..a0b54fd8db0 100644 --- a/homeassistant/components/wake_on_lan/switch.py +++ b/homeassistant/components/wake_on_lan/switch.py @@ -1,4 +1,5 @@ """Support for wake on lan.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/wake_word/__init__.py b/homeassistant/components/wake_word/__init__.py index bf502023e2b..f05a61e34dc 100644 --- a/homeassistant/components/wake_word/__init__.py +++ b/homeassistant/components/wake_word/__init__.py @@ -1,4 +1,5 @@ """Provide functionality to wake word.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/wake_word/models.py b/homeassistant/components/wake_word/models.py index c341df188ce..ba92b3a0799 100644 --- a/homeassistant/components/wake_word/models.py +++ b/homeassistant/components/wake_word/models.py @@ -1,4 +1,5 @@ """Wake word models.""" + from dataclasses import dataclass diff --git a/homeassistant/components/wallbox/__init__.py b/homeassistant/components/wallbox/__init__.py index 4ca6e768f64..4ea2cf98be1 100644 --- a/homeassistant/components/wallbox/__init__.py +++ b/homeassistant/components/wallbox/__init__.py @@ -1,4 +1,5 @@ """The Wallbox integration.""" + from __future__ import annotations from wallbox import Wallbox diff --git a/homeassistant/components/wallbox/config_flow.py b/homeassistant/components/wallbox/config_flow.py index 17b3f02a61f..44c47149554 100644 --- a/homeassistant/components/wallbox/config_flow.py +++ b/homeassistant/components/wallbox/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Wallbox integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/wallbox/const.py b/homeassistant/components/wallbox/const.py index 6caa3c070c8..69633cbda22 100644 --- a/homeassistant/components/wallbox/const.py +++ b/homeassistant/components/wallbox/const.py @@ -1,4 +1,5 @@ """Constants for the Wallbox integration.""" + from enum import StrEnum DOMAIN = "wallbox" diff --git a/homeassistant/components/wallbox/coordinator.py b/homeassistant/components/wallbox/coordinator.py index 96d66bb4395..a33d90db700 100644 --- a/homeassistant/components/wallbox/coordinator.py +++ b/homeassistant/components/wallbox/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the wallbox integration.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/wallbox/entity.py b/homeassistant/components/wallbox/entity.py index 1152530dbd1..489e81ed6b0 100644 --- a/homeassistant/components/wallbox/entity.py +++ b/homeassistant/components/wallbox/entity.py @@ -1,4 +1,5 @@ """Base entity for the wallbox integration.""" + from __future__ import annotations from homeassistant.helpers.device_registry import DeviceInfo diff --git a/homeassistant/components/wallbox/lock.py b/homeassistant/components/wallbox/lock.py index 195d76e9238..4853a9104f2 100644 --- a/homeassistant/components/wallbox/lock.py +++ b/homeassistant/components/wallbox/lock.py @@ -1,4 +1,5 @@ """Home Assistant component for accessing the Wallbox Portal API. The lock component creates a lock entity.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wallbox/number.py b/homeassistant/components/wallbox/number.py index 695a7960e51..f09321a0849 100644 --- a/homeassistant/components/wallbox/number.py +++ b/homeassistant/components/wallbox/number.py @@ -2,6 +2,7 @@ The number component allows control of charging current. """ + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/wallbox/sensor.py b/homeassistant/components/wallbox/sensor.py index 7fb9a488244..eadbc04dca2 100644 --- a/homeassistant/components/wallbox/sensor.py +++ b/homeassistant/components/wallbox/sensor.py @@ -1,4 +1,5 @@ """Home Assistant component for accessing the Wallbox Portal API. The sensor component creates multiple sensors regarding wallbox performance.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/wallbox/switch.py b/homeassistant/components/wallbox/switch.py index 2de6379eb18..06c2674579d 100644 --- a/homeassistant/components/wallbox/switch.py +++ b/homeassistant/components/wallbox/switch.py @@ -1,4 +1,5 @@ """Home Assistant component for accessing the Wallbox Portal API. The switch component creates a switch entity.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/waqi/__init__.py b/homeassistant/components/waqi/__init__.py index d4e41095b26..387d06da1a1 100644 --- a/homeassistant/components/waqi/__init__.py +++ b/homeassistant/components/waqi/__init__.py @@ -1,4 +1,5 @@ """The World Air Quality Index (WAQI) integration.""" + from __future__ import annotations from aiowaqi import WAQIClient diff --git a/homeassistant/components/waqi/config_flow.py b/homeassistant/components/waqi/config_flow.py index 7a0d4eda546..b8c6cdf57a3 100644 --- a/homeassistant/components/waqi/config_flow.py +++ b/homeassistant/components/waqi/config_flow.py @@ -1,4 +1,5 @@ """Config flow for World Air Quality Index (WAQI) integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/waqi/coordinator.py b/homeassistant/components/waqi/coordinator.py index b7beef8fda9..d1a44e9f5b8 100644 --- a/homeassistant/components/waqi/coordinator.py +++ b/homeassistant/components/waqi/coordinator.py @@ -1,4 +1,5 @@ """Coordinator for the World Air Quality Index (WAQI) integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/waqi/sensor.py b/homeassistant/components/waqi/sensor.py index 43be729e10f..8df4bf05b06 100644 --- a/homeassistant/components/waqi/sensor.py +++ b/homeassistant/components/waqi/sensor.py @@ -1,4 +1,5 @@ """Support for the World Air Quality Index service.""" + from __future__ import annotations from collections.abc import Callable, Mapping diff --git a/homeassistant/components/water_heater/__init__.py b/homeassistant/components/water_heater/__init__.py index 79572973090..dad3bd8c48b 100644 --- a/homeassistant/components/water_heater/__init__.py +++ b/homeassistant/components/water_heater/__init__.py @@ -1,4 +1,5 @@ """Support for water heater devices.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/water_heater/device_action.py b/homeassistant/components/water_heater/device_action.py index 5b0fe46934c..49cfc7e9a07 100644 --- a/homeassistant/components/water_heater/device_action.py +++ b/homeassistant/components/water_heater/device_action.py @@ -1,4 +1,5 @@ """Provides device automations for Water Heater.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/water_heater/reproduce_state.py b/homeassistant/components/water_heater/reproduce_state.py index b3be0f62273..de0bb320020 100644 --- a/homeassistant/components/water_heater/reproduce_state.py +++ b/homeassistant/components/water_heater/reproduce_state.py @@ -1,4 +1,5 @@ """Reproduce an Water heater state.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/water_heater/significant_change.py b/homeassistant/components/water_heater/significant_change.py index bacb0232ee3..c0db97c6e40 100644 --- a/homeassistant/components/water_heater/significant_change.py +++ b/homeassistant/components/water_heater/significant_change.py @@ -1,4 +1,5 @@ """Helper to test significant Water Heater state changes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/waterfurnace/__init__.py b/homeassistant/components/waterfurnace/__init__.py index 50031216609..4c150b99f43 100644 --- a/homeassistant/components/waterfurnace/__init__.py +++ b/homeassistant/components/waterfurnace/__init__.py @@ -1,4 +1,5 @@ """Support for Waterfurnaces.""" + from datetime import timedelta import logging import threading diff --git a/homeassistant/components/waterfurnace/sensor.py b/homeassistant/components/waterfurnace/sensor.py index 9d60de29264..46f76a58eb5 100644 --- a/homeassistant/components/waterfurnace/sensor.py +++ b/homeassistant/components/waterfurnace/sensor.py @@ -1,4 +1,5 @@ """Support for Waterfurnace.""" + from __future__ import annotations from homeassistant.components.sensor import ( diff --git a/homeassistant/components/watttime/__init__.py b/homeassistant/components/watttime/__init__.py index cac73f597f6..6b32cf723a3 100644 --- a/homeassistant/components/watttime/__init__.py +++ b/homeassistant/components/watttime/__init__.py @@ -1,4 +1,5 @@ """The WattTime integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/watttime/config_flow.py b/homeassistant/components/watttime/config_flow.py index 776fd130824..549f6fc7679 100644 --- a/homeassistant/components/watttime/config_flow.py +++ b/homeassistant/components/watttime/config_flow.py @@ -1,4 +1,5 @@ """Config flow for WattTime integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/watttime/diagnostics.py b/homeassistant/components/watttime/diagnostics.py index 2808e8e3c35..adedcd13835 100644 --- a/homeassistant/components/watttime/diagnostics.py +++ b/homeassistant/components/watttime/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for WattTime.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/watttime/sensor.py b/homeassistant/components/watttime/sensor.py index 93560cef808..c6cc81580d7 100644 --- a/homeassistant/components/watttime/sensor.py +++ b/homeassistant/components/watttime/sensor.py @@ -1,4 +1,5 @@ """Support for WattTime sensors.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/waze_travel_time/config_flow.py b/homeassistant/components/waze_travel_time/config_flow.py index 2b863d74f7c..a196c5f4f57 100644 --- a/homeassistant/components/waze_travel_time/config_flow.py +++ b/homeassistant/components/waze_travel_time/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Waze Travel Time integration.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/waze_travel_time/const.py b/homeassistant/components/waze_travel_time/const.py index 572676e1966..84e41c3963f 100644 --- a/homeassistant/components/waze_travel_time/const.py +++ b/homeassistant/components/waze_travel_time/const.py @@ -1,4 +1,5 @@ """Constants for waze_travel_time.""" + from __future__ import annotations DOMAIN = "waze_travel_time" diff --git a/homeassistant/components/waze_travel_time/sensor.py b/homeassistant/components/waze_travel_time/sensor.py index 5204c0b1075..e759c06bf10 100644 --- a/homeassistant/components/waze_travel_time/sensor.py +++ b/homeassistant/components/waze_travel_time/sensor.py @@ -1,4 +1,5 @@ """Support for Waze travel time sensor.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/weather/__init__.py b/homeassistant/components/weather/__init__.py index bdc8ae4d514..5c4c53079ba 100644 --- a/homeassistant/components/weather/__init__.py +++ b/homeassistant/components/weather/__init__.py @@ -1,4 +1,5 @@ """Weather component that handles meteorological data for your location.""" + from __future__ import annotations import abc diff --git a/homeassistant/components/weather/const.py b/homeassistant/components/weather/const.py index c6da2c28c71..0b5246ab31c 100644 --- a/homeassistant/components/weather/const.py +++ b/homeassistant/components/weather/const.py @@ -1,4 +1,5 @@ """Constants for weather.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/weather/intent.py b/homeassistant/components/weather/intent.py index 4fd22ceb0a9..c216fcda17d 100644 --- a/homeassistant/components/weather/intent.py +++ b/homeassistant/components/weather/intent.py @@ -1,4 +1,5 @@ """Intents for the weather integration.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/weather/significant_change.py b/homeassistant/components/weather/significant_change.py index 87e1246ce85..d36139904f5 100644 --- a/homeassistant/components/weather/significant_change.py +++ b/homeassistant/components/weather/significant_change.py @@ -1,4 +1,5 @@ """Helper to test significant Weather state changes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/weather/websocket_api.py b/homeassistant/components/weather/websocket_api.py index 39a487dcb2f..98adbd1bd02 100644 --- a/homeassistant/components/weather/websocket_api.py +++ b/homeassistant/components/weather/websocket_api.py @@ -1,4 +1,5 @@ """The weather websocket API.""" + from __future__ import annotations from typing import Any, Literal diff --git a/homeassistant/components/weatherflow/__init__.py b/homeassistant/components/weatherflow/__init__.py index fbd206b63f5..819ad90b354 100644 --- a/homeassistant/components/weatherflow/__init__.py +++ b/homeassistant/components/weatherflow/__init__.py @@ -1,4 +1,5 @@ """Get data from Smart Weather station via UDP.""" + from __future__ import annotations from pyweatherflowudp.client import EVENT_DEVICE_DISCOVERED, WeatherFlowListener diff --git a/homeassistant/components/weatherflow/config_flow.py b/homeassistant/components/weatherflow/config_flow.py index e96972437fc..11951d60272 100644 --- a/homeassistant/components/weatherflow/config_flow.py +++ b/homeassistant/components/weatherflow/config_flow.py @@ -1,4 +1,5 @@ """Config flow for WeatherFlow.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/weatherflow/sensor.py b/homeassistant/components/weatherflow/sensor.py index 74642ae04af..5bedaa9d711 100644 --- a/homeassistant/components/weatherflow/sensor.py +++ b/homeassistant/components/weatherflow/sensor.py @@ -1,4 +1,5 @@ """Sensors for the weatherflow integration.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/weatherflow_cloud/__init__.py b/homeassistant/components/weatherflow_cloud/__init__.py index 24b862433bd..a40386100e7 100644 --- a/homeassistant/components/weatherflow_cloud/__init__.py +++ b/homeassistant/components/weatherflow_cloud/__init__.py @@ -1,4 +1,5 @@ """The WeatherflowCloud integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/weatherflow_cloud/config_flow.py b/homeassistant/components/weatherflow_cloud/config_flow.py index 889b7e81d52..6e6212042e1 100644 --- a/homeassistant/components/weatherflow_cloud/config_flow.py +++ b/homeassistant/components/weatherflow_cloud/config_flow.py @@ -1,4 +1,5 @@ """Config flow for WeatherflowCloud integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/weatherflow_cloud/coordinator.py b/homeassistant/components/weatherflow_cloud/coordinator.py index 7b9ddaafaae..56554b555b0 100644 --- a/homeassistant/components/weatherflow_cloud/coordinator.py +++ b/homeassistant/components/weatherflow_cloud/coordinator.py @@ -1,4 +1,5 @@ """Data coordinator for WeatherFlow Cloud Data.""" + from datetime import timedelta from aiohttp import ClientResponseError diff --git a/homeassistant/components/weatherflow_cloud/weather.py b/homeassistant/components/weatherflow_cloud/weather.py index b4ed6a3a9d8..0d754eebb64 100644 --- a/homeassistant/components/weatherflow_cloud/weather.py +++ b/homeassistant/components/weatherflow_cloud/weather.py @@ -1,4 +1,5 @@ """Support for WeatherFlow Forecast weather service.""" + from __future__ import annotations from weatherflow4py.models.unified import WeatherFlowData diff --git a/homeassistant/components/weatherkit/__init__.py b/homeassistant/components/weatherkit/__init__.py index 307b2272d6c..49158182696 100644 --- a/homeassistant/components/weatherkit/__init__.py +++ b/homeassistant/components/weatherkit/__init__.py @@ -1,4 +1,5 @@ """Integration for Apple's WeatherKit API.""" + from __future__ import annotations from apple_weatherkit.client import ( diff --git a/homeassistant/components/weatherkit/config_flow.py b/homeassistant/components/weatherkit/config_flow.py index 1fbb0c1a36f..760516e894d 100644 --- a/homeassistant/components/weatherkit/config_flow.py +++ b/homeassistant/components/weatherkit/config_flow.py @@ -1,4 +1,5 @@ """Adds config flow for WeatherKit.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/weatherkit/const.py b/homeassistant/components/weatherkit/const.py index e35dd33c561..99cd50df8fa 100644 --- a/homeassistant/components/weatherkit/const.py +++ b/homeassistant/components/weatherkit/const.py @@ -1,4 +1,5 @@ """Constants for WeatherKit.""" + from logging import Logger, getLogger LOGGER: Logger = getLogger(__package__) diff --git a/homeassistant/components/weatherkit/coordinator.py b/homeassistant/components/weatherkit/coordinator.py index 824c85781ea..ddabba2fc1f 100644 --- a/homeassistant/components/weatherkit/coordinator.py +++ b/homeassistant/components/weatherkit/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for WeatherKit integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/webhook/__init__.py b/homeassistant/components/webhook/__init__.py index 8d73e444279..09b7541cbea 100644 --- a/homeassistant/components/webhook/__init__.py +++ b/homeassistant/components/webhook/__init__.py @@ -1,4 +1,5 @@ """Webhooks for Home Assistant.""" + from __future__ import annotations from collections.abc import Awaitable, Callable, Iterable diff --git a/homeassistant/components/webhook/trigger.py b/homeassistant/components/webhook/trigger.py index 05bb53564bd..b4fd3008cd8 100644 --- a/homeassistant/components/webhook/trigger.py +++ b/homeassistant/components/webhook/trigger.py @@ -1,4 +1,5 @@ """Offer webhook triggered automation rules.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/webmin/config_flow.py b/homeassistant/components/webmin/config_flow.py index 783590d35ba..1d9c86edbac 100644 --- a/homeassistant/components/webmin/config_flow.py +++ b/homeassistant/components/webmin/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Webmin.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/webmin/coordinator.py b/homeassistant/components/webmin/coordinator.py index 9a725ee2a77..28c8d54b0d2 100644 --- a/homeassistant/components/webmin/coordinator.py +++ b/homeassistant/components/webmin/coordinator.py @@ -1,4 +1,5 @@ """Data update coordinator for the Webmin integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/webmin/sensor.py b/homeassistant/components/webmin/sensor.py index f20f8f9b625..90d3fd71532 100644 --- a/homeassistant/components/webmin/sensor.py +++ b/homeassistant/components/webmin/sensor.py @@ -1,4 +1,5 @@ """Support for Webmin sensors.""" + from __future__ import annotations from homeassistant.components.sensor import ( diff --git a/homeassistant/components/webostv/__init__.py b/homeassistant/components/webostv/__init__.py index 6e960ceb143..479407c3199 100644 --- a/homeassistant/components/webostv/__init__.py +++ b/homeassistant/components/webostv/__init__.py @@ -1,4 +1,5 @@ """Support for LG webOS Smart TV.""" + from __future__ import annotations from contextlib import suppress diff --git a/homeassistant/components/webostv/config_flow.py b/homeassistant/components/webostv/config_flow.py index 52c17a8b411..f380e49f8a3 100644 --- a/homeassistant/components/webostv/config_flow.py +++ b/homeassistant/components/webostv/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure webostv component.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/webostv/device_trigger.py b/homeassistant/components/webostv/device_trigger.py index c7e5701af02..0175df5d828 100644 --- a/homeassistant/components/webostv/device_trigger.py +++ b/homeassistant/components/webostv/device_trigger.py @@ -1,4 +1,5 @@ """Provides device automations for control of LG webOS Smart TV.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/webostv/diagnostics.py b/homeassistant/components/webostv/diagnostics.py index 5d88d61aa9d..1657fb71d26 100644 --- a/homeassistant/components/webostv/diagnostics.py +++ b/homeassistant/components/webostv/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for LG webOS Smart TV.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/webostv/helpers.py b/homeassistant/components/webostv/helpers.py index b61e4af3e6b..edcfdcfed8b 100644 --- a/homeassistant/components/webostv/helpers.py +++ b/homeassistant/components/webostv/helpers.py @@ -1,4 +1,5 @@ """Helper functions for webOS Smart TV.""" + from __future__ import annotations from aiowebostv import WebOsClient diff --git a/homeassistant/components/webostv/media_player.py b/homeassistant/components/webostv/media_player.py index aefb6e77444..647cf64ea8e 100644 --- a/homeassistant/components/webostv/media_player.py +++ b/homeassistant/components/webostv/media_player.py @@ -1,4 +1,5 @@ """Support for interface with an LG webOS Smart TV.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/webostv/notify.py b/homeassistant/components/webostv/notify.py index c4cefc3cffe..43320687ce8 100644 --- a/homeassistant/components/webostv/notify.py +++ b/homeassistant/components/webostv/notify.py @@ -1,4 +1,5 @@ """Support for LG WebOS TV notification service.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/webostv/trigger.py b/homeassistant/components/webostv/trigger.py index 4d237993f95..3290aa4a448 100644 --- a/homeassistant/components/webostv/trigger.py +++ b/homeassistant/components/webostv/trigger.py @@ -1,4 +1,5 @@ """webOS Smart TV trigger dispatcher.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/webostv/triggers/turn_on.py b/homeassistant/components/webostv/triggers/turn_on.py index 403219f1372..f2ecb8aa98d 100644 --- a/homeassistant/components/webostv/triggers/turn_on.py +++ b/homeassistant/components/webostv/triggers/turn_on.py @@ -1,4 +1,5 @@ """webOS Smart TV device turn on trigger.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/websocket_api/__init__.py b/homeassistant/components/websocket_api/__init__.py index f7086cc81db..291b652ac09 100644 --- a/homeassistant/components/websocket_api/__init__.py +++ b/homeassistant/components/websocket_api/__init__.py @@ -1,4 +1,5 @@ """WebSocket based API for Home Assistant.""" + from __future__ import annotations from typing import Final, cast diff --git a/homeassistant/components/websocket_api/auth.py b/homeassistant/components/websocket_api/auth.py index 3940e1333d0..5093ef187c5 100644 --- a/homeassistant/components/websocket_api/auth.py +++ b/homeassistant/components/websocket_api/auth.py @@ -1,4 +1,5 @@ """Handle the auth of a connection.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/websocket_api/commands.py b/homeassistant/components/websocket_api/commands.py index 368785c17bc..376ef1cfacc 100644 --- a/homeassistant/components/websocket_api/commands.py +++ b/homeassistant/components/websocket_api/commands.py @@ -1,4 +1,5 @@ """Commands part of Websocket API.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/websocket_api/connection.py b/homeassistant/components/websocket_api/connection.py index aa7bcefadae..63b4418a19d 100644 --- a/homeassistant/components/websocket_api/connection.py +++ b/homeassistant/components/websocket_api/connection.py @@ -1,4 +1,5 @@ """Connection session.""" + from __future__ import annotations from collections.abc import Callable, Hashable diff --git a/homeassistant/components/websocket_api/const.py b/homeassistant/components/websocket_api/const.py index 9a44f80a5c8..c5de49e4033 100644 --- a/homeassistant/components/websocket_api/const.py +++ b/homeassistant/components/websocket_api/const.py @@ -1,4 +1,5 @@ """Websocket constants.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/websocket_api/decorators.py b/homeassistant/components/websocket_api/decorators.py index b4c72d497cd..4de83530642 100644 --- a/homeassistant/components/websocket_api/decorators.py +++ b/homeassistant/components/websocket_api/decorators.py @@ -1,4 +1,5 @@ """Decorators for the Websocket API.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/websocket_api/error.py b/homeassistant/components/websocket_api/error.py index 5d4ca93105d..4ed80adb365 100644 --- a/homeassistant/components/websocket_api/error.py +++ b/homeassistant/components/websocket_api/error.py @@ -1,4 +1,5 @@ """WebSocket API related errors.""" + from homeassistant.exceptions import HomeAssistantError diff --git a/homeassistant/components/websocket_api/http.py b/homeassistant/components/websocket_api/http.py index 06b9c0c4bfa..fc75b46ddbd 100644 --- a/homeassistant/components/websocket_api/http.py +++ b/homeassistant/components/websocket_api/http.py @@ -1,4 +1,5 @@ """View to accept incoming websocket connection.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/websocket_api/messages.py b/homeassistant/components/websocket_api/messages.py index 3916cdd3af7..2592f9d7356 100644 --- a/homeassistant/components/websocket_api/messages.py +++ b/homeassistant/components/websocket_api/messages.py @@ -1,4 +1,5 @@ """Message templates for websocket commands.""" + from __future__ import annotations from functools import lru_cache diff --git a/homeassistant/components/websocket_api/sensor.py b/homeassistant/components/websocket_api/sensor.py index 5857ead2c11..7d668466bc2 100644 --- a/homeassistant/components/websocket_api/sensor.py +++ b/homeassistant/components/websocket_api/sensor.py @@ -1,4 +1,5 @@ """Entity to track connections to websocket API.""" + from __future__ import annotations from homeassistant.components.sensor import SensorEntity diff --git a/homeassistant/components/wemo/__init__.py b/homeassistant/components/wemo/__init__.py index 2f4d4c84c5c..f354a5d5e50 100644 --- a/homeassistant/components/wemo/__init__.py +++ b/homeassistant/components/wemo/__init__.py @@ -1,4 +1,5 @@ """Support for WeMo device discovery.""" + from __future__ import annotations from collections.abc import Callable, Coroutine, Sequence diff --git a/homeassistant/components/wemo/device_trigger.py b/homeassistant/components/wemo/device_trigger.py index 077c32fb1ad..d9cadcdd576 100644 --- a/homeassistant/components/wemo/device_trigger.py +++ b/homeassistant/components/wemo/device_trigger.py @@ -1,4 +1,5 @@ """Triggers for WeMo devices.""" + from __future__ import annotations from pywemo.subscribe import EVENT_TYPE_LONG_PRESS diff --git a/homeassistant/components/wemo/entity.py b/homeassistant/components/wemo/entity.py index cbb2f31c79d..a6fe677d357 100644 --- a/homeassistant/components/wemo/entity.py +++ b/homeassistant/components/wemo/entity.py @@ -1,4 +1,5 @@ """Classes shared among Wemo entities.""" + from __future__ import annotations from collections.abc import Generator diff --git a/homeassistant/components/wemo/fan.py b/homeassistant/components/wemo/fan.py index 39abdba6e82..89b20bdde25 100644 --- a/homeassistant/components/wemo/fan.py +++ b/homeassistant/components/wemo/fan.py @@ -1,4 +1,5 @@ """Support for WeMo humidifier.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/wemo/light.py b/homeassistant/components/wemo/light.py index 0205a10521d..00c5204eba9 100644 --- a/homeassistant/components/wemo/light.py +++ b/homeassistant/components/wemo/light.py @@ -1,4 +1,5 @@ """Support for Belkin WeMo lights.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/wemo/sensor.py b/homeassistant/components/wemo/sensor.py index ecb0c16055c..555e2591832 100644 --- a/homeassistant/components/wemo/sensor.py +++ b/homeassistant/components/wemo/sensor.py @@ -1,4 +1,5 @@ """Support for power sensors in WeMo Insight devices.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/wemo/switch.py b/homeassistant/components/wemo/switch.py index 508621ba415..8cc95325c7e 100644 --- a/homeassistant/components/wemo/switch.py +++ b/homeassistant/components/wemo/switch.py @@ -1,4 +1,5 @@ """Support for WeMo switches.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/wemo/wemo_device.py b/homeassistant/components/wemo/wemo_device.py index f9b111d7eb1..f2bd93fa2b1 100644 --- a/homeassistant/components/wemo/wemo_device.py +++ b/homeassistant/components/wemo/wemo_device.py @@ -1,4 +1,5 @@ """Home Assistant wrapper for a pyWeMo device.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/whirlpool/__init__.py b/homeassistant/components/whirlpool/__init__.py index 10b26801c10..919f9b9be89 100644 --- a/homeassistant/components/whirlpool/__init__.py +++ b/homeassistant/components/whirlpool/__init__.py @@ -1,4 +1,5 @@ """The Whirlpool Appliances integration.""" + from dataclasses import dataclass import logging diff --git a/homeassistant/components/whirlpool/climate.py b/homeassistant/components/whirlpool/climate.py index 48b9b99c1e2..aa399746006 100644 --- a/homeassistant/components/whirlpool/climate.py +++ b/homeassistant/components/whirlpool/climate.py @@ -1,4 +1,5 @@ """Platform for climate integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/whirlpool/config_flow.py b/homeassistant/components/whirlpool/config_flow.py index aa6d7875865..e8ab765feba 100644 --- a/homeassistant/components/whirlpool/config_flow.py +++ b/homeassistant/components/whirlpool/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Whirlpool Appliances integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/whirlpool/sensor.py b/homeassistant/components/whirlpool/sensor.py index 227c0e9f653..ff92a059e96 100644 --- a/homeassistant/components/whirlpool/sensor.py +++ b/homeassistant/components/whirlpool/sensor.py @@ -1,4 +1,5 @@ """The Washer/Dryer Sensor for Whirlpool Appliances.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/whois/__init__.py b/homeassistant/components/whois/__init__.py index 746e83a2677..b9f5938d93b 100644 --- a/homeassistant/components/whois/__init__.py +++ b/homeassistant/components/whois/__init__.py @@ -1,4 +1,5 @@ """The Whois integration.""" + from __future__ import annotations from whois import Domain, query as whois_query diff --git a/homeassistant/components/whois/config_flow.py b/homeassistant/components/whois/config_flow.py index 1a35ca9749e..cb4326d996d 100644 --- a/homeassistant/components/whois/config_flow.py +++ b/homeassistant/components/whois/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Whois integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/whois/const.py b/homeassistant/components/whois/const.py index 3fbbd6ff3ab..f196053f48d 100644 --- a/homeassistant/components/whois/const.py +++ b/homeassistant/components/whois/const.py @@ -1,4 +1,5 @@ """Constants for the Whois integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/whois/diagnostics.py b/homeassistant/components/whois/diagnostics.py index 19b3822e55c..0f93461d8d8 100644 --- a/homeassistant/components/whois/diagnostics.py +++ b/homeassistant/components/whois/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Whois.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/whois/sensor.py b/homeassistant/components/whois/sensor.py index 2de6509698f..fe193b16eea 100644 --- a/homeassistant/components/whois/sensor.py +++ b/homeassistant/components/whois/sensor.py @@ -1,4 +1,5 @@ """Get WHOIS information for a given host.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/wiffi/__init__.py b/homeassistant/components/wiffi/__init__.py index 3a35ec1ed29..c465bc0d2ca 100644 --- a/homeassistant/components/wiffi/__init__.py +++ b/homeassistant/components/wiffi/__init__.py @@ -1,4 +1,5 @@ """Component for wiffi support.""" + from datetime import timedelta import errno import logging diff --git a/homeassistant/components/wiffi/binary_sensor.py b/homeassistant/components/wiffi/binary_sensor.py index cb1e1da41d8..23aebd122f2 100644 --- a/homeassistant/components/wiffi/binary_sensor.py +++ b/homeassistant/components/wiffi/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensor platform support for wiffi devices.""" + from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback diff --git a/homeassistant/components/wiffi/config_flow.py b/homeassistant/components/wiffi/config_flow.py index a186b7fe4da..17262dd0276 100644 --- a/homeassistant/components/wiffi/config_flow.py +++ b/homeassistant/components/wiffi/config_flow.py @@ -2,6 +2,7 @@ Used by UI to setup a wiffi integration. """ + from __future__ import annotations import errno diff --git a/homeassistant/components/wiffi/sensor.py b/homeassistant/components/wiffi/sensor.py index e460a346bd7..7b64628085a 100644 --- a/homeassistant/components/wiffi/sensor.py +++ b/homeassistant/components/wiffi/sensor.py @@ -1,4 +1,5 @@ """Sensor platform support for wiffi devices.""" + from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, diff --git a/homeassistant/components/wilight/config_flow.py b/homeassistant/components/wilight/config_flow.py index 15c7a4d2c3b..52b3b426c20 100644 --- a/homeassistant/components/wilight/config_flow.py +++ b/homeassistant/components/wilight/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure WiLight.""" + from urllib.parse import urlparse import pywilight diff --git a/homeassistant/components/wilight/cover.py b/homeassistant/components/wilight/cover.py index aa50b79f139..4ae4692db40 100644 --- a/homeassistant/components/wilight/cover.py +++ b/homeassistant/components/wilight/cover.py @@ -1,4 +1,5 @@ """Support for WiLight Cover.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wilight/fan.py b/homeassistant/components/wilight/fan.py index 4c34bd16bd0..5c05575c4f8 100644 --- a/homeassistant/components/wilight/fan.py +++ b/homeassistant/components/wilight/fan.py @@ -1,4 +1,5 @@ """Support for WiLight Fan.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wilight/light.py b/homeassistant/components/wilight/light.py index b17eac36f09..1a51ecd884e 100644 --- a/homeassistant/components/wilight/light.py +++ b/homeassistant/components/wilight/light.py @@ -1,4 +1,5 @@ """Support for WiLight lights.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wilight/parent_device.py b/homeassistant/components/wilight/parent_device.py index 8091e78cc76..6e96274f0a4 100644 --- a/homeassistant/components/wilight/parent_device.py +++ b/homeassistant/components/wilight/parent_device.py @@ -1,4 +1,5 @@ """The WiLight Device integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/wilight/support.py b/homeassistant/components/wilight/support.py index 9470bf74c8a..39578618d50 100644 --- a/homeassistant/components/wilight/support.py +++ b/homeassistant/components/wilight/support.py @@ -1,4 +1,5 @@ """Support for config validation using voluptuous and Translate Trigger.""" + from __future__ import annotations import calendar diff --git a/homeassistant/components/wilight/switch.py b/homeassistant/components/wilight/switch.py index ac4d65b041b..94e39492626 100644 --- a/homeassistant/components/wilight/switch.py +++ b/homeassistant/components/wilight/switch.py @@ -1,4 +1,5 @@ """Support for WiLight switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wirelesstag/binary_sensor.py b/homeassistant/components/wirelesstag/binary_sensor.py index 64a1097bcab..85efab16e70 100644 --- a/homeassistant/components/wirelesstag/binary_sensor.py +++ b/homeassistant/components/wirelesstag/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensor support for Wireless Sensor Tags.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/wirelesstag/sensor.py b/homeassistant/components/wirelesstag/sensor.py index 8ae20031723..0e88272a41c 100644 --- a/homeassistant/components/wirelesstag/sensor.py +++ b/homeassistant/components/wirelesstag/sensor.py @@ -1,4 +1,5 @@ """Sensor support for Wireless Sensor Tags platform.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/wirelesstag/switch.py b/homeassistant/components/wirelesstag/switch.py index 7f4008623b1..0eafea0699b 100644 --- a/homeassistant/components/wirelesstag/switch.py +++ b/homeassistant/components/wirelesstag/switch.py @@ -1,4 +1,5 @@ """Switch implementation for Wireless Sensor Tags (wirelesstag.net).""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/withings/__init__.py b/homeassistant/components/withings/__init__.py index f42fb7a57b9..5ca2a610e3d 100644 --- a/homeassistant/components/withings/__init__.py +++ b/homeassistant/components/withings/__init__.py @@ -2,6 +2,7 @@ For more details about this platform, please refer to the documentation at """ + from __future__ import annotations import asyncio diff --git a/homeassistant/components/withings/binary_sensor.py b/homeassistant/components/withings/binary_sensor.py index 12583ba4758..89e2c3227ae 100644 --- a/homeassistant/components/withings/binary_sensor.py +++ b/homeassistant/components/withings/binary_sensor.py @@ -1,4 +1,5 @@ """Sensors flow for Withings.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/withings/calendar.py b/homeassistant/components/withings/calendar.py index 132f00936f3..3e543e8e9ef 100644 --- a/homeassistant/components/withings/calendar.py +++ b/homeassistant/components/withings/calendar.py @@ -1,4 +1,5 @@ """Calendar platform for Withings.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/withings/config_flow.py b/homeassistant/components/withings/config_flow.py index e7baf2714a2..1b92f23685f 100644 --- a/homeassistant/components/withings/config_flow.py +++ b/homeassistant/components/withings/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Withings.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/withings/coordinator.py b/homeassistant/components/withings/coordinator.py index 2639ccccf7d..19b362dfa0a 100644 --- a/homeassistant/components/withings/coordinator.py +++ b/homeassistant/components/withings/coordinator.py @@ -1,4 +1,5 @@ """Withings coordinator.""" + from abc import abstractmethod from datetime import date, datetime, timedelta from typing import TypeVar diff --git a/homeassistant/components/withings/diagnostics.py b/homeassistant/components/withings/diagnostics.py index 31c9ffef569..bc51036e6ec 100644 --- a/homeassistant/components/withings/diagnostics.py +++ b/homeassistant/components/withings/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Withings.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/withings/entity.py b/homeassistant/components/withings/entity.py index 7f3e694533c..4c9b27c72fc 100644 --- a/homeassistant/components/withings/entity.py +++ b/homeassistant/components/withings/entity.py @@ -1,4 +1,5 @@ """Base entity for Withings.""" + from __future__ import annotations from typing import TypeVar diff --git a/homeassistant/components/withings/sensor.py b/homeassistant/components/withings/sensor.py index d882cd8cddd..a3862485da4 100644 --- a/homeassistant/components/withings/sensor.py +++ b/homeassistant/components/withings/sensor.py @@ -1,4 +1,5 @@ """Sensors flow for Withings.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/wiz/__init__.py b/homeassistant/components/wiz/__init__.py index 26d4e33a7a6..130cc73efd3 100644 --- a/homeassistant/components/wiz/__init__.py +++ b/homeassistant/components/wiz/__init__.py @@ -1,4 +1,5 @@ """WiZ Platform integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/wiz/binary_sensor.py b/homeassistant/components/wiz/binary_sensor.py index 6b3caf23a1c..b58e120a9dd 100644 --- a/homeassistant/components/wiz/binary_sensor.py +++ b/homeassistant/components/wiz/binary_sensor.py @@ -1,4 +1,5 @@ """WiZ integration binary sensor platform.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/wiz/config_flow.py b/homeassistant/components/wiz/config_flow.py index a5a9d2e5ed4..3220856b89d 100644 --- a/homeassistant/components/wiz/config_flow.py +++ b/homeassistant/components/wiz/config_flow.py @@ -1,4 +1,5 @@ """Config flow for WiZ Platform.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/wiz/const.py b/homeassistant/components/wiz/const.py index 1aeb2ada580..78074a3d5fb 100644 --- a/homeassistant/components/wiz/const.py +++ b/homeassistant/components/wiz/const.py @@ -1,4 +1,5 @@ """Constants for the WiZ Platform integration.""" + from datetime import timedelta from pywizlight.exceptions import ( diff --git a/homeassistant/components/wiz/diagnostics.py b/homeassistant/components/wiz/diagnostics.py index 4fdf62b3c8c..5f617ebafe9 100644 --- a/homeassistant/components/wiz/diagnostics.py +++ b/homeassistant/components/wiz/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for WiZ.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wiz/discovery.py b/homeassistant/components/wiz/discovery.py index 350ddfe278a..118ed20ff87 100644 --- a/homeassistant/components/wiz/discovery.py +++ b/homeassistant/components/wiz/discovery.py @@ -1,4 +1,5 @@ """The wiz integration discovery.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/wiz/entity.py b/homeassistant/components/wiz/entity.py index 87c3171d836..e7a95234e16 100644 --- a/homeassistant/components/wiz/entity.py +++ b/homeassistant/components/wiz/entity.py @@ -1,4 +1,5 @@ """WiZ integration entities.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/wiz/light.py b/homeassistant/components/wiz/light.py index 3a6ba2a9f5b..aece184720d 100644 --- a/homeassistant/components/wiz/light.py +++ b/homeassistant/components/wiz/light.py @@ -1,4 +1,5 @@ """WiZ integration light platform.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wiz/models.py b/homeassistant/components/wiz/models.py index 547ff830303..125a8cfa73b 100644 --- a/homeassistant/components/wiz/models.py +++ b/homeassistant/components/wiz/models.py @@ -1,4 +1,5 @@ """WiZ integration models.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/wiz/number.py b/homeassistant/components/wiz/number.py index 91436674d7f..ed47aec44c3 100644 --- a/homeassistant/components/wiz/number.py +++ b/homeassistant/components/wiz/number.py @@ -1,4 +1,5 @@ """Support for WiZ effect speed numbers.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/wiz/sensor.py b/homeassistant/components/wiz/sensor.py index a66c37fabb5..aae443e60d0 100644 --- a/homeassistant/components/wiz/sensor.py +++ b/homeassistant/components/wiz/sensor.py @@ -1,4 +1,5 @@ """Support for WiZ sensors.""" + from __future__ import annotations from homeassistant.components.sensor import ( diff --git a/homeassistant/components/wiz/switch.py b/homeassistant/components/wiz/switch.py index 1bebaba7579..d94bf12da9f 100644 --- a/homeassistant/components/wiz/switch.py +++ b/homeassistant/components/wiz/switch.py @@ -1,4 +1,5 @@ """WiZ integration switch platform.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wiz/utils.py b/homeassistant/components/wiz/utils.py index 278989b5b2b..4849e0fb22c 100644 --- a/homeassistant/components/wiz/utils.py +++ b/homeassistant/components/wiz/utils.py @@ -1,4 +1,5 @@ """WiZ utils.""" + from __future__ import annotations from pywizlight import BulbType diff --git a/homeassistant/components/wled/__init__.py b/homeassistant/components/wled/__init__.py index fe6ac5a1fc1..6f5bb25b162 100644 --- a/homeassistant/components/wled/__init__.py +++ b/homeassistant/components/wled/__init__.py @@ -1,4 +1,5 @@ """Support for WLED.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/wled/binary_sensor.py b/homeassistant/components/wled/binary_sensor.py index 6191235f423..260c43c8ba0 100644 --- a/homeassistant/components/wled/binary_sensor.py +++ b/homeassistant/components/wled/binary_sensor.py @@ -1,4 +1,5 @@ """Support for WLED binary sensor.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/wled/button.py b/homeassistant/components/wled/button.py index 430ee067486..7d3047c7c35 100644 --- a/homeassistant/components/wled/button.py +++ b/homeassistant/components/wled/button.py @@ -1,4 +1,5 @@ """Support for WLED button.""" + from __future__ import annotations from homeassistant.components.button import ButtonDeviceClass, ButtonEntity diff --git a/homeassistant/components/wled/config_flow.py b/homeassistant/components/wled/config_flow.py index 2c8edf4066c..c40753b686a 100644 --- a/homeassistant/components/wled/config_flow.py +++ b/homeassistant/components/wled/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the WLED integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wled/const.py b/homeassistant/components/wled/const.py index cee9984a3f6..f698347537c 100644 --- a/homeassistant/components/wled/const.py +++ b/homeassistant/components/wled/const.py @@ -1,4 +1,5 @@ """Constants for the WLED integration.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/wled/coordinator.py b/homeassistant/components/wled/coordinator.py index 6bbcb1747f0..f6219c63cb8 100644 --- a/homeassistant/components/wled/coordinator.py +++ b/homeassistant/components/wled/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for WLED.""" + from __future__ import annotations from wled import WLED, Device as WLEDDevice, WLEDConnectionClosedError, WLEDError diff --git a/homeassistant/components/wled/diagnostics.py b/homeassistant/components/wled/diagnostics.py index d0b3de5eb6b..f1eed3fc0aa 100644 --- a/homeassistant/components/wled/diagnostics.py +++ b/homeassistant/components/wled/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for WLED.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/wled/helpers.py b/homeassistant/components/wled/helpers.py index b4b5ee4c892..ad9a02b38ca 100644 --- a/homeassistant/components/wled/helpers.py +++ b/homeassistant/components/wled/helpers.py @@ -1,4 +1,5 @@ """Helpers for WLED.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/wled/light.py b/homeassistant/components/wled/light.py index 4327261d4be..1e31f090c70 100644 --- a/homeassistant/components/wled/light.py +++ b/homeassistant/components/wled/light.py @@ -1,4 +1,5 @@ """Support for LED lights.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/wled/models.py b/homeassistant/components/wled/models.py index 81405190228..ac7103303cc 100644 --- a/homeassistant/components/wled/models.py +++ b/homeassistant/components/wled/models.py @@ -1,4 +1,5 @@ """Models for WLED.""" + from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity diff --git a/homeassistant/components/wled/number.py b/homeassistant/components/wled/number.py index fd734c07fbc..4dcdc493e53 100644 --- a/homeassistant/components/wled/number.py +++ b/homeassistant/components/wled/number.py @@ -1,4 +1,5 @@ """Support for LED numbers.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/wled/select.py b/homeassistant/components/wled/select.py index 36aff0f4536..755cd5746e8 100644 --- a/homeassistant/components/wled/select.py +++ b/homeassistant/components/wled/select.py @@ -1,4 +1,5 @@ """Support for LED selects.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/wled/sensor.py b/homeassistant/components/wled/sensor.py index a2e052eacd9..daf5748021f 100644 --- a/homeassistant/components/wled/sensor.py +++ b/homeassistant/components/wled/sensor.py @@ -1,4 +1,5 @@ """Support for WLED sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/wled/switch.py b/homeassistant/components/wled/switch.py index f42e1cc7f9f..a5e998ec548 100644 --- a/homeassistant/components/wled/switch.py +++ b/homeassistant/components/wled/switch.py @@ -1,4 +1,5 @@ """Support for WLED switches.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/wled/update.py b/homeassistant/components/wled/update.py index 954279366be..bde2986a841 100644 --- a/homeassistant/components/wled/update.py +++ b/homeassistant/components/wled/update.py @@ -1,4 +1,5 @@ """Support for WLED updates.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/wolflink/__init__.py b/homeassistant/components/wolflink/__init__.py index a8c09fc664e..e1c23893f75 100644 --- a/homeassistant/components/wolflink/__init__.py +++ b/homeassistant/components/wolflink/__init__.py @@ -1,4 +1,5 @@ """The Wolf SmartSet Service integration.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/wolflink/sensor.py b/homeassistant/components/wolflink/sensor.py index 2a030f69171..3179a9ff6bd 100644 --- a/homeassistant/components/wolflink/sensor.py +++ b/homeassistant/components/wolflink/sensor.py @@ -1,4 +1,5 @@ """The Wolf SmartSet sensors.""" + from __future__ import annotations from wolf_comm.models import ( diff --git a/homeassistant/components/workday/__init__.py b/homeassistant/components/workday/__init__.py index edada92aef4..195221ef088 100644 --- a/homeassistant/components/workday/__init__.py +++ b/homeassistant/components/workday/__init__.py @@ -1,4 +1,5 @@ """Sensor to indicate whether the current day is a workday.""" + from __future__ import annotations from holidays import HolidayBase, country_holidays diff --git a/homeassistant/components/workday/config_flow.py b/homeassistant/components/workday/config_flow.py index d65bc71c6e8..a1a5ed37a14 100644 --- a/homeassistant/components/workday/config_flow.py +++ b/homeassistant/components/workday/config_flow.py @@ -1,4 +1,5 @@ """Adds config flow for Workday integration.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/workday/const.py b/homeassistant/components/workday/const.py index ad9375830dd..847c3809822 100644 --- a/homeassistant/components/workday/const.py +++ b/homeassistant/components/workday/const.py @@ -1,4 +1,5 @@ """Add constants for Workday integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/worldclock/sensor.py b/homeassistant/components/worldclock/sensor.py index e626add2534..9b2cb600ac1 100644 --- a/homeassistant/components/worldclock/sensor.py +++ b/homeassistant/components/worldclock/sensor.py @@ -1,4 +1,5 @@ """Support for showing the time in a different time zone.""" + from __future__ import annotations from datetime import tzinfo diff --git a/homeassistant/components/worldtidesinfo/sensor.py b/homeassistant/components/worldtidesinfo/sensor.py index 1a5c7ae39a2..a4d663cc184 100644 --- a/homeassistant/components/worldtidesinfo/sensor.py +++ b/homeassistant/components/worldtidesinfo/sensor.py @@ -1,4 +1,5 @@ """Support for the worldtides.info API.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/worxlandroid/sensor.py b/homeassistant/components/worxlandroid/sensor.py index 16073a3d862..10f40bea685 100644 --- a/homeassistant/components/worxlandroid/sensor.py +++ b/homeassistant/components/worxlandroid/sensor.py @@ -1,4 +1,5 @@ """Support for Worx Landroid mower.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/ws66i/__init__.py b/homeassistant/components/ws66i/__init__.py index 64f049aa9ac..1993f38e0ab 100644 --- a/homeassistant/components/ws66i/__init__.py +++ b/homeassistant/components/ws66i/__init__.py @@ -1,4 +1,5 @@ """The Soundavo WS66i 6-Zone Amplifier integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ws66i/config_flow.py b/homeassistant/components/ws66i/config_flow.py index 8f9e1f20682..5692ffcb81b 100644 --- a/homeassistant/components/ws66i/config_flow.py +++ b/homeassistant/components/ws66i/config_flow.py @@ -1,4 +1,5 @@ """Config flow for WS66i 6-Zone Amplifier integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ws66i/const.py b/homeassistant/components/ws66i/const.py index f824d991c1d..f56a100d4fe 100644 --- a/homeassistant/components/ws66i/const.py +++ b/homeassistant/components/ws66i/const.py @@ -1,4 +1,5 @@ """Constants for the Soundavo WS66i 6-Zone Amplifier Media Player component.""" + from datetime import timedelta DOMAIN = "ws66i" diff --git a/homeassistant/components/ws66i/coordinator.py b/homeassistant/components/ws66i/coordinator.py index be8ae3aad38..013e4d02b15 100644 --- a/homeassistant/components/ws66i/coordinator.py +++ b/homeassistant/components/ws66i/coordinator.py @@ -1,4 +1,5 @@ """Coordinator for WS66i.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ws66i/media_player.py b/homeassistant/components/ws66i/media_player.py index 7119002cbc4..a2cd7ba471b 100644 --- a/homeassistant/components/ws66i/media_player.py +++ b/homeassistant/components/ws66i/media_player.py @@ -1,4 +1,5 @@ """Support for interfacing with WS66i 6 zone home audio controller.""" + from pyws66i import WS66i, ZoneStatus from homeassistant.components.media_player import ( diff --git a/homeassistant/components/ws66i/models.py b/homeassistant/components/ws66i/models.py index 84f481b9a4a..3c46d071790 100644 --- a/homeassistant/components/ws66i/models.py +++ b/homeassistant/components/ws66i/models.py @@ -1,4 +1,5 @@ """The ws66i integration models.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/wsdot/sensor.py b/homeassistant/components/wsdot/sensor.py index d9df2b7abaf..14e21f79282 100644 --- a/homeassistant/components/wsdot/sensor.py +++ b/homeassistant/components/wsdot/sensor.py @@ -1,4 +1,5 @@ """Support for Washington State Department of Transportation (WSDOT) data.""" + from __future__ import annotations from datetime import datetime, timedelta, timezone diff --git a/homeassistant/components/wyoming/__init__.py b/homeassistant/components/wyoming/__init__.py index 88e490d6dc9..3ef71e2901b 100644 --- a/homeassistant/components/wyoming/__init__.py +++ b/homeassistant/components/wyoming/__init__.py @@ -1,4 +1,5 @@ """The Wyoming integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/wyoming/config_flow.py b/homeassistant/components/wyoming/config_flow.py index d1767c558a5..8461d9e83ac 100644 --- a/homeassistant/components/wyoming/config_flow.py +++ b/homeassistant/components/wyoming/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Wyoming integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/wyoming/devices.py b/homeassistant/components/wyoming/devices.py index 6865669fbf0..2ca66f3b21a 100644 --- a/homeassistant/components/wyoming/devices.py +++ b/homeassistant/components/wyoming/devices.py @@ -1,4 +1,5 @@ """Class to manage satellite devices.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/wyoming/error.py b/homeassistant/components/wyoming/error.py index 40b2e70ce69..0ccd35462b7 100644 --- a/homeassistant/components/wyoming/error.py +++ b/homeassistant/components/wyoming/error.py @@ -1,4 +1,5 @@ """Errors for the Wyoming integration.""" + from homeassistant.exceptions import HomeAssistantError diff --git a/homeassistant/components/wyoming/models.py b/homeassistant/components/wyoming/models.py index dce45d509eb..066af144d78 100644 --- a/homeassistant/components/wyoming/models.py +++ b/homeassistant/components/wyoming/models.py @@ -1,4 +1,5 @@ """Models for wyoming.""" + from dataclasses import dataclass from .data import WyomingService diff --git a/homeassistant/components/wyoming/stt.py b/homeassistant/components/wyoming/stt.py index 8a21ef051fc..227fa3a0eca 100644 --- a/homeassistant/components/wyoming/stt.py +++ b/homeassistant/components/wyoming/stt.py @@ -1,4 +1,5 @@ """Support for Wyoming speech-to-text services.""" + from collections.abc import AsyncIterable import logging diff --git a/homeassistant/components/wyoming/tts.py b/homeassistant/components/wyoming/tts.py index f024f925514..65ce4d942f1 100644 --- a/homeassistant/components/wyoming/tts.py +++ b/homeassistant/components/wyoming/tts.py @@ -1,4 +1,5 @@ """Support for Wyoming text-to-speech services.""" + from collections import defaultdict import io import logging diff --git a/homeassistant/components/x10/light.py b/homeassistant/components/x10/light.py index b7e331e2199..5fbbd4f2ca6 100644 --- a/homeassistant/components/x10/light.py +++ b/homeassistant/components/x10/light.py @@ -1,4 +1,5 @@ """Support for X10 lights.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/xbox/__init__.py b/homeassistant/components/xbox/__init__.py index 37e11dd2693..3c9b5a44f04 100644 --- a/homeassistant/components/xbox/__init__.py +++ b/homeassistant/components/xbox/__init__.py @@ -1,4 +1,5 @@ """The xbox integration.""" + from __future__ import annotations from contextlib import suppress diff --git a/homeassistant/components/xbox/api.py b/homeassistant/components/xbox/api.py index 04714afa33e..a0c2d4cfb16 100644 --- a/homeassistant/components/xbox/api.py +++ b/homeassistant/components/xbox/api.py @@ -1,4 +1,5 @@ """API for xbox bound to Home Assistant OAuth.""" + from aiohttp import ClientSession from xbox.webapi.authentication.manager import AuthenticationManager from xbox.webapi.authentication.models import OAuth2TokenResponse diff --git a/homeassistant/components/xbox/base_sensor.py b/homeassistant/components/xbox/base_sensor.py index 9aecb100df0..7769d639f44 100644 --- a/homeassistant/components/xbox/base_sensor.py +++ b/homeassistant/components/xbox/base_sensor.py @@ -1,4 +1,5 @@ """Base Sensor for the Xbox Integration.""" + from __future__ import annotations from yarl import URL diff --git a/homeassistant/components/xbox/binary_sensor.py b/homeassistant/components/xbox/binary_sensor.py index 3c262bce82e..ffd99cde30e 100644 --- a/homeassistant/components/xbox/binary_sensor.py +++ b/homeassistant/components/xbox/binary_sensor.py @@ -1,4 +1,5 @@ """Xbox friends binary sensors.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/xbox/browse_media.py b/homeassistant/components/xbox/browse_media.py index 138b0bd612c..7dcfa90dcec 100644 --- a/homeassistant/components/xbox/browse_media.py +++ b/homeassistant/components/xbox/browse_media.py @@ -1,4 +1,5 @@ """Support for media browsing.""" + from __future__ import annotations from typing import NamedTuple diff --git a/homeassistant/components/xbox/media_player.py b/homeassistant/components/xbox/media_player.py index 060720338e8..f2cbc2e7c87 100644 --- a/homeassistant/components/xbox/media_player.py +++ b/homeassistant/components/xbox/media_player.py @@ -1,4 +1,5 @@ """Xbox Media Player Support.""" + from __future__ import annotations import re diff --git a/homeassistant/components/xbox/media_source.py b/homeassistant/components/xbox/media_source.py index 6a2def82a96..ea444ce1bc9 100644 --- a/homeassistant/components/xbox/media_source.py +++ b/homeassistant/components/xbox/media_source.py @@ -1,4 +1,5 @@ """Xbox Media Source Implementation.""" + from __future__ import annotations from contextlib import suppress diff --git a/homeassistant/components/xbox/remote.py b/homeassistant/components/xbox/remote.py index fdb4e80cf9e..a720025a1e6 100644 --- a/homeassistant/components/xbox/remote.py +++ b/homeassistant/components/xbox/remote.py @@ -1,4 +1,5 @@ """Xbox Remote support.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/xbox/sensor.py b/homeassistant/components/xbox/sensor.py index 77d52719c88..4e258399a5d 100644 --- a/homeassistant/components/xbox/sensor.py +++ b/homeassistant/components/xbox/sensor.py @@ -1,4 +1,5 @@ """Xbox friends binary sensors.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/xeoma/camera.py b/homeassistant/components/xeoma/camera.py index 31b80618d9e..7d6abde8535 100644 --- a/homeassistant/components/xeoma/camera.py +++ b/homeassistant/components/xeoma/camera.py @@ -1,4 +1,5 @@ """Support for Xeoma Cameras.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/xiaomi/camera.py b/homeassistant/components/xiaomi/camera.py index e9d686a6365..f3e850a7839 100644 --- a/homeassistant/components/xiaomi/camera.py +++ b/homeassistant/components/xiaomi/camera.py @@ -1,4 +1,5 @@ """Component providing support for Xiaomi Cameras.""" + from __future__ import annotations from ftplib import FTP, error_perm diff --git a/homeassistant/components/xiaomi/device_tracker.py b/homeassistant/components/xiaomi/device_tracker.py index f277060304a..f50d67a01b4 100644 --- a/homeassistant/components/xiaomi/device_tracker.py +++ b/homeassistant/components/xiaomi/device_tracker.py @@ -1,4 +1,5 @@ """Support for Xiaomi Mi routers.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/xiaomi_aqara/cover.py b/homeassistant/components/xiaomi_aqara/cover.py index b6de7189d83..64c9f6f208a 100644 --- a/homeassistant/components/xiaomi_aqara/cover.py +++ b/homeassistant/components/xiaomi_aqara/cover.py @@ -1,4 +1,5 @@ """Support for Xiaomi curtain.""" + from typing import Any from homeassistant.components.cover import ATTR_POSITION, CoverEntity diff --git a/homeassistant/components/xiaomi_aqara/lock.py b/homeassistant/components/xiaomi_aqara/lock.py index fea729b2b47..ae6cf2c4e8f 100644 --- a/homeassistant/components/xiaomi_aqara/lock.py +++ b/homeassistant/components/xiaomi_aqara/lock.py @@ -1,4 +1,5 @@ """Support for Xiaomi Aqara locks.""" + from __future__ import annotations from homeassistant.components.lock import LockEntity diff --git a/homeassistant/components/xiaomi_aqara/sensor.py b/homeassistant/components/xiaomi_aqara/sensor.py index e114adaa8c4..4b354a6e730 100644 --- a/homeassistant/components/xiaomi_aqara/sensor.py +++ b/homeassistant/components/xiaomi_aqara/sensor.py @@ -1,4 +1,5 @@ """Support for Xiaomi Aqara sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/xiaomi_ble/__init__.py b/homeassistant/components/xiaomi_ble/__init__.py index 3adafc6d05e..1402a15a56d 100644 --- a/homeassistant/components/xiaomi_ble/__init__.py +++ b/homeassistant/components/xiaomi_ble/__init__.py @@ -1,4 +1,5 @@ """The Xiaomi Bluetooth integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/xiaomi_ble/binary_sensor.py b/homeassistant/components/xiaomi_ble/binary_sensor.py index cd6f7b453bb..2e2c3251add 100644 --- a/homeassistant/components/xiaomi_ble/binary_sensor.py +++ b/homeassistant/components/xiaomi_ble/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Xiaomi binary sensors.""" + from __future__ import annotations from xiaomi_ble.parser import ( diff --git a/homeassistant/components/xiaomi_ble/config_flow.py b/homeassistant/components/xiaomi_ble/config_flow.py index 2c8be4954eb..8209c9565bd 100644 --- a/homeassistant/components/xiaomi_ble/config_flow.py +++ b/homeassistant/components/xiaomi_ble/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Xiaomi Bluetooth integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/xiaomi_ble/const.py b/homeassistant/components/xiaomi_ble/const.py index 5f9dea9eb45..a421dda7195 100644 --- a/homeassistant/components/xiaomi_ble/const.py +++ b/homeassistant/components/xiaomi_ble/const.py @@ -1,4 +1,5 @@ """Constants for the Xiaomi Bluetooth integration.""" + from __future__ import annotations from typing import Final, TypedDict diff --git a/homeassistant/components/xiaomi_ble/coordinator.py b/homeassistant/components/xiaomi_ble/coordinator.py index a935f3ea199..ef5212584d8 100644 --- a/homeassistant/components/xiaomi_ble/coordinator.py +++ b/homeassistant/components/xiaomi_ble/coordinator.py @@ -1,4 +1,5 @@ """The Xiaomi BLE integration.""" + from collections.abc import Callable, Coroutine from logging import Logger from typing import Any diff --git a/homeassistant/components/xiaomi_ble/device.py b/homeassistant/components/xiaomi_ble/device.py index 5714db4eadd..4f712a7a77c 100644 --- a/homeassistant/components/xiaomi_ble/device.py +++ b/homeassistant/components/xiaomi_ble/device.py @@ -1,4 +1,5 @@ """Support for Xioami BLE devices.""" + from __future__ import annotations from xiaomi_ble import DeviceKey diff --git a/homeassistant/components/xiaomi_ble/device_trigger.py b/homeassistant/components/xiaomi_ble/device_trigger.py index 8d281ddc8a9..eb345e91094 100644 --- a/homeassistant/components/xiaomi_ble/device_trigger.py +++ b/homeassistant/components/xiaomi_ble/device_trigger.py @@ -1,4 +1,5 @@ """Provides device triggers for Xiaomi BLE.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/xiaomi_ble/event.py b/homeassistant/components/xiaomi_ble/event.py index 2c1550dc5d7..4b0f9a61433 100644 --- a/homeassistant/components/xiaomi_ble/event.py +++ b/homeassistant/components/xiaomi_ble/event.py @@ -1,4 +1,5 @@ """Support for Xiaomi event entities.""" + from __future__ import annotations from dataclasses import replace diff --git a/homeassistant/components/xiaomi_ble/sensor.py b/homeassistant/components/xiaomi_ble/sensor.py index cdb7b3a8fd8..2bcc67e2668 100644 --- a/homeassistant/components/xiaomi_ble/sensor.py +++ b/homeassistant/components/xiaomi_ble/sensor.py @@ -1,4 +1,5 @@ """Support for xiaomi ble sensors.""" + from __future__ import annotations from xiaomi_ble import DeviceClass, SensorUpdate, Units diff --git a/homeassistant/components/xiaomi_miio/__init__.py b/homeassistant/components/xiaomi_miio/__init__.py index 716d4a04fa7..aa9bbe5dcc6 100644 --- a/homeassistant/components/xiaomi_miio/__init__.py +++ b/homeassistant/components/xiaomi_miio/__init__.py @@ -1,4 +1,5 @@ """Support for Xiaomi Miio.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/xiaomi_miio/air_quality.py b/homeassistant/components/xiaomi_miio/air_quality.py index f9248ba5ff3..80dd751a98c 100644 --- a/homeassistant/components/xiaomi_miio/air_quality.py +++ b/homeassistant/components/xiaomi_miio/air_quality.py @@ -1,4 +1,5 @@ """Support for Xiaomi Mi Air Quality Monitor (PM2.5).""" + from collections.abc import Callable import logging diff --git a/homeassistant/components/xiaomi_miio/alarm_control_panel.py b/homeassistant/components/xiaomi_miio/alarm_control_panel.py index e92dd76be39..72530227e88 100644 --- a/homeassistant/components/xiaomi_miio/alarm_control_panel.py +++ b/homeassistant/components/xiaomi_miio/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Xiomi Gateway alarm control panels.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/xiaomi_miio/binary_sensor.py b/homeassistant/components/xiaomi_miio/binary_sensor.py index e1b06175493..7729ce27d29 100644 --- a/homeassistant/components/xiaomi_miio/binary_sensor.py +++ b/homeassistant/components/xiaomi_miio/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Xiaomi Miio binary sensors.""" + from __future__ import annotations from collections.abc import Callable, Iterable diff --git a/homeassistant/components/xiaomi_miio/button.py b/homeassistant/components/xiaomi_miio/button.py index 4ebbf34f295..38e6afa5ffb 100644 --- a/homeassistant/components/xiaomi_miio/button.py +++ b/homeassistant/components/xiaomi_miio/button.py @@ -1,4 +1,5 @@ """Support for Xiaomi buttons.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/xiaomi_miio/config_flow.py b/homeassistant/components/xiaomi_miio/config_flow.py index f47a14ec89c..e2a129e147d 100644 --- a/homeassistant/components/xiaomi_miio/config_flow.py +++ b/homeassistant/components/xiaomi_miio/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure Xiaomi Miio.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/xiaomi_miio/const.py b/homeassistant/components/xiaomi_miio/const.py index ef9668dbee4..d643602531d 100644 --- a/homeassistant/components/xiaomi_miio/const.py +++ b/homeassistant/components/xiaomi_miio/const.py @@ -1,4 +1,5 @@ """Constants for the Xiaomi Miio component.""" + from miio.integrations.vacuum.roborock.vacuum import ( ROCKROBO_E2, ROCKROBO_S4, diff --git a/homeassistant/components/xiaomi_miio/device_tracker.py b/homeassistant/components/xiaomi_miio/device_tracker.py index 977dc29ac42..af023e5e999 100644 --- a/homeassistant/components/xiaomi_miio/device_tracker.py +++ b/homeassistant/components/xiaomi_miio/device_tracker.py @@ -1,4 +1,5 @@ """Support for Xiaomi Mi WiFi Repeater 2.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/xiaomi_miio/diagnostics.py b/homeassistant/components/xiaomi_miio/diagnostics.py index eb823cd5abc..749bea45f96 100644 --- a/homeassistant/components/xiaomi_miio/diagnostics.py +++ b/homeassistant/components/xiaomi_miio/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Xiaomi Miio.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/xiaomi_miio/fan.py b/homeassistant/components/xiaomi_miio/fan.py index 30383426210..75533513b5e 100644 --- a/homeassistant/components/xiaomi_miio/fan.py +++ b/homeassistant/components/xiaomi_miio/fan.py @@ -1,4 +1,5 @@ """Support for Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/xiaomi_miio/light.py b/homeassistant/components/xiaomi_miio/light.py index 8d198ae2a8f..cbbf12f9ab1 100644 --- a/homeassistant/components/xiaomi_miio/light.py +++ b/homeassistant/components/xiaomi_miio/light.py @@ -1,4 +1,5 @@ """Support for Xiaomi Philips Lights.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/xiaomi_miio/number.py b/homeassistant/components/xiaomi_miio/number.py index 3e952c1ab3f..71e92ad04a9 100644 --- a/homeassistant/components/xiaomi_miio/number.py +++ b/homeassistant/components/xiaomi_miio/number.py @@ -1,4 +1,5 @@ """Motor speed support for Xiaomi Mi Air Humidifier.""" + from __future__ import annotations import dataclasses diff --git a/homeassistant/components/xiaomi_miio/remote.py b/homeassistant/components/xiaomi_miio/remote.py index ffae02a2ee4..c1234b77bbc 100644 --- a/homeassistant/components/xiaomi_miio/remote.py +++ b/homeassistant/components/xiaomi_miio/remote.py @@ -1,4 +1,5 @@ """Support for the Xiaomi IR Remote (Chuangmi IR).""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/xiaomi_miio/select.py b/homeassistant/components/xiaomi_miio/select.py index b70dab1921a..d87037cdd2d 100644 --- a/homeassistant/components/xiaomi_miio/select.py +++ b/homeassistant/components/xiaomi_miio/select.py @@ -1,4 +1,5 @@ """Support led_brightness for Mi Air Humidifier.""" + from __future__ import annotations from dataclasses import dataclass, field diff --git a/homeassistant/components/xiaomi_miio/sensor.py b/homeassistant/components/xiaomi_miio/sensor.py index a8435d6a8a1..a7b3ff176bd 100644 --- a/homeassistant/components/xiaomi_miio/sensor.py +++ b/homeassistant/components/xiaomi_miio/sensor.py @@ -1,4 +1,5 @@ """Support for Xiaomi Mi Air Quality Monitor (PM2.5) and Humidifier.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/xiaomi_miio/switch.py b/homeassistant/components/xiaomi_miio/switch.py index 68714f1a6ff..85e9e77e120 100644 --- a/homeassistant/components/xiaomi_miio/switch.py +++ b/homeassistant/components/xiaomi_miio/switch.py @@ -1,4 +1,5 @@ """Support for Xiaomi Smart WiFi Socket and Smart Power Strip.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/xiaomi_miio/vacuum.py b/homeassistant/components/xiaomi_miio/vacuum.py index 73e2e54b62f..41f2c2386e1 100644 --- a/homeassistant/components/xiaomi_miio/vacuum.py +++ b/homeassistant/components/xiaomi_miio/vacuum.py @@ -1,4 +1,5 @@ """Support for the Xiaomi vacuum cleaner robot.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/xiaomi_tv/media_player.py b/homeassistant/components/xiaomi_tv/media_player.py index 82444c26f65..da692d21bfc 100644 --- a/homeassistant/components/xiaomi_tv/media_player.py +++ b/homeassistant/components/xiaomi_tv/media_player.py @@ -1,4 +1,5 @@ """Add support for the Xiaomi TVs.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/xmpp/notify.py b/homeassistant/components/xmpp/notify.py index 0150e761838..50797536aee 100644 --- a/homeassistant/components/xmpp/notify.py +++ b/homeassistant/components/xmpp/notify.py @@ -1,4 +1,5 @@ """Jabber (XMPP) notification service.""" + from __future__ import annotations from concurrent.futures import TimeoutError as FutTimeoutError diff --git a/homeassistant/components/xs1/climate.py b/homeassistant/components/xs1/climate.py index 949d2330347..e594f32adff 100644 --- a/homeassistant/components/xs1/climate.py +++ b/homeassistant/components/xs1/climate.py @@ -1,4 +1,5 @@ """Support for XS1 climate devices.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/xs1/sensor.py b/homeassistant/components/xs1/sensor.py index 4855c8b8dcf..e98fd33743b 100644 --- a/homeassistant/components/xs1/sensor.py +++ b/homeassistant/components/xs1/sensor.py @@ -1,4 +1,5 @@ """Support for XS1 sensors.""" + from __future__ import annotations from xs1_api_client.api_constants import ActuatorType diff --git a/homeassistant/components/xs1/switch.py b/homeassistant/components/xs1/switch.py index 0b231a0303c..1a2113973e3 100644 --- a/homeassistant/components/xs1/switch.py +++ b/homeassistant/components/xs1/switch.py @@ -1,4 +1,5 @@ """Support for XS1 switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yale_smart_alarm/__init__.py b/homeassistant/components/yale_smart_alarm/__init__.py index dac5a98d738..94728ee020c 100644 --- a/homeassistant/components/yale_smart_alarm/__init__.py +++ b/homeassistant/components/yale_smart_alarm/__init__.py @@ -1,4 +1,5 @@ """The yale_smart_alarm component.""" + from __future__ import annotations from homeassistant.components.lock import CONF_DEFAULT_CODE, DOMAIN as LOCK_DOMAIN diff --git a/homeassistant/components/yale_smart_alarm/alarm_control_panel.py b/homeassistant/components/yale_smart_alarm/alarm_control_panel.py index 31851ad3ceb..e4729622a64 100644 --- a/homeassistant/components/yale_smart_alarm/alarm_control_panel.py +++ b/homeassistant/components/yale_smart_alarm/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Yale Alarm.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/homeassistant/components/yale_smart_alarm/binary_sensor.py b/homeassistant/components/yale_smart_alarm/binary_sensor.py index 2aad449a3f7..87101418a14 100644 --- a/homeassistant/components/yale_smart_alarm/binary_sensor.py +++ b/homeassistant/components/yale_smart_alarm/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensors for Yale Alarm.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/yale_smart_alarm/button.py b/homeassistant/components/yale_smart_alarm/button.py index 4521c4925b1..54fc905d1aa 100644 --- a/homeassistant/components/yale_smart_alarm/button.py +++ b/homeassistant/components/yale_smart_alarm/button.py @@ -1,4 +1,5 @@ """Support for Yale Smart Alarm button.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/homeassistant/components/yale_smart_alarm/config_flow.py b/homeassistant/components/yale_smart_alarm/config_flow.py index 6cdf7a298f3..644160a8d93 100644 --- a/homeassistant/components/yale_smart_alarm/config_flow.py +++ b/homeassistant/components/yale_smart_alarm/config_flow.py @@ -1,4 +1,5 @@ """Adds config flow for Yale Smart Alarm integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/yale_smart_alarm/coordinator.py b/homeassistant/components/yale_smart_alarm/coordinator.py index e1cff8fb2a5..642704b637d 100644 --- a/homeassistant/components/yale_smart_alarm/coordinator.py +++ b/homeassistant/components/yale_smart_alarm/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the Yale integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/yale_smart_alarm/diagnostics.py b/homeassistant/components/yale_smart_alarm/diagnostics.py index c650ff5f5ed..99ec977de20 100644 --- a/homeassistant/components/yale_smart_alarm/diagnostics.py +++ b/homeassistant/components/yale_smart_alarm/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Yale Smart Alarm.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yale_smart_alarm/lock.py b/homeassistant/components/yale_smart_alarm/lock.py index c5a9bb79ba8..8acfecbf034 100644 --- a/homeassistant/components/yale_smart_alarm/lock.py +++ b/homeassistant/components/yale_smart_alarm/lock.py @@ -1,4 +1,5 @@ """Lock for Yale Alarm.""" + from __future__ import annotations from typing import TYPE_CHECKING, Any diff --git a/homeassistant/components/yalexs_ble/__init__.py b/homeassistant/components/yalexs_ble/__init__.py index 5082029af29..8c9c5176003 100644 --- a/homeassistant/components/yalexs_ble/__init__.py +++ b/homeassistant/components/yalexs_ble/__init__.py @@ -1,4 +1,5 @@ """The Yale Access Bluetooth integration.""" + from __future__ import annotations from yalexs_ble import ( diff --git a/homeassistant/components/yalexs_ble/binary_sensor.py b/homeassistant/components/yalexs_ble/binary_sensor.py index 8213baf33aa..a127aa66b93 100644 --- a/homeassistant/components/yalexs_ble/binary_sensor.py +++ b/homeassistant/components/yalexs_ble/binary_sensor.py @@ -1,4 +1,5 @@ """Support for yalexs ble binary sensors.""" + from __future__ import annotations from yalexs_ble import ConnectionInfo, DoorStatus, LockInfo, LockState diff --git a/homeassistant/components/yalexs_ble/config_flow.py b/homeassistant/components/yalexs_ble/config_flow.py index 01e55c66ab1..3ec7f675d7a 100644 --- a/homeassistant/components/yalexs_ble/config_flow.py +++ b/homeassistant/components/yalexs_ble/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Yale Access Bluetooth integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/yalexs_ble/entity.py b/homeassistant/components/yalexs_ble/entity.py index 9135f0c0896..afa80b8e313 100644 --- a/homeassistant/components/yalexs_ble/entity.py +++ b/homeassistant/components/yalexs_ble/entity.py @@ -1,4 +1,5 @@ """The yalexs_ble integration entities.""" + from __future__ import annotations from yalexs_ble import ConnectionInfo, LockInfo, LockState diff --git a/homeassistant/components/yalexs_ble/lock.py b/homeassistant/components/yalexs_ble/lock.py index f6fa1917d7e..9f508b1a8ee 100644 --- a/homeassistant/components/yalexs_ble/lock.py +++ b/homeassistant/components/yalexs_ble/lock.py @@ -1,4 +1,5 @@ """Support for Yale Access Bluetooth locks.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yalexs_ble/models.py b/homeassistant/components/yalexs_ble/models.py index 3b83b52cf73..cc6b3697e72 100644 --- a/homeassistant/components/yalexs_ble/models.py +++ b/homeassistant/components/yalexs_ble/models.py @@ -1,4 +1,5 @@ """The yalexs_ble integration models.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/yalexs_ble/sensor.py b/homeassistant/components/yalexs_ble/sensor.py index da698d1b501..e400111ddf5 100644 --- a/homeassistant/components/yalexs_ble/sensor.py +++ b/homeassistant/components/yalexs_ble/sensor.py @@ -1,4 +1,5 @@ """Support for yalexs ble sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/yalexs_ble/util.py b/homeassistant/components/yalexs_ble/util.py index e361e141a42..328aa2b6375 100644 --- a/homeassistant/components/yalexs_ble/util.py +++ b/homeassistant/components/yalexs_ble/util.py @@ -1,4 +1,5 @@ """The yalexs_ble integration models.""" + from __future__ import annotations import platform diff --git a/homeassistant/components/yamaha/media_player.py b/homeassistant/components/yamaha/media_player.py index e2658c21f37..c648994c38d 100644 --- a/homeassistant/components/yamaha/media_player.py +++ b/homeassistant/components/yamaha/media_player.py @@ -1,4 +1,5 @@ """Support for Yamaha Receivers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/yamaha_musiccast/__init__.py b/homeassistant/components/yamaha_musiccast/__init__.py index 5242aa90819..9c7e6d07b82 100644 --- a/homeassistant/components/yamaha_musiccast/__init__.py +++ b/homeassistant/components/yamaha_musiccast/__init__.py @@ -1,4 +1,5 @@ """The MusicCast integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/yamaha_musiccast/config_flow.py b/homeassistant/components/yamaha_musiccast/config_flow.py index 078efdc9471..34d352b790e 100644 --- a/homeassistant/components/yamaha_musiccast/config_flow.py +++ b/homeassistant/components/yamaha_musiccast/config_flow.py @@ -1,4 +1,5 @@ """Config flow for MusicCast.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/yamaha_musiccast/media_player.py b/homeassistant/components/yamaha_musiccast/media_player.py index 42549fb20d9..399d645ff20 100644 --- a/homeassistant/components/yamaha_musiccast/media_player.py +++ b/homeassistant/components/yamaha_musiccast/media_player.py @@ -1,4 +1,5 @@ """Implementation of the musiccast media player.""" + from __future__ import annotations import contextlib diff --git a/homeassistant/components/yamaha_musiccast/number.py b/homeassistant/components/yamaha_musiccast/number.py index 105cb0edb3a..f820a31c4be 100644 --- a/homeassistant/components/yamaha_musiccast/number.py +++ b/homeassistant/components/yamaha_musiccast/number.py @@ -1,4 +1,5 @@ """Number entities for musiccast.""" + from __future__ import annotations from aiomusiccast.capabilities import NumberSetter diff --git a/homeassistant/components/yamaha_musiccast/select.py b/homeassistant/components/yamaha_musiccast/select.py index 8ef9df1ba2f..c139dfb71fc 100644 --- a/homeassistant/components/yamaha_musiccast/select.py +++ b/homeassistant/components/yamaha_musiccast/select.py @@ -1,4 +1,5 @@ """The select entities for musiccast.""" + from __future__ import annotations from aiomusiccast.capabilities import OptionSetter diff --git a/homeassistant/components/yamaha_musiccast/switch.py b/homeassistant/components/yamaha_musiccast/switch.py index f48e7c11713..4402ddc1c38 100644 --- a/homeassistant/components/yamaha_musiccast/switch.py +++ b/homeassistant/components/yamaha_musiccast/switch.py @@ -1,4 +1,5 @@ """The switch entities for musiccast.""" + from typing import Any from aiomusiccast.capabilities import BinarySetter diff --git a/homeassistant/components/yandex_transport/sensor.py b/homeassistant/components/yandex_transport/sensor.py index 1fbae6c88a6..bcef8248aa3 100644 --- a/homeassistant/components/yandex_transport/sensor.py +++ b/homeassistant/components/yandex_transport/sensor.py @@ -1,4 +1,5 @@ """Service for obtaining information about closer bus from Transport Yandex Service.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/yardian/__init__.py b/homeassistant/components/yardian/__init__.py index d6cee9015b8..eafdc8e68db 100644 --- a/homeassistant/components/yardian/__init__.py +++ b/homeassistant/components/yardian/__init__.py @@ -1,4 +1,5 @@ """The Yardian integration.""" + from __future__ import annotations from pyyardian import AsyncYardianClient diff --git a/homeassistant/components/yardian/config_flow.py b/homeassistant/components/yardian/config_flow.py index 83ff1ef5c81..e23ca536d4e 100644 --- a/homeassistant/components/yardian/config_flow.py +++ b/homeassistant/components/yardian/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Yardian integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/yardian/switch.py b/homeassistant/components/yardian/switch.py index 5c4d0b93e74..549331b6b5f 100644 --- a/homeassistant/components/yardian/switch.py +++ b/homeassistant/components/yardian/switch.py @@ -1,4 +1,5 @@ """Support for Yardian integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yeelight/__init__.py b/homeassistant/components/yeelight/__init__.py index f77e4d08dc9..0ed75318ac7 100644 --- a/homeassistant/components/yeelight/__init__.py +++ b/homeassistant/components/yeelight/__init__.py @@ -1,4 +1,5 @@ """Support for Xiaomi Yeelight WiFi color bulb.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/yeelight/config_flow.py b/homeassistant/components/yeelight/config_flow.py index afa2eff64c4..d7bf4e25996 100644 --- a/homeassistant/components/yeelight/config_flow.py +++ b/homeassistant/components/yeelight/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Yeelight integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/yeelight/device.py b/homeassistant/components/yeelight/device.py index bb5159c0b3b..c42fd072728 100644 --- a/homeassistant/components/yeelight/device.py +++ b/homeassistant/components/yeelight/device.py @@ -1,4 +1,5 @@ """Support for Xiaomi Yeelight WiFi color bulb.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/yeelight/entity.py b/homeassistant/components/yeelight/entity.py index 8056ea085b7..c0bc45f6a51 100644 --- a/homeassistant/components/yeelight/entity.py +++ b/homeassistant/components/yeelight/entity.py @@ -1,4 +1,5 @@ """Support for Xiaomi Yeelight WiFi color bulb.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/yeelight/light.py b/homeassistant/components/yeelight/light.py index abc17b8abd8..a9a35cb71b7 100644 --- a/homeassistant/components/yeelight/light.py +++ b/homeassistant/components/yeelight/light.py @@ -1,4 +1,5 @@ """Light platform support for yeelight.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/yeelight/scanner.py b/homeassistant/components/yeelight/scanner.py index 8fa41bb92b1..c98ca625029 100644 --- a/homeassistant/components/yeelight/scanner.py +++ b/homeassistant/components/yeelight/scanner.py @@ -1,4 +1,5 @@ """Support for Xiaomi Yeelight WiFi color bulb.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/yeelightsunflower/light.py b/homeassistant/components/yeelightsunflower/light.py index c50c176c157..45b662846d5 100644 --- a/homeassistant/components/yeelightsunflower/light.py +++ b/homeassistant/components/yeelightsunflower/light.py @@ -1,4 +1,5 @@ """Support for Yeelight Sunflower color bulbs (not Yeelight Blue or WiFi).""" + from __future__ import annotations import logging diff --git a/homeassistant/components/yi/camera.py b/homeassistant/components/yi/camera.py index 632260a899c..fbc3294e25d 100644 --- a/homeassistant/components/yi/camera.py +++ b/homeassistant/components/yi/camera.py @@ -1,4 +1,5 @@ """Support for Xiaomi Cameras (HiSilicon Hi3518e V200).""" + from __future__ import annotations import logging diff --git a/homeassistant/components/yolink/__init__.py b/homeassistant/components/yolink/__init__.py index 270bd550038..f1d2ec6602b 100644 --- a/homeassistant/components/yolink/__init__.py +++ b/homeassistant/components/yolink/__init__.py @@ -1,4 +1,5 @@ """The yolink integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/yolink/api.py b/homeassistant/components/yolink/api.py index 0991baed23f..fd6f8832faf 100644 --- a/homeassistant/components/yolink/api.py +++ b/homeassistant/components/yolink/api.py @@ -1,4 +1,5 @@ """API for yolink bound to Home Assistant OAuth.""" + from aiohttp import ClientSession from yolink.auth_mgr import YoLinkAuthMgr diff --git a/homeassistant/components/yolink/binary_sensor.py b/homeassistant/components/yolink/binary_sensor.py index 51c66be3e5f..ba28089546f 100644 --- a/homeassistant/components/yolink/binary_sensor.py +++ b/homeassistant/components/yolink/binary_sensor.py @@ -1,4 +1,5 @@ """YoLink BinarySensor.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/yolink/climate.py b/homeassistant/components/yolink/climate.py index a1e2fdd90a2..21e0a71ebcb 100644 --- a/homeassistant/components/yolink/climate.py +++ b/homeassistant/components/yolink/climate.py @@ -1,4 +1,5 @@ """YoLink Thermostat.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yolink/config_flow.py b/homeassistant/components/yolink/config_flow.py index f22c50c3345..abdac696248 100644 --- a/homeassistant/components/yolink/config_flow.py +++ b/homeassistant/components/yolink/config_flow.py @@ -1,4 +1,5 @@ """Config flow for yolink.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/yolink/coordinator.py b/homeassistant/components/yolink/coordinator.py index f2c942caab9..b7db36541b1 100644 --- a/homeassistant/components/yolink/coordinator.py +++ b/homeassistant/components/yolink/coordinator.py @@ -1,4 +1,5 @@ """YoLink DataUpdateCoordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/yolink/cover.py b/homeassistant/components/yolink/cover.py index 6cc1ea3acd6..03e36a2ba29 100644 --- a/homeassistant/components/yolink/cover.py +++ b/homeassistant/components/yolink/cover.py @@ -1,4 +1,5 @@ """YoLink Garage Door.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yolink/device_trigger.py b/homeassistant/components/yolink/device_trigger.py index aac860c6a27..d3176e146d2 100644 --- a/homeassistant/components/yolink/device_trigger.py +++ b/homeassistant/components/yolink/device_trigger.py @@ -1,4 +1,5 @@ """Provides device triggers for YoLink.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yolink/entity.py b/homeassistant/components/yolink/entity.py index 0221bd94a7e..d9ca2968493 100644 --- a/homeassistant/components/yolink/entity.py +++ b/homeassistant/components/yolink/entity.py @@ -1,4 +1,5 @@ """Support for YoLink Device.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/yolink/light.py b/homeassistant/components/yolink/light.py index 248a42df60c..e07d17f7d74 100644 --- a/homeassistant/components/yolink/light.py +++ b/homeassistant/components/yolink/light.py @@ -1,4 +1,5 @@ """YoLink Dimmer.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yolink/lock.py b/homeassistant/components/yolink/lock.py index 3b0f68c175c..177a8808de1 100644 --- a/homeassistant/components/yolink/lock.py +++ b/homeassistant/components/yolink/lock.py @@ -1,4 +1,5 @@ """YoLink Lock.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/yolink/sensor.py b/homeassistant/components/yolink/sensor.py index 80cbaf27bb3..b69e29db031 100644 --- a/homeassistant/components/yolink/sensor.py +++ b/homeassistant/components/yolink/sensor.py @@ -1,4 +1,5 @@ """YoLink Sensor.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/yolink/siren.py b/homeassistant/components/yolink/siren.py index 4a35e9506e9..eca6a958108 100644 --- a/homeassistant/components/yolink/siren.py +++ b/homeassistant/components/yolink/siren.py @@ -1,4 +1,5 @@ """YoLink Siren.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/yolink/switch.py b/homeassistant/components/yolink/switch.py index 920ebd245cf..9e1b8eba9db 100644 --- a/homeassistant/components/yolink/switch.py +++ b/homeassistant/components/yolink/switch.py @@ -1,4 +1,5 @@ """YoLink Switch.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/youless/__init__.py b/homeassistant/components/youless/__init__.py index 5724f417a7f..a968d052922 100644 --- a/homeassistant/components/youless/__init__.py +++ b/homeassistant/components/youless/__init__.py @@ -1,4 +1,5 @@ """The youless integration.""" + from datetime import timedelta import logging from urllib.error import URLError diff --git a/homeassistant/components/youless/config_flow.py b/homeassistant/components/youless/config_flow.py index a6a993aa72a..d13d2ed076f 100644 --- a/homeassistant/components/youless/config_flow.py +++ b/homeassistant/components/youless/config_flow.py @@ -1,4 +1,5 @@ """Config flow for youless integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/youless/sensor.py b/homeassistant/components/youless/sensor.py index 36175ae9cf3..81cd8b384d2 100644 --- a/homeassistant/components/youless/sensor.py +++ b/homeassistant/components/youless/sensor.py @@ -1,4 +1,5 @@ """The sensor entity for the Youless integration.""" + from __future__ import annotations from youless_api import YoulessAPI diff --git a/homeassistant/components/youtube/__init__.py b/homeassistant/components/youtube/__init__.py index 46c3b0d1902..8460a105fcb 100644 --- a/homeassistant/components/youtube/__init__.py +++ b/homeassistant/components/youtube/__init__.py @@ -1,4 +1,5 @@ """Support for YouTube.""" + from __future__ import annotations from aiohttp.client_exceptions import ClientError, ClientResponseError diff --git a/homeassistant/components/youtube/api.py b/homeassistant/components/youtube/api.py index b98169e3589..beb0a9a70dc 100644 --- a/homeassistant/components/youtube/api.py +++ b/homeassistant/components/youtube/api.py @@ -1,4 +1,5 @@ """API for YouTube bound to Home Assistant OAuth.""" + from youtubeaio.types import AuthScope from youtubeaio.youtube import YouTube diff --git a/homeassistant/components/youtube/application_credentials.py b/homeassistant/components/youtube/application_credentials.py index ba6188d9a3d..72c1b9a72d4 100644 --- a/homeassistant/components/youtube/application_credentials.py +++ b/homeassistant/components/youtube/application_credentials.py @@ -1,4 +1,5 @@ """application_credentials platform for YouTube.""" + from homeassistant.components.application_credentials import AuthorizationServer from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/youtube/config_flow.py b/homeassistant/components/youtube/config_flow.py index 89ee02f9c90..025ed8780e6 100644 --- a/homeassistant/components/youtube/config_flow.py +++ b/homeassistant/components/youtube/config_flow.py @@ -1,4 +1,5 @@ """Config flow for YouTube integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/youtube/coordinator.py b/homeassistant/components/youtube/coordinator.py index 07420233baf..4599342c84d 100644 --- a/homeassistant/components/youtube/coordinator.py +++ b/homeassistant/components/youtube/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the YouTube integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/youtube/diagnostics.py b/homeassistant/components/youtube/diagnostics.py index 7cd32d50d27..9a898b7e2de 100644 --- a/homeassistant/components/youtube/diagnostics.py +++ b/homeassistant/components/youtube/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for YouTube.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/youtube/entity.py b/homeassistant/components/youtube/entity.py index 6f7f0b28dd2..698b14fa6a7 100644 --- a/homeassistant/components/youtube/entity.py +++ b/homeassistant/components/youtube/entity.py @@ -1,4 +1,5 @@ """Entity representing a YouTube account.""" + from __future__ import annotations from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo diff --git a/homeassistant/components/youtube/sensor.py b/homeassistant/components/youtube/sensor.py index e6205ad1646..56c3f960bdf 100644 --- a/homeassistant/components/youtube/sensor.py +++ b/homeassistant/components/youtube/sensor.py @@ -1,4 +1,5 @@ """Support for YouTube Sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zabbix/__init__.py b/homeassistant/components/zabbix/__init__.py index a59465bf400..edc0e28cce2 100644 --- a/homeassistant/components/zabbix/__init__.py +++ b/homeassistant/components/zabbix/__init__.py @@ -1,4 +1,5 @@ """Support for Zabbix.""" + from contextlib import suppress import json import logging diff --git a/homeassistant/components/zabbix/sensor.py b/homeassistant/components/zabbix/sensor.py index 2fd2d48faba..eaa06367408 100644 --- a/homeassistant/components/zabbix/sensor.py +++ b/homeassistant/components/zabbix/sensor.py @@ -1,4 +1,5 @@ """Support for Zabbix sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zamg/__init__.py b/homeassistant/components/zamg/__init__.py index 0e57bef64ff..f6241e53fbe 100644 --- a/homeassistant/components/zamg/__init__.py +++ b/homeassistant/components/zamg/__init__.py @@ -1,4 +1,5 @@ """The zamg component.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/zamg/config_flow.py b/homeassistant/components/zamg/config_flow.py index 630c9e747c3..24045ba8f4e 100644 --- a/homeassistant/components/zamg/config_flow.py +++ b/homeassistant/components/zamg/config_flow.py @@ -1,4 +1,5 @@ """Config Flow for the zamg integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zamg/coordinator.py b/homeassistant/components/zamg/coordinator.py index f785524e866..d53c743f500 100644 --- a/homeassistant/components/zamg/coordinator.py +++ b/homeassistant/components/zamg/coordinator.py @@ -1,4 +1,5 @@ """Data Update coordinator for ZAMG weather data.""" + from __future__ import annotations from zamg import ZamgData as ZamgDevice diff --git a/homeassistant/components/zamg/sensor.py b/homeassistant/components/zamg/sensor.py index adc07212a5f..4e1a1d49bec 100644 --- a/homeassistant/components/zamg/sensor.py +++ b/homeassistant/components/zamg/sensor.py @@ -1,4 +1,5 @@ """Sensor for the zamg integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/zamg/weather.py b/homeassistant/components/zamg/weather.py index e855bde29d8..241b2232eeb 100644 --- a/homeassistant/components/zamg/weather.py +++ b/homeassistant/components/zamg/weather.py @@ -1,4 +1,5 @@ """Sensor for the zamg integration.""" + from __future__ import annotations from homeassistant.components.weather import WeatherEntity diff --git a/homeassistant/components/zengge/light.py b/homeassistant/components/zengge/light.py index 2d4ba4614e6..5de4f3fdce3 100644 --- a/homeassistant/components/zengge/light.py +++ b/homeassistant/components/zengge/light.py @@ -1,4 +1,5 @@ """Support for Zengge lights.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zeroconf/__init__.py b/homeassistant/components/zeroconf/__init__.py index d580f097179..775353a29f6 100644 --- a/homeassistant/components/zeroconf/__init__.py +++ b/homeassistant/components/zeroconf/__init__.py @@ -1,4 +1,5 @@ """Support for exposing Home Assistant via Zeroconf.""" + from __future__ import annotations import contextlib diff --git a/homeassistant/components/zerproc/__init__.py b/homeassistant/components/zerproc/__init__.py index edd41d1a8e3..953720038cc 100644 --- a/homeassistant/components/zerproc/__init__.py +++ b/homeassistant/components/zerproc/__init__.py @@ -1,4 +1,5 @@ """Zerproc lights integration.""" + from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/zerproc/light.py b/homeassistant/components/zerproc/light.py index 94a99743cdc..71bb38dd80f 100644 --- a/homeassistant/components/zerproc/light.py +++ b/homeassistant/components/zerproc/light.py @@ -1,4 +1,5 @@ """Zerproc light platform.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/zestimate/sensor.py b/homeassistant/components/zestimate/sensor.py index 9b520c46819..8bbda7de73a 100644 --- a/homeassistant/components/zestimate/sensor.py +++ b/homeassistant/components/zestimate/sensor.py @@ -1,4 +1,5 @@ """Support for zestimate data from zillow.com.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/zeversolar/__init__.py b/homeassistant/components/zeversolar/__init__.py index cff5cf413e5..cb48579367b 100644 --- a/homeassistant/components/zeversolar/__init__.py +++ b/homeassistant/components/zeversolar/__init__.py @@ -1,4 +1,5 @@ """The Zeversolar integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/zeversolar/config_flow.py b/homeassistant/components/zeversolar/config_flow.py index 376fc43bcec..e4deae47c8f 100644 --- a/homeassistant/components/zeversolar/config_flow.py +++ b/homeassistant/components/zeversolar/config_flow.py @@ -1,4 +1,5 @@ """Config flow for zeversolar integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zeversolar/coordinator.py b/homeassistant/components/zeversolar/coordinator.py index 554fe195eab..9f6ff49eaf8 100644 --- a/homeassistant/components/zeversolar/coordinator.py +++ b/homeassistant/components/zeversolar/coordinator.py @@ -1,4 +1,5 @@ """Zeversolar coordinator.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/zeversolar/entity.py b/homeassistant/components/zeversolar/entity.py index 77ae5ee61f8..18ac4dcde32 100644 --- a/homeassistant/components/zeversolar/entity.py +++ b/homeassistant/components/zeversolar/entity.py @@ -1,4 +1,5 @@ """Base Entity for Zeversolar sensors.""" + from __future__ import annotations from homeassistant.helpers.device_registry import DeviceInfo diff --git a/homeassistant/components/zeversolar/sensor.py b/homeassistant/components/zeversolar/sensor.py index ca09e5773b0..69dd525f7f7 100644 --- a/homeassistant/components/zeversolar/sensor.py +++ b/homeassistant/components/zeversolar/sensor.py @@ -1,4 +1,5 @@ """Support for the Zeversolar platform.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zha/alarm_control_panel.py b/homeassistant/components/zha/alarm_control_panel.py index 7f1f6a85d15..7750e7f280d 100644 --- a/homeassistant/components/zha/alarm_control_panel.py +++ b/homeassistant/components/zha/alarm_control_panel.py @@ -1,4 +1,5 @@ """Alarm control panels on Zigbee Home Automation networks.""" + from __future__ import annotations import functools diff --git a/homeassistant/components/zha/binary_sensor.py b/homeassistant/components/zha/binary_sensor.py index aed0a16a681..3333bf6bb3e 100644 --- a/homeassistant/components/zha/binary_sensor.py +++ b/homeassistant/components/zha/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensors on Zigbee Home Automation networks.""" + from __future__ import annotations import functools diff --git a/homeassistant/components/zha/button.py b/homeassistant/components/zha/button.py index 2c0028cd3d1..48b27ee6892 100644 --- a/homeassistant/components/zha/button.py +++ b/homeassistant/components/zha/button.py @@ -1,4 +1,5 @@ """Support for ZHA button.""" + from __future__ import annotations import functools diff --git a/homeassistant/components/zha/climate.py b/homeassistant/components/zha/climate.py index cbc759e7008..61c5f28ca8f 100644 --- a/homeassistant/components/zha/climate.py +++ b/homeassistant/components/zha/climate.py @@ -3,6 +3,7 @@ For more details on this platform, please refer to the documentation at https://home-assistant.io/components/zha.climate/ """ + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/zha/config_flow.py b/homeassistant/components/zha/config_flow.py index 1fbe7b689ca..7ecf3357334 100644 --- a/homeassistant/components/zha/config_flow.py +++ b/homeassistant/components/zha/config_flow.py @@ -1,4 +1,5 @@ """Config flow for ZHA.""" + from __future__ import annotations import collections diff --git a/homeassistant/components/zha/core/cluster_handlers/__init__.py b/homeassistant/components/zha/core/cluster_handlers/__init__.py index 1f7485d4922..9e483f1700a 100644 --- a/homeassistant/components/zha/core/cluster_handlers/__init__.py +++ b/homeassistant/components/zha/core/cluster_handlers/__init__.py @@ -1,4 +1,5 @@ """Cluster handlers module for Zigbee Home Automation.""" + from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine, Iterator diff --git a/homeassistant/components/zha/core/cluster_handlers/closures.py b/homeassistant/components/zha/core/cluster_handlers/closures.py index 879765aec3c..c57ad507317 100644 --- a/homeassistant/components/zha/core/cluster_handlers/closures.py +++ b/homeassistant/components/zha/core/cluster_handlers/closures.py @@ -1,4 +1,5 @@ """Closures cluster handlers module for Zigbee Home Automation.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zha/core/cluster_handlers/general.py b/homeassistant/components/zha/core/cluster_handlers/general.py index d2927f6d028..478f41da3b7 100644 --- a/homeassistant/components/zha/core/cluster_handlers/general.py +++ b/homeassistant/components/zha/core/cluster_handlers/general.py @@ -1,4 +1,5 @@ """General cluster handlers module for Zigbee Home Automation.""" + from __future__ import annotations from collections.abc import Coroutine diff --git a/homeassistant/components/zha/core/cluster_handlers/helpers.py b/homeassistant/components/zha/core/cluster_handlers/helpers.py index f4444f3995c..46557bf23a8 100644 --- a/homeassistant/components/zha/core/cluster_handlers/helpers.py +++ b/homeassistant/components/zha/core/cluster_handlers/helpers.py @@ -1,4 +1,5 @@ """Helpers for use with ZHA Zigbee cluster handlers.""" + from . import ClusterHandler diff --git a/homeassistant/components/zha/core/cluster_handlers/homeautomation.py b/homeassistant/components/zha/core/cluster_handlers/homeautomation.py index bb7b96d367e..b287cb98f6a 100644 --- a/homeassistant/components/zha/core/cluster_handlers/homeautomation.py +++ b/homeassistant/components/zha/core/cluster_handlers/homeautomation.py @@ -1,4 +1,5 @@ """Home automation cluster handlers module for Zigbee Home Automation.""" + from __future__ import annotations import enum diff --git a/homeassistant/components/zha/core/cluster_handlers/hvac.py b/homeassistant/components/zha/core/cluster_handlers/hvac.py index 4c03d31135e..d455ade4e66 100644 --- a/homeassistant/components/zha/core/cluster_handlers/hvac.py +++ b/homeassistant/components/zha/core/cluster_handlers/hvac.py @@ -3,6 +3,7 @@ For more details about this component, please refer to the documentation at https://home-assistant.io/integrations/zha/ """ + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zha/core/cluster_handlers/lighting.py b/homeassistant/components/zha/core/cluster_handlers/lighting.py index bb3ac3c80e3..f19ad311f9e 100644 --- a/homeassistant/components/zha/core/cluster_handlers/lighting.py +++ b/homeassistant/components/zha/core/cluster_handlers/lighting.py @@ -1,4 +1,5 @@ """Lighting cluster handlers module for Zigbee Home Automation.""" + from __future__ import annotations from zigpy.zcl.clusters.lighting import Ballast, Color diff --git a/homeassistant/components/zha/core/cluster_handlers/manufacturerspecific.py b/homeassistant/components/zha/core/cluster_handlers/manufacturerspecific.py index 608a256606f..dc8af821724 100644 --- a/homeassistant/components/zha/core/cluster_handlers/manufacturerspecific.py +++ b/homeassistant/components/zha/core/cluster_handlers/manufacturerspecific.py @@ -1,4 +1,5 @@ """Manufacturer specific cluster handlers module for Zigbee Home Automation.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zha/core/cluster_handlers/measurement.py b/homeassistant/components/zha/core/cluster_handlers/measurement.py index be079328228..768de8c4c73 100644 --- a/homeassistant/components/zha/core/cluster_handlers/measurement.py +++ b/homeassistant/components/zha/core/cluster_handlers/measurement.py @@ -1,4 +1,5 @@ """Measurement cluster handlers module for Zigbee Home Automation.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/homeassistant/components/zha/core/cluster_handlers/protocol.py b/homeassistant/components/zha/core/cluster_handlers/protocol.py index 14f01a55b6a..e1e3d7a5413 100644 --- a/homeassistant/components/zha/core/cluster_handlers/protocol.py +++ b/homeassistant/components/zha/core/cluster_handlers/protocol.py @@ -1,4 +1,5 @@ """Protocol cluster handlers module for Zigbee Home Automation.""" + from zigpy.zcl.clusters.protocol import ( AnalogInputExtended, AnalogInputRegular, diff --git a/homeassistant/components/zha/core/cluster_handlers/security.py b/homeassistant/components/zha/core/cluster_handlers/security.py index c37fdc43766..8ebe09cef03 100644 --- a/homeassistant/components/zha/core/cluster_handlers/security.py +++ b/homeassistant/components/zha/core/cluster_handlers/security.py @@ -3,6 +3,7 @@ For more details about this component, please refer to the documentation at https://home-assistant.io/integrations/zha/ """ + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zha/core/cluster_handlers/smartenergy.py b/homeassistant/components/zha/core/cluster_handlers/smartenergy.py index 65a02a01e02..d167b8b1752 100644 --- a/homeassistant/components/zha/core/cluster_handlers/smartenergy.py +++ b/homeassistant/components/zha/core/cluster_handlers/smartenergy.py @@ -1,4 +1,5 @@ """Smart energy cluster handlers module for Zigbee Home Automation.""" + from __future__ import annotations import enum diff --git a/homeassistant/components/zha/core/const.py b/homeassistant/components/zha/core/const.py index fd54351739e..8d56652d8ee 100644 --- a/homeassistant/components/zha/core/const.py +++ b/homeassistant/components/zha/core/const.py @@ -1,4 +1,5 @@ """All constants related to the ZHA component.""" + from __future__ import annotations import enum diff --git a/homeassistant/components/zha/core/decorators.py b/homeassistant/components/zha/core/decorators.py index 192f6848989..b8e15024811 100644 --- a/homeassistant/components/zha/core/decorators.py +++ b/homeassistant/components/zha/core/decorators.py @@ -1,4 +1,5 @@ """Decorators for ZHA core registries.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zha/core/device.py b/homeassistant/components/zha/core/device.py index f1b7ec60728..fe19e1662d0 100644 --- a/homeassistant/components/zha/core/device.py +++ b/homeassistant/components/zha/core/device.py @@ -1,4 +1,5 @@ """Device for Zigbee Home Automation.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zha/core/discovery.py b/homeassistant/components/zha/core/discovery.py index 221c601827e..98d37f1a7db 100644 --- a/homeassistant/components/zha/core/discovery.py +++ b/homeassistant/components/zha/core/discovery.py @@ -1,4 +1,5 @@ """Device discovery functions for Zigbee Home Automation.""" + from __future__ import annotations from collections import Counter diff --git a/homeassistant/components/zha/core/endpoint.py b/homeassistant/components/zha/core/endpoint.py index 37a2c951a7f..b0d617eb2c2 100644 --- a/homeassistant/components/zha/core/endpoint.py +++ b/homeassistant/components/zha/core/endpoint.py @@ -1,4 +1,5 @@ """Representation of a Zigbee endpoint for zha.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zha/core/gateway.py b/homeassistant/components/zha/core/gateway.py index 14fd329f1bc..62112f70584 100644 --- a/homeassistant/components/zha/core/gateway.py +++ b/homeassistant/components/zha/core/gateway.py @@ -1,4 +1,5 @@ """Virtual gateway for Zigbee Home Automation.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zha/core/group.py b/homeassistant/components/zha/core/group.py index a62c00e7106..f57f5df1861 100644 --- a/homeassistant/components/zha/core/group.py +++ b/homeassistant/components/zha/core/group.py @@ -1,4 +1,5 @@ """Group for Zigbee Home Automation.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zha/core/helpers.py b/homeassistant/components/zha/core/helpers.py index 5506ffb8289..22efe995954 100644 --- a/homeassistant/components/zha/core/helpers.py +++ b/homeassistant/components/zha/core/helpers.py @@ -3,6 +3,7 @@ For more details about this component, please refer to the documentation at https://home-assistant.io/integrations/zha/ """ + from __future__ import annotations import binascii diff --git a/homeassistant/components/zha/core/registries.py b/homeassistant/components/zha/core/registries.py index b302116694d..10e63dd3590 100644 --- a/homeassistant/components/zha/core/registries.py +++ b/homeassistant/components/zha/core/registries.py @@ -1,4 +1,5 @@ """Mapping registries for Zigbee Home Automation.""" + from __future__ import annotations import collections diff --git a/homeassistant/components/zha/cover.py b/homeassistant/components/zha/cover.py index d94a2f907d1..718b6fed3a2 100644 --- a/homeassistant/components/zha/cover.py +++ b/homeassistant/components/zha/cover.py @@ -1,4 +1,5 @@ """Support for ZHA covers.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zha/device_action.py b/homeassistant/components/zha/device_action.py index d393cfb1471..076cb1d420e 100644 --- a/homeassistant/components/zha/device_action.py +++ b/homeassistant/components/zha/device_action.py @@ -1,4 +1,5 @@ """Provides device actions for ZHA devices.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zha/device_tracker.py b/homeassistant/components/zha/device_tracker.py index ea27c58eb19..9c96fd0e346 100644 --- a/homeassistant/components/zha/device_tracker.py +++ b/homeassistant/components/zha/device_tracker.py @@ -1,4 +1,5 @@ """Support for the ZHA platform.""" + from __future__ import annotations import functools diff --git a/homeassistant/components/zha/diagnostics.py b/homeassistant/components/zha/diagnostics.py index 57088818c66..fff816777c0 100644 --- a/homeassistant/components/zha/diagnostics.py +++ b/homeassistant/components/zha/diagnostics.py @@ -1,4 +1,5 @@ """Provides diagnostics for ZHA.""" + from __future__ import annotations import dataclasses diff --git a/homeassistant/components/zha/entity.py b/homeassistant/components/zha/entity.py index 3f127c74c0e..f03da7a5fd6 100644 --- a/homeassistant/components/zha/entity.py +++ b/homeassistant/components/zha/entity.py @@ -1,4 +1,5 @@ """Entity for Zigbee Home Automation.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zha/fan.py b/homeassistant/components/zha/fan.py index 7364aed0d1b..3677befb76e 100644 --- a/homeassistant/components/zha/fan.py +++ b/homeassistant/components/zha/fan.py @@ -1,4 +1,5 @@ """Fans on Zigbee Home Automation networks.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index aa117c7ef9b..8d65899707e 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -1,4 +1,5 @@ """Lights on Zigbee Home Automation networks.""" + from __future__ import annotations from collections import Counter diff --git a/homeassistant/components/zha/logbook.py b/homeassistant/components/zha/logbook.py index ce9c1f1227b..e63ef565824 100644 --- a/homeassistant/components/zha/logbook.py +++ b/homeassistant/components/zha/logbook.py @@ -1,4 +1,5 @@ """Describe ZHA logbook events.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zha/number.py b/homeassistant/components/zha/number.py index c452752f14b..ef8f8287e1e 100644 --- a/homeassistant/components/zha/number.py +++ b/homeassistant/components/zha/number.py @@ -1,4 +1,5 @@ """Support for ZHA AnalogOutput cluster.""" + from __future__ import annotations import functools diff --git a/homeassistant/components/zha/radio_manager.py b/homeassistant/components/zha/radio_manager.py index d3ca03de8d8..44b7304c58e 100644 --- a/homeassistant/components/zha/radio_manager.py +++ b/homeassistant/components/zha/radio_manager.py @@ -1,4 +1,5 @@ """Config flow for ZHA.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zha/repairs/__init__.py b/homeassistant/components/zha/repairs/__init__.py index a3c2ea6f292..3d8f2553baa 100644 --- a/homeassistant/components/zha/repairs/__init__.py +++ b/homeassistant/components/zha/repairs/__init__.py @@ -1,4 +1,5 @@ """ZHA repairs for common environmental and device problems.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/zha/repairs/network_settings_inconsistent.py b/homeassistant/components/zha/repairs/network_settings_inconsistent.py index 0a478f4b36a..2598ff8f98a 100644 --- a/homeassistant/components/zha/repairs/network_settings_inconsistent.py +++ b/homeassistant/components/zha/repairs/network_settings_inconsistent.py @@ -1,4 +1,5 @@ """ZHA repair for inconsistent network settings.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zha/repairs/wrong_silabs_firmware.py b/homeassistant/components/zha/repairs/wrong_silabs_firmware.py index 93c5489eda7..3326f5685df 100644 --- a/homeassistant/components/zha/repairs/wrong_silabs_firmware.py +++ b/homeassistant/components/zha/repairs/wrong_silabs_firmware.py @@ -1,4 +1,5 @@ """ZHA repairs for common environmental and device problems.""" + from __future__ import annotations import enum diff --git a/homeassistant/components/zha/select.py b/homeassistant/components/zha/select.py index 53acc5cdd02..c629a16a7c6 100644 --- a/homeassistant/components/zha/select.py +++ b/homeassistant/components/zha/select.py @@ -1,4 +1,5 @@ """Support for ZHA controls using the select platform.""" + from __future__ import annotations from enum import Enum diff --git a/homeassistant/components/zha/sensor.py b/homeassistant/components/zha/sensor.py index 6a68b55a8be..1bb6b355f6e 100644 --- a/homeassistant/components/zha/sensor.py +++ b/homeassistant/components/zha/sensor.py @@ -1,4 +1,5 @@ """Sensors on Zigbee Home Automation networks.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zha/siren.py b/homeassistant/components/zha/siren.py index 717eb2df033..3aab332f746 100644 --- a/homeassistant/components/zha/siren.py +++ b/homeassistant/components/zha/siren.py @@ -1,4 +1,5 @@ """Support for ZHA sirens.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zha/switch.py b/homeassistant/components/zha/switch.py index 960124c4a8a..726b73c4675 100644 --- a/homeassistant/components/zha/switch.py +++ b/homeassistant/components/zha/switch.py @@ -1,4 +1,5 @@ """Switches on Zigbee Home Automation networks.""" + from __future__ import annotations import functools diff --git a/homeassistant/components/zha/update.py b/homeassistant/components/zha/update.py index b7b721766b8..7ceba4fc924 100644 --- a/homeassistant/components/zha/update.py +++ b/homeassistant/components/zha/update.py @@ -1,4 +1,5 @@ """Representation of ZHA updates.""" + from __future__ import annotations import functools diff --git a/homeassistant/components/zha/websocket_api.py b/homeassistant/components/zha/websocket_api.py index e3e67ea0e41..38cce07550a 100644 --- a/homeassistant/components/zha/websocket_api.py +++ b/homeassistant/components/zha/websocket_api.py @@ -1,4 +1,5 @@ """Web socket API for Zigbee Home Automation devices.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zhong_hong/climate.py b/homeassistant/components/zhong_hong/climate.py index fbada765cde..b0a8f02a2f3 100644 --- a/homeassistant/components/zhong_hong/climate.py +++ b/homeassistant/components/zhong_hong/climate.py @@ -1,4 +1,5 @@ """Support for ZhongHong HVAC Controller.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ziggo_mediabox_xl/media_player.py b/homeassistant/components/ziggo_mediabox_xl/media_player.py index 20a78c80ac5..7c97d38cff3 100644 --- a/homeassistant/components/ziggo_mediabox_xl/media_player.py +++ b/homeassistant/components/ziggo_mediabox_xl/media_player.py @@ -1,4 +1,5 @@ """Support for interface with a Ziggo Mediabox XL.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zodiac/config_flow.py b/homeassistant/components/zodiac/config_flow.py index d599c9747f9..a9ed49568ca 100644 --- a/homeassistant/components/zodiac/config_flow.py +++ b/homeassistant/components/zodiac/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Zodiac integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zodiac/sensor.py b/homeassistant/components/zodiac/sensor.py index 71d995bb73e..d7cac07a322 100644 --- a/homeassistant/components/zodiac/sensor.py +++ b/homeassistant/components/zodiac/sensor.py @@ -1,4 +1,5 @@ """Support for tracking the zodiac sign.""" + from __future__ import annotations from homeassistant.components.sensor import SensorDeviceClass, SensorEntity diff --git a/homeassistant/components/zone/__init__.py b/homeassistant/components/zone/__init__.py index 86593c36737..a73126e2971 100644 --- a/homeassistant/components/zone/__init__.py +++ b/homeassistant/components/zone/__init__.py @@ -1,4 +1,5 @@ """Support for the definition of zones.""" + from __future__ import annotations from collections.abc import Callable, Iterable diff --git a/homeassistant/components/zone/config_flow.py b/homeassistant/components/zone/config_flow.py index c176054bd34..ed71a79470e 100644 --- a/homeassistant/components/zone/config_flow.py +++ b/homeassistant/components/zone/config_flow.py @@ -4,6 +4,7 @@ This is no longer in use. This file is around so that existing config entries will remain to be loaded and then automatically migrated to the storage collection. """ + from homeassistant.config_entries import ConfigFlow from .const import DOMAIN diff --git a/homeassistant/components/zone/trigger.py b/homeassistant/components/zone/trigger.py index 09f93f9b786..f5c0f574320 100644 --- a/homeassistant/components/zone/trigger.py +++ b/homeassistant/components/zone/trigger.py @@ -1,4 +1,5 @@ """Offer zone automation rules.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zoneminder/binary_sensor.py b/homeassistant/components/zoneminder/binary_sensor.py index 268823c9470..926780fc6da 100644 --- a/homeassistant/components/zoneminder/binary_sensor.py +++ b/homeassistant/components/zoneminder/binary_sensor.py @@ -1,4 +1,5 @@ """Support for ZoneMinder binary sensors.""" + from __future__ import annotations from zoneminder.zm import ZoneMinder diff --git a/homeassistant/components/zoneminder/camera.py b/homeassistant/components/zoneminder/camera.py index d8b2aa805e7..ab938472ed7 100644 --- a/homeassistant/components/zoneminder/camera.py +++ b/homeassistant/components/zoneminder/camera.py @@ -1,4 +1,5 @@ """Support for ZoneMinder camera streaming.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zoneminder/sensor.py b/homeassistant/components/zoneminder/sensor.py index 47863b5a5df..700344f44da 100644 --- a/homeassistant/components/zoneminder/sensor.py +++ b/homeassistant/components/zoneminder/sensor.py @@ -1,4 +1,5 @@ """Support for ZoneMinder sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zoneminder/switch.py b/homeassistant/components/zoneminder/switch.py index b722ef53a77..fa91478f29c 100644 --- a/homeassistant/components/zoneminder/switch.py +++ b/homeassistant/components/zoneminder/switch.py @@ -1,4 +1,5 @@ """Support for ZoneMinder switches.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zwave_js/__init__.py b/homeassistant/components/zwave_js/__init__.py index 1e2a17fdf63..0fdf7a77895 100644 --- a/homeassistant/components/zwave_js/__init__.py +++ b/homeassistant/components/zwave_js/__init__.py @@ -1,4 +1,5 @@ """The Z-Wave JS integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zwave_js/addon.py b/homeassistant/components/zwave_js/addon.py index f9adf9f19fb..12d81146c03 100644 --- a/homeassistant/components/zwave_js/addon.py +++ b/homeassistant/components/zwave_js/addon.py @@ -1,4 +1,5 @@ """Provide add-on management.""" + from __future__ import annotations from homeassistant.components.hassio import AddonManager diff --git a/homeassistant/components/zwave_js/api.py b/homeassistant/components/zwave_js/api.py index 068ce348caf..b4c8967f0ad 100644 --- a/homeassistant/components/zwave_js/api.py +++ b/homeassistant/components/zwave_js/api.py @@ -1,4 +1,5 @@ """Websocket API for Z-Wave JS.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/zwave_js/binary_sensor.py b/homeassistant/components/zwave_js/binary_sensor.py index cb460f37000..dd3ded326b4 100644 --- a/homeassistant/components/zwave_js/binary_sensor.py +++ b/homeassistant/components/zwave_js/binary_sensor.py @@ -1,4 +1,5 @@ """Representation of Z-Wave binary sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/zwave_js/button.py b/homeassistant/components/zwave_js/button.py index 876cf60b4cb..5526faf9c59 100644 --- a/homeassistant/components/zwave_js/button.py +++ b/homeassistant/components/zwave_js/button.py @@ -1,4 +1,5 @@ """Representation of Z-Wave buttons.""" + from __future__ import annotations from zwave_js_server.client import Client as ZwaveClient diff --git a/homeassistant/components/zwave_js/climate.py b/homeassistant/components/zwave_js/climate.py index 2f84b52b7da..04e3d8c3950 100644 --- a/homeassistant/components/zwave_js/climate.py +++ b/homeassistant/components/zwave_js/climate.py @@ -1,4 +1,5 @@ """Representation of Z-Wave thermostats.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/zwave_js/config_flow.py b/homeassistant/components/zwave_js/config_flow.py index 8c5aa55713a..ca05dc2117b 100644 --- a/homeassistant/components/zwave_js/config_flow.py +++ b/homeassistant/components/zwave_js/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Z-Wave JS integration.""" + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/homeassistant/components/zwave_js/config_validation.py b/homeassistant/components/zwave_js/config_validation.py index 9fc502bdafb..6c060f90ce5 100644 --- a/homeassistant/components/zwave_js/config_validation.py +++ b/homeassistant/components/zwave_js/config_validation.py @@ -1,4 +1,5 @@ """Config validation for the Z-Wave JS integration.""" + from typing import Any import voluptuous as vol diff --git a/homeassistant/components/zwave_js/const.py b/homeassistant/components/zwave_js/const.py index 656620d01dd..f022cd42d20 100644 --- a/homeassistant/components/zwave_js/const.py +++ b/homeassistant/components/zwave_js/const.py @@ -1,4 +1,5 @@ """Constants for the Z-Wave JS integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zwave_js/cover.py b/homeassistant/components/zwave_js/cover.py index 27919a17614..8c6aea0ff75 100644 --- a/homeassistant/components/zwave_js/cover.py +++ b/homeassistant/components/zwave_js/cover.py @@ -1,4 +1,5 @@ """Support for Z-Wave cover devices.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/zwave_js/device_action.py b/homeassistant/components/zwave_js/device_action.py index b9b0c3a6e86..8ed2c07def3 100644 --- a/homeassistant/components/zwave_js/device_action.py +++ b/homeassistant/components/zwave_js/device_action.py @@ -1,4 +1,5 @@ """Provides device actions for Z-Wave JS.""" + from __future__ import annotations from collections import defaultdict diff --git a/homeassistant/components/zwave_js/device_automation_helpers.py b/homeassistant/components/zwave_js/device_automation_helpers.py index 2c375485e6b..5c94b2bb02d 100644 --- a/homeassistant/components/zwave_js/device_automation_helpers.py +++ b/homeassistant/components/zwave_js/device_automation_helpers.py @@ -1,4 +1,5 @@ """Provides helpers for Z-Wave JS device automations.""" + from __future__ import annotations from zwave_js_server.client import Client as ZwaveClient diff --git a/homeassistant/components/zwave_js/device_condition.py b/homeassistant/components/zwave_js/device_condition.py index 26b4c637b6e..dcd42d4d85d 100644 --- a/homeassistant/components/zwave_js/device_condition.py +++ b/homeassistant/components/zwave_js/device_condition.py @@ -1,4 +1,5 @@ """Provide the device conditions for Z-Wave JS.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/zwave_js/device_trigger.py b/homeassistant/components/zwave_js/device_trigger.py index d2b6ab7af15..49027d4d43b 100644 --- a/homeassistant/components/zwave_js/device_trigger.py +++ b/homeassistant/components/zwave_js/device_trigger.py @@ -1,4 +1,5 @@ """Provides device triggers for Z-Wave JS.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_js/diagnostics.py b/homeassistant/components/zwave_js/diagnostics.py index afae214ab2b..777d45efddb 100644 --- a/homeassistant/components/zwave_js/diagnostics.py +++ b/homeassistant/components/zwave_js/diagnostics.py @@ -1,4 +1,5 @@ """Provides diagnostics for Z-Wave JS.""" + from __future__ import annotations from copy import deepcopy diff --git a/homeassistant/components/zwave_js/discovery.py b/homeassistant/components/zwave_js/discovery.py index dfe2294e710..272f6e3ddc0 100644 --- a/homeassistant/components/zwave_js/discovery.py +++ b/homeassistant/components/zwave_js/discovery.py @@ -1,4 +1,5 @@ """Map Z-Wave nodes and values to Home Assistant entities.""" + from __future__ import annotations from collections.abc import Generator diff --git a/homeassistant/components/zwave_js/discovery_data_template.py b/homeassistant/components/zwave_js/discovery_data_template.py index 61a0cfdb802..7eb85e0ea4d 100644 --- a/homeassistant/components/zwave_js/discovery_data_template.py +++ b/homeassistant/components/zwave_js/discovery_data_template.py @@ -1,4 +1,5 @@ """Data template classes for discovery used to generate additional data for setup.""" + from __future__ import annotations from collections.abc import Iterable, Mapping diff --git a/homeassistant/components/zwave_js/entity.py b/homeassistant/components/zwave_js/entity.py index e7e110e7db6..0f594161bb9 100644 --- a/homeassistant/components/zwave_js/entity.py +++ b/homeassistant/components/zwave_js/entity.py @@ -1,4 +1,5 @@ """Generic Z-Wave Entity Class.""" + from __future__ import annotations from collections.abc import Sequence diff --git a/homeassistant/components/zwave_js/event.py b/homeassistant/components/zwave_js/event.py index 93860b6273e..2b170bdf5bd 100644 --- a/homeassistant/components/zwave_js/event.py +++ b/homeassistant/components/zwave_js/event.py @@ -1,4 +1,5 @@ """Support for Z-Wave controls using the event platform.""" + from __future__ import annotations from zwave_js_server.client import Client as ZwaveClient diff --git a/homeassistant/components/zwave_js/fan.py b/homeassistant/components/zwave_js/fan.py index d4247b65c8b..4cf9a5d40cf 100644 --- a/homeassistant/components/zwave_js/fan.py +++ b/homeassistant/components/zwave_js/fan.py @@ -1,4 +1,5 @@ """Support for Z-Wave fans.""" + from __future__ import annotations import math diff --git a/homeassistant/components/zwave_js/helpers.py b/homeassistant/components/zwave_js/helpers.py index c8eb02ad6cb..4f1b902d8ba 100644 --- a/homeassistant/components/zwave_js/helpers.py +++ b/homeassistant/components/zwave_js/helpers.py @@ -1,4 +1,5 @@ """Helper functions for Z-Wave JS integration.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zwave_js/humidifier.py b/homeassistant/components/zwave_js/humidifier.py index 14a43bea3af..be9e9a791fc 100644 --- a/homeassistant/components/zwave_js/humidifier.py +++ b/homeassistant/components/zwave_js/humidifier.py @@ -1,4 +1,5 @@ """Representation of Z-Wave humidifiers.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/zwave_js/light.py b/homeassistant/components/zwave_js/light.py index b105b556e24..eba2d4a0cce 100644 --- a/homeassistant/components/zwave_js/light.py +++ b/homeassistant/components/zwave_js/light.py @@ -1,4 +1,5 @@ """Support for Z-Wave lights.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/zwave_js/lock.py b/homeassistant/components/zwave_js/lock.py index 59faf7fbbb6..d102e5b5f22 100644 --- a/homeassistant/components/zwave_js/lock.py +++ b/homeassistant/components/zwave_js/lock.py @@ -1,4 +1,5 @@ """Representation of Z-Wave locks.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_js/logbook.py b/homeassistant/components/zwave_js/logbook.py index 1f634ba5ffd..315793b9726 100644 --- a/homeassistant/components/zwave_js/logbook.py +++ b/homeassistant/components/zwave_js/logbook.py @@ -1,4 +1,5 @@ """Describe Z-Wave JS logbook events.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zwave_js/migrate.py b/homeassistant/components/zwave_js/migrate.py index a7543c8f6f6..bde53137dc1 100644 --- a/homeassistant/components/zwave_js/migrate.py +++ b/homeassistant/components/zwave_js/migrate.py @@ -1,4 +1,5 @@ """Functions used to migrate unique IDs for Z-Wave JS entities.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/zwave_js/number.py b/homeassistant/components/zwave_js/number.py index 6aa4a57ea4c..15262710095 100644 --- a/homeassistant/components/zwave_js/number.py +++ b/homeassistant/components/zwave_js/number.py @@ -1,4 +1,5 @@ """Support for Z-Wave controls using the number platform.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/zwave_js/repairs.py b/homeassistant/components/zwave_js/repairs.py index 1010d9abd90..e515ae10549 100644 --- a/homeassistant/components/zwave_js/repairs.py +++ b/homeassistant/components/zwave_js/repairs.py @@ -1,4 +1,5 @@ """Repairs for Z-Wave JS.""" + from __future__ import annotations from homeassistant import data_entry_flow diff --git a/homeassistant/components/zwave_js/scripts/convert_device_diagnostics_to_fixture.py b/homeassistant/components/zwave_js/scripts/convert_device_diagnostics_to_fixture.py index 826f3eebe0c..1005c3bb4db 100644 --- a/homeassistant/components/zwave_js/scripts/convert_device_diagnostics_to_fixture.py +++ b/homeassistant/components/zwave_js/scripts/convert_device_diagnostics_to_fixture.py @@ -1,4 +1,5 @@ """Script to convert a device diagnostics file to a fixture.""" + from __future__ import annotations import argparse diff --git a/homeassistant/components/zwave_js/select.py b/homeassistant/components/zwave_js/select.py index e838949d3e1..c970c17f5f0 100644 --- a/homeassistant/components/zwave_js/select.py +++ b/homeassistant/components/zwave_js/select.py @@ -1,4 +1,5 @@ """Support for Z-Wave controls using the select platform.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/zwave_js/sensor.py b/homeassistant/components/zwave_js/sensor.py index af3bc8a622e..f799a70110d 100644 --- a/homeassistant/components/zwave_js/sensor.py +++ b/homeassistant/components/zwave_js/sensor.py @@ -1,4 +1,5 @@ """Representation of Z-Wave sensors.""" + from __future__ import annotations from collections.abc import Callable, Mapping diff --git a/homeassistant/components/zwave_js/services.py b/homeassistant/components/zwave_js/services.py index e8ef1df4b96..5567c64ab97 100644 --- a/homeassistant/components/zwave_js/services.py +++ b/homeassistant/components/zwave_js/services.py @@ -1,4 +1,5 @@ """Methods and classes related to executing Z-Wave commands.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zwave_js/siren.py b/homeassistant/components/zwave_js/siren.py index 7df88f7dca4..b3f54ae9904 100644 --- a/homeassistant/components/zwave_js/siren.py +++ b/homeassistant/components/zwave_js/siren.py @@ -1,4 +1,5 @@ """Support for Z-Wave controls using the siren platform.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_js/switch.py b/homeassistant/components/zwave_js/switch.py index 409bcd1dbb7..30ee5fb72bc 100644 --- a/homeassistant/components/zwave_js/switch.py +++ b/homeassistant/components/zwave_js/switch.py @@ -1,4 +1,5 @@ """Representation of Z-Wave switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_js/trigger.py b/homeassistant/components/zwave_js/trigger.py index 94cb05b1b20..9cb1a3e1d7e 100644 --- a/homeassistant/components/zwave_js/trigger.py +++ b/homeassistant/components/zwave_js/trigger.py @@ -1,4 +1,5 @@ """Z-Wave JS trigger dispatcher.""" + from __future__ import annotations from homeassistant.const import CONF_PLATFORM diff --git a/homeassistant/components/zwave_js/triggers/event.py b/homeassistant/components/zwave_js/triggers/event.py index edc10d4a16e..61c53630354 100644 --- a/homeassistant/components/zwave_js/triggers/event.py +++ b/homeassistant/components/zwave_js/triggers/event.py @@ -1,4 +1,5 @@ """Offer Z-Wave JS event listening automation trigger.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zwave_js/triggers/trigger_helpers.py b/homeassistant/components/zwave_js/triggers/trigger_helpers.py index 0fd9c3b4291..1dbe1f48f0a 100644 --- a/homeassistant/components/zwave_js/triggers/trigger_helpers.py +++ b/homeassistant/components/zwave_js/triggers/trigger_helpers.py @@ -1,4 +1,5 @@ """Helpers for Z-Wave JS custom triggers.""" + from zwave_js_server.client import Client as ZwaveClient from homeassistant.config_entries import ConfigEntryState diff --git a/homeassistant/components/zwave_js/triggers/value_updated.py b/homeassistant/components/zwave_js/triggers/value_updated.py index c44a0c6336a..ef10af1cec0 100644 --- a/homeassistant/components/zwave_js/triggers/value_updated.py +++ b/homeassistant/components/zwave_js/triggers/value_updated.py @@ -1,4 +1,5 @@ """Offer Z-Wave JS value updated listening automation trigger.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zwave_js/update.py b/homeassistant/components/zwave_js/update.py index f3e60f925e6..3fdbab8aacf 100644 --- a/homeassistant/components/zwave_js/update.py +++ b/homeassistant/components/zwave_js/update.py @@ -1,4 +1,5 @@ """Representation of Z-Wave updates.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/zwave_me/binary_sensor.py b/homeassistant/components/zwave_me/binary_sensor.py index f1ee6896b25..3be8f912b6d 100644 --- a/homeassistant/components/zwave_me/binary_sensor.py +++ b/homeassistant/components/zwave_me/binary_sensor.py @@ -1,4 +1,5 @@ """Representation of a sensorBinary.""" + from __future__ import annotations from zwave_me_ws import ZWaveMeData diff --git a/homeassistant/components/zwave_me/button.py b/homeassistant/components/zwave_me/button.py index 7e0b4f02728..f7f1d5d7945 100644 --- a/homeassistant/components/zwave_me/button.py +++ b/homeassistant/components/zwave_me/button.py @@ -1,4 +1,5 @@ """Representation of a toggleButton.""" + from homeassistant.components.button import ButtonEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback diff --git a/homeassistant/components/zwave_me/climate.py b/homeassistant/components/zwave_me/climate.py index 35e0d745619..02112e51617 100644 --- a/homeassistant/components/zwave_me/climate.py +++ b/homeassistant/components/zwave_me/climate.py @@ -1,4 +1,5 @@ """Representation of a thermostat.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_me/config_flow.py b/homeassistant/components/zwave_me/config_flow.py index 5fbfc1a475b..1444bfc1b95 100644 --- a/homeassistant/components/zwave_me/config_flow.py +++ b/homeassistant/components/zwave_me/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure ZWaveMe integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/zwave_me/const.py b/homeassistant/components/zwave_me/const.py index 1ec4f8d1601..8dcfc369db7 100644 --- a/homeassistant/components/zwave_me/const.py +++ b/homeassistant/components/zwave_me/const.py @@ -1,4 +1,5 @@ """Constants for ZWaveMe.""" + from enum import StrEnum from homeassistant.const import Platform diff --git a/homeassistant/components/zwave_me/cover.py b/homeassistant/components/zwave_me/cover.py index e717df027e3..4794e807049 100644 --- a/homeassistant/components/zwave_me/cover.py +++ b/homeassistant/components/zwave_me/cover.py @@ -1,4 +1,5 @@ """Representation of a cover.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_me/fan.py b/homeassistant/components/zwave_me/fan.py index c332fb305c5..25ccec9a0fb 100644 --- a/homeassistant/components/zwave_me/fan.py +++ b/homeassistant/components/zwave_me/fan.py @@ -1,4 +1,5 @@ """Representation of a fan.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_me/helpers.py b/homeassistant/components/zwave_me/helpers.py index 0d53512d1cb..3b5cb4ad0be 100644 --- a/homeassistant/components/zwave_me/helpers.py +++ b/homeassistant/components/zwave_me/helpers.py @@ -1,4 +1,5 @@ """Helpers for zwave_me config flow.""" + from __future__ import annotations from zwave_me_ws import ZWaveMe diff --git a/homeassistant/components/zwave_me/light.py b/homeassistant/components/zwave_me/light.py index 7fad88a4a49..b1065d45160 100644 --- a/homeassistant/components/zwave_me/light.py +++ b/homeassistant/components/zwave_me/light.py @@ -1,4 +1,5 @@ """Representation of an RGB light.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_me/lock.py b/homeassistant/components/zwave_me/lock.py index 17e64ff1602..6218dac1627 100644 --- a/homeassistant/components/zwave_me/lock.py +++ b/homeassistant/components/zwave_me/lock.py @@ -1,4 +1,5 @@ """Representation of a doorlock.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/zwave_me/number.py b/homeassistant/components/zwave_me/number.py index 4e9acc1f76b..28fd8abe460 100644 --- a/homeassistant/components/zwave_me/number.py +++ b/homeassistant/components/zwave_me/number.py @@ -1,4 +1,5 @@ """Representation of a switchMultilevel.""" + from homeassistant.components.number import NumberEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback diff --git a/homeassistant/components/zwave_me/sensor.py b/homeassistant/components/zwave_me/sensor.py index f96e2d789ff..20470e6e62b 100644 --- a/homeassistant/components/zwave_me/sensor.py +++ b/homeassistant/components/zwave_me/sensor.py @@ -1,4 +1,5 @@ """Representation of a sensorMultilevel.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/zwave_me/siren.py b/homeassistant/components/zwave_me/siren.py index c6757f61ad7..a1bf8081616 100644 --- a/homeassistant/components/zwave_me/siren.py +++ b/homeassistant/components/zwave_me/siren.py @@ -1,4 +1,5 @@ """Representation of a sirenBinary.""" + from typing import Any from homeassistant.components.siren import SirenEntity, SirenEntityFeature