From 988c71ecc533238a1b4e82c2d9f8ec95dfd76fe0 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:04:07 +0100 Subject: [PATCH] Add empty line after module docstring [n-q] (#112702) --- homeassistant/components/nad/media_player.py | 1 + homeassistant/components/nam/__init__.py | 1 + homeassistant/components/nam/button.py | 1 + homeassistant/components/nam/config_flow.py | 1 + homeassistant/components/nam/const.py | 1 + homeassistant/components/nam/diagnostics.py | 1 + homeassistant/components/nam/sensor.py | 1 + homeassistant/components/namecheapdns/__init__.py | 1 + homeassistant/components/nanoleaf/__init__.py | 1 + homeassistant/components/nanoleaf/config_flow.py | 1 + homeassistant/components/nanoleaf/device_trigger.py | 1 + homeassistant/components/nanoleaf/diagnostics.py | 1 + homeassistant/components/nanoleaf/light.py | 1 + homeassistant/components/neato/api.py | 1 + homeassistant/components/neato/button.py | 1 + homeassistant/components/neato/camera.py | 1 + homeassistant/components/neato/config_flow.py | 1 + homeassistant/components/neato/entity.py | 1 + homeassistant/components/neato/hub.py | 1 + homeassistant/components/neato/sensor.py | 1 + homeassistant/components/neato/switch.py | 1 + homeassistant/components/neato/vacuum.py | 1 + homeassistant/components/nederlandse_spoorwegen/sensor.py | 1 + homeassistant/components/ness_alarm/__init__.py | 1 + homeassistant/components/ness_alarm/alarm_control_panel.py | 1 + homeassistant/components/ness_alarm/binary_sensor.py | 1 + homeassistant/components/nest/__init__.py | 1 + homeassistant/components/nest/camera.py | 1 + homeassistant/components/nest/climate.py | 1 + homeassistant/components/nest/config_flow.py | 1 + homeassistant/components/nest/device_trigger.py | 1 + homeassistant/components/nest/sensor.py | 1 + homeassistant/components/netatmo/__init__.py | 1 + homeassistant/components/netatmo/api.py | 1 + homeassistant/components/netatmo/camera.py | 1 + homeassistant/components/netatmo/climate.py | 1 + homeassistant/components/netatmo/config_flow.py | 1 + homeassistant/components/netatmo/const.py | 1 + homeassistant/components/netatmo/cover.py | 1 + homeassistant/components/netatmo/data_handler.py | 1 + homeassistant/components/netatmo/device_trigger.py | 1 + homeassistant/components/netatmo/diagnostics.py | 1 + homeassistant/components/netatmo/entity.py | 1 + homeassistant/components/netatmo/fan.py | 1 + homeassistant/components/netatmo/helper.py | 1 + homeassistant/components/netatmo/light.py | 1 + homeassistant/components/netatmo/media_source.py | 1 + homeassistant/components/netatmo/select.py | 1 + homeassistant/components/netatmo/sensor.py | 1 + homeassistant/components/netatmo/switch.py | 1 + homeassistant/components/netdata/sensor.py | 1 + homeassistant/components/netgear/__init__.py | 1 + homeassistant/components/netgear/button.py | 1 + homeassistant/components/netgear/config_flow.py | 1 + homeassistant/components/netgear/const.py | 1 + homeassistant/components/netgear/device_tracker.py | 1 + homeassistant/components/netgear/entity.py | 1 + homeassistant/components/netgear/errors.py | 1 + homeassistant/components/netgear/router.py | 1 + homeassistant/components/netgear/sensor.py | 1 + homeassistant/components/netgear/switch.py | 1 + homeassistant/components/netgear/update.py | 1 + homeassistant/components/netgear_lte/__init__.py | 1 + homeassistant/components/netgear_lte/binary_sensor.py | 1 + homeassistant/components/netgear_lte/config_flow.py | 1 + homeassistant/components/netgear_lte/notify.py | 1 + homeassistant/components/netgear_lte/sensor.py | 1 + homeassistant/components/netgear_lte/services.py | 1 + homeassistant/components/netio/switch.py | 1 + homeassistant/components/network/__init__.py | 1 + homeassistant/components/network/const.py | 1 + homeassistant/components/network/models.py | 1 + homeassistant/components/network/network.py | 1 + homeassistant/components/network/util.py | 1 + homeassistant/components/network/websocket.py | 1 + homeassistant/components/neurio_energy/sensor.py | 1 + homeassistant/components/nexia/binary_sensor.py | 1 + homeassistant/components/nexia/climate.py | 1 + homeassistant/components/nexia/const.py | 1 + homeassistant/components/nexia/coordinator.py | 1 + homeassistant/components/nexia/diagnostics.py | 1 + homeassistant/components/nexia/number.py | 1 + homeassistant/components/nexia/scene.py | 1 + homeassistant/components/nexia/sensor.py | 1 + homeassistant/components/nexia/switch.py | 1 + homeassistant/components/nextbus/config_flow.py | 1 + homeassistant/components/nextbus/coordinator.py | 1 + homeassistant/components/nextbus/sensor.py | 1 + homeassistant/components/nextbus/util.py | 1 + homeassistant/components/nextcloud/binary_sensor.py | 1 + homeassistant/components/nextcloud/config_flow.py | 1 + homeassistant/components/nextcloud/const.py | 1 + homeassistant/components/nextcloud/entity.py | 1 + homeassistant/components/nextcloud/sensor.py | 1 + homeassistant/components/nextcloud/update.py | 1 + homeassistant/components/nextdns/__init__.py | 1 + homeassistant/components/nextdns/binary_sensor.py | 1 + homeassistant/components/nextdns/button.py | 1 + homeassistant/components/nextdns/config_flow.py | 1 + homeassistant/components/nextdns/const.py | 1 + homeassistant/components/nextdns/diagnostics.py | 1 + homeassistant/components/nextdns/sensor.py | 1 + homeassistant/components/nextdns/switch.py | 1 + homeassistant/components/nextdns/system_health.py | 1 + homeassistant/components/nfandroidtv/__init__.py | 1 + homeassistant/components/nfandroidtv/config_flow.py | 1 + homeassistant/components/nfandroidtv/notify.py | 1 + homeassistant/components/nibe_heatpump/__init__.py | 1 + homeassistant/components/nibe_heatpump/binary_sensor.py | 1 + homeassistant/components/nibe_heatpump/button.py | 1 + homeassistant/components/nibe_heatpump/climate.py | 1 + homeassistant/components/nibe_heatpump/config_flow.py | 1 + homeassistant/components/nibe_heatpump/coordinator.py | 1 + homeassistant/components/nibe_heatpump/number.py | 1 + homeassistant/components/nibe_heatpump/select.py | 1 + homeassistant/components/nibe_heatpump/sensor.py | 1 + homeassistant/components/nibe_heatpump/switch.py | 1 + homeassistant/components/nibe_heatpump/water_heater.py | 1 + homeassistant/components/nightscout/sensor.py | 1 + homeassistant/components/nightscout/utils.py | 1 + homeassistant/components/niko_home_control/light.py | 1 + homeassistant/components/nilu/air_quality.py | 1 + homeassistant/components/nina/__init__.py | 1 + homeassistant/components/nina/binary_sensor.py | 1 + homeassistant/components/nina/config_flow.py | 1 + homeassistant/components/nina/const.py | 1 + homeassistant/components/nina/coordinator.py | 1 + homeassistant/components/nissan_leaf/__init__.py | 1 + homeassistant/components/nissan_leaf/binary_sensor.py | 1 + homeassistant/components/nissan_leaf/button.py | 1 + homeassistant/components/nissan_leaf/const.py | 1 + homeassistant/components/nissan_leaf/sensor.py | 1 + homeassistant/components/nissan_leaf/switch.py | 1 + homeassistant/components/nmap_tracker/__init__.py | 1 + homeassistant/components/nmap_tracker/config_flow.py | 1 + homeassistant/components/nmap_tracker/const.py | 1 + homeassistant/components/nmap_tracker/device_tracker.py | 1 + homeassistant/components/nmbs/sensor.py | 1 + homeassistant/components/noaa_tides/sensor.py | 1 + homeassistant/components/nobo_hub/__init__.py | 1 + homeassistant/components/nobo_hub/climate.py | 1 + homeassistant/components/nobo_hub/config_flow.py | 1 + homeassistant/components/nobo_hub/select.py | 1 + homeassistant/components/nobo_hub/sensor.py | 1 + homeassistant/components/norway_air/air_quality.py | 1 + homeassistant/components/notify/__init__.py | 1 + homeassistant/components/notify/legacy.py | 1 + homeassistant/components/notify_events/notify.py | 1 + homeassistant/components/notion/__init__.py | 1 + homeassistant/components/notion/binary_sensor.py | 1 + homeassistant/components/notion/config_flow.py | 1 + homeassistant/components/notion/diagnostics.py | 1 + homeassistant/components/notion/model.py | 1 + homeassistant/components/notion/sensor.py | 1 + homeassistant/components/notion/util.py | 1 + homeassistant/components/nsw_fuel_station/__init__.py | 1 + homeassistant/components/nsw_fuel_station/sensor.py | 1 + .../components/nsw_rural_fire_service_feed/geo_location.py | 1 + homeassistant/components/nuheat/__init__.py | 1 + homeassistant/components/nuheat/config_flow.py | 1 + homeassistant/components/nuheat/const.py | 1 + homeassistant/components/nuki/__init__.py | 1 + homeassistant/components/nuki/binary_sensor.py | 1 + homeassistant/components/nuki/config_flow.py | 1 + homeassistant/components/nuki/helpers.py | 1 + homeassistant/components/nuki/lock.py | 1 + homeassistant/components/nuki/sensor.py | 1 + homeassistant/components/numato/binary_sensor.py | 1 + homeassistant/components/numato/sensor.py | 1 + homeassistant/components/numato/switch.py | 1 + homeassistant/components/number/__init__.py | 1 + homeassistant/components/number/const.py | 1 + homeassistant/components/number/device_action.py | 1 + homeassistant/components/number/reproduce_state.py | 1 + homeassistant/components/number/significant_change.py | 1 + homeassistant/components/number/websocket_api.py | 1 + homeassistant/components/nut/__init__.py | 1 + homeassistant/components/nut/config_flow.py | 1 + homeassistant/components/nut/const.py | 1 + homeassistant/components/nut/device_action.py | 1 + homeassistant/components/nut/diagnostics.py | 1 + homeassistant/components/nut/sensor.py | 1 + homeassistant/components/nws/__init__.py | 1 + homeassistant/components/nws/config_flow.py | 1 + homeassistant/components/nws/const.py | 1 + homeassistant/components/nws/sensor.py | 1 + homeassistant/components/nws/weather.py | 1 + homeassistant/components/nx584/alarm_control_panel.py | 1 + homeassistant/components/nx584/binary_sensor.py | 1 + homeassistant/components/nzbget/config_flow.py | 1 + homeassistant/components/nzbget/sensor.py | 1 + homeassistant/components/nzbget/switch.py | 1 + homeassistant/components/oasa_telematics/sensor.py | 1 + homeassistant/components/obihai/sensor.py | 1 + homeassistant/components/octoprint/__init__.py | 1 + homeassistant/components/octoprint/binary_sensor.py | 1 + homeassistant/components/octoprint/button.py | 1 + homeassistant/components/octoprint/camera.py | 1 + homeassistant/components/octoprint/config_flow.py | 1 + homeassistant/components/octoprint/coordinator.py | 1 + homeassistant/components/octoprint/sensor.py | 1 + homeassistant/components/oem/climate.py | 1 + homeassistant/components/ohmconnect/sensor.py | 1 + homeassistant/components/ombi/const.py | 1 + homeassistant/components/ombi/sensor.py | 1 + homeassistant/components/omnilogic/config_flow.py | 1 + homeassistant/components/omnilogic/sensor.py | 1 + homeassistant/components/onboarding/__init__.py | 1 + homeassistant/components/onboarding/views.py | 1 + homeassistant/components/oncue/__init__.py | 1 + homeassistant/components/oncue/binary_sensor.py | 1 + homeassistant/components/oncue/config_flow.py | 1 + homeassistant/components/oncue/entity.py | 1 + homeassistant/components/oncue/sensor.py | 1 + homeassistant/components/ondilo_ico/api.py | 1 + homeassistant/components/ondilo_ico/sensor.py | 1 + homeassistant/components/onewire/binary_sensor.py | 1 + homeassistant/components/onewire/config_flow.py | 1 + homeassistant/components/onewire/const.py | 1 + homeassistant/components/onewire/diagnostics.py | 1 + homeassistant/components/onewire/model.py | 1 + homeassistant/components/onewire/onewire_entities.py | 1 + homeassistant/components/onewire/onewirehub.py | 1 + homeassistant/components/onewire/sensor.py | 1 + homeassistant/components/onewire/switch.py | 1 + homeassistant/components/onkyo/media_player.py | 1 + homeassistant/components/onvif/base.py | 1 + homeassistant/components/onvif/binary_sensor.py | 1 + homeassistant/components/onvif/button.py | 1 + homeassistant/components/onvif/camera.py | 1 + homeassistant/components/onvif/config_flow.py | 1 + homeassistant/components/onvif/device.py | 1 + homeassistant/components/onvif/diagnostics.py | 1 + homeassistant/components/onvif/event.py | 1 + homeassistant/components/onvif/models.py | 1 + homeassistant/components/onvif/parsers.py | 1 + homeassistant/components/onvif/sensor.py | 1 + homeassistant/components/onvif/switch.py | 1 + homeassistant/components/onvif/util.py | 1 + homeassistant/components/open_meteo/__init__.py | 1 + homeassistant/components/open_meteo/config_flow.py | 1 + homeassistant/components/open_meteo/const.py | 1 + homeassistant/components/open_meteo/diagnostics.py | 1 + homeassistant/components/open_meteo/weather.py | 1 + homeassistant/components/openai_conversation/__init__.py | 1 + homeassistant/components/openai_conversation/config_flow.py | 1 + homeassistant/components/openalpr_cloud/image_processing.py | 1 + homeassistant/components/opencv/image_processing.py | 1 + homeassistant/components/openerz/sensor.py | 1 + homeassistant/components/openevse/sensor.py | 1 + homeassistant/components/openexchangerates/__init__.py | 1 + homeassistant/components/openexchangerates/config_flow.py | 1 + homeassistant/components/openexchangerates/const.py | 1 + homeassistant/components/openexchangerates/coordinator.py | 1 + homeassistant/components/openexchangerates/sensor.py | 1 + homeassistant/components/opengarage/__init__.py | 1 + homeassistant/components/opengarage/binary_sensor.py | 1 + homeassistant/components/opengarage/button.py | 1 + homeassistant/components/opengarage/config_flow.py | 1 + homeassistant/components/opengarage/cover.py | 1 + homeassistant/components/opengarage/entity.py | 1 + homeassistant/components/opengarage/sensor.py | 1 + homeassistant/components/openhardwaremonitor/sensor.py | 1 + homeassistant/components/openhome/media_player.py | 1 + homeassistant/components/openhome/update.py | 1 + homeassistant/components/opensensemap/air_quality.py | 1 + homeassistant/components/opensky/__init__.py | 1 + homeassistant/components/opensky/config_flow.py | 1 + homeassistant/components/opensky/coordinator.py | 1 + homeassistant/components/opensky/sensor.py | 1 + homeassistant/components/opentherm_gw/climate.py | 1 + homeassistant/components/opentherm_gw/config_flow.py | 1 + homeassistant/components/opentherm_gw/const.py | 1 + homeassistant/components/openuv/__init__.py | 1 + homeassistant/components/openuv/binary_sensor.py | 1 + homeassistant/components/openuv/config_flow.py | 1 + homeassistant/components/openuv/coordinator.py | 1 + homeassistant/components/openuv/diagnostics.py | 1 + homeassistant/components/openuv/sensor.py | 1 + homeassistant/components/openweathermap/__init__.py | 1 + homeassistant/components/openweathermap/config_flow.py | 1 + homeassistant/components/openweathermap/const.py | 1 + homeassistant/components/openweathermap/sensor.py | 1 + homeassistant/components/openweathermap/weather.py | 1 + homeassistant/components/opnsense/device_tracker.py | 1 + homeassistant/components/opower/__init__.py | 1 + homeassistant/components/opower/config_flow.py | 1 + homeassistant/components/opower/coordinator.py | 1 + homeassistant/components/opower/sensor.py | 1 + homeassistant/components/opple/light.py | 1 + homeassistant/components/oralb/__init__.py | 1 + homeassistant/components/oralb/config_flow.py | 1 + homeassistant/components/oralb/device.py | 1 + homeassistant/components/oralb/sensor.py | 1 + homeassistant/components/oru/sensor.py | 1 + homeassistant/components/orvibo/switch.py | 1 + homeassistant/components/osoenergy/__init__.py | 1 + homeassistant/components/osoenergy/config_flow.py | 1 + homeassistant/components/osoenergy/water_heater.py | 1 + homeassistant/components/osramlightify/light.py | 1 + homeassistant/components/otbr/__init__.py | 1 + homeassistant/components/otbr/config_flow.py | 1 + homeassistant/components/otbr/util.py | 1 + homeassistant/components/otp/sensor.py | 1 + homeassistant/components/ourgroceries/__init__.py | 1 + homeassistant/components/ourgroceries/config_flow.py | 1 + homeassistant/components/ourgroceries/coordinator.py | 1 + homeassistant/components/overkiz/__init__.py | 1 + homeassistant/components/overkiz/alarm_control_panel.py | 1 + homeassistant/components/overkiz/binary_sensor.py | 1 + homeassistant/components/overkiz/button.py | 1 + homeassistant/components/overkiz/climate.py | 1 + homeassistant/components/overkiz/climate_entities/__init__.py | 1 + .../overkiz/climate_entities/atlantic_electrical_heater.py | 1 + ...tic_electrical_heater_with_adjustable_temperature_setpoint.py | 1 + .../overkiz/climate_entities/atlantic_electrical_towel_dryer.py | 1 + .../climate_entities/atlantic_heat_recovery_ventilation.py | 1 + .../overkiz/climate_entities/atlantic_pass_apc_heating_zone.py | 1 + .../overkiz/climate_entities/atlantic_pass_apc_zone_control.py | 1 + .../climate_entities/atlantic_pass_apc_zone_control_zone.py | 1 + .../climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py | 1 + .../overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py | 1 + .../climate_entities/somfy_heating_temperature_interface.py | 1 + .../components/overkiz/climate_entities/somfy_thermostat.py | 1 + .../climate_entities/valve_heating_temperature_interface.py | 1 + homeassistant/components/overkiz/config_flow.py | 1 + homeassistant/components/overkiz/const.py | 1 + homeassistant/components/overkiz/coordinator.py | 1 + homeassistant/components/overkiz/cover.py | 1 + homeassistant/components/overkiz/cover_entities/awning.py | 1 + homeassistant/components/overkiz/cover_entities/generic_cover.py | 1 + .../components/overkiz/cover_entities/vertical_cover.py | 1 + homeassistant/components/overkiz/diagnostics.py | 1 + homeassistant/components/overkiz/entity.py | 1 + homeassistant/components/overkiz/executor.py | 1 + homeassistant/components/overkiz/light.py | 1 + homeassistant/components/overkiz/lock.py | 1 + homeassistant/components/overkiz/number.py | 1 + homeassistant/components/overkiz/scene.py | 1 + homeassistant/components/overkiz/select.py | 1 + homeassistant/components/overkiz/sensor.py | 1 + homeassistant/components/overkiz/siren.py | 1 + homeassistant/components/overkiz/switch.py | 1 + homeassistant/components/overkiz/water_heater.py | 1 + .../components/overkiz/water_heater_entities/__init__.py | 1 + .../water_heater_entities/domestic_hot_water_production.py | 1 + .../components/overkiz/water_heater_entities/hitachi_dhw.py | 1 + homeassistant/components/ovo_energy/__init__.py | 1 + homeassistant/components/ovo_energy/config_flow.py | 1 + homeassistant/components/ovo_energy/sensor.py | 1 + homeassistant/components/owntracks/__init__.py | 1 + homeassistant/components/owntracks/device_tracker.py | 1 + homeassistant/components/p1_monitor/__init__.py | 1 + homeassistant/components/p1_monitor/config_flow.py | 1 + homeassistant/components/p1_monitor/const.py | 1 + homeassistant/components/p1_monitor/diagnostics.py | 1 + homeassistant/components/p1_monitor/sensor.py | 1 + homeassistant/components/panasonic_bluray/media_player.py | 1 + homeassistant/components/panasonic_viera/__init__.py | 1 + homeassistant/components/panasonic_viera/config_flow.py | 1 + homeassistant/components/panasonic_viera/media_player.py | 1 + homeassistant/components/panasonic_viera/remote.py | 1 + homeassistant/components/pandora/media_player.py | 1 + homeassistant/components/panel_custom/__init__.py | 1 + homeassistant/components/peco/__init__.py | 1 + homeassistant/components/peco/binary_sensor.py | 1 + homeassistant/components/peco/config_flow.py | 1 + homeassistant/components/peco/sensor.py | 1 + homeassistant/components/pegel_online/__init__.py | 1 + homeassistant/components/pegel_online/config_flow.py | 1 + homeassistant/components/pegel_online/const.py | 1 + homeassistant/components/pegel_online/entity.py | 1 + homeassistant/components/pegel_online/sensor.py | 1 + homeassistant/components/pencom/switch.py | 1 + homeassistant/components/permobil/__init__.py | 1 + homeassistant/components/permobil/binary_sensor.py | 1 + homeassistant/components/permobil/config_flow.py | 1 + homeassistant/components/permobil/sensor.py | 1 + homeassistant/components/persistent_notification/__init__.py | 1 + homeassistant/components/persistent_notification/trigger.py | 1 + homeassistant/components/person/__init__.py | 1 + homeassistant/components/person/significant_change.py | 1 + homeassistant/components/philips_js/__init__.py | 1 + homeassistant/components/philips_js/binary_sensor.py | 1 + homeassistant/components/philips_js/config_flow.py | 1 + homeassistant/components/philips_js/device_trigger.py | 1 + homeassistant/components/philips_js/diagnostics.py | 1 + homeassistant/components/philips_js/entity.py | 1 + homeassistant/components/philips_js/light.py | 1 + homeassistant/components/philips_js/media_player.py | 1 + homeassistant/components/philips_js/remote.py | 1 + homeassistant/components/philips_js/switch.py | 1 + homeassistant/components/pi_hole/__init__.py | 1 + homeassistant/components/pi_hole/binary_sensor.py | 1 + homeassistant/components/pi_hole/config_flow.py | 1 + homeassistant/components/pi_hole/const.py | 1 + homeassistant/components/pi_hole/diagnostics.py | 1 + homeassistant/components/pi_hole/sensor.py | 1 + homeassistant/components/pi_hole/switch.py | 1 + homeassistant/components/pi_hole/update.py | 1 + homeassistant/components/picnic/config_flow.py | 1 + homeassistant/components/picnic/const.py | 1 + homeassistant/components/picnic/sensor.py | 1 + homeassistant/components/picnic/services.py | 1 + homeassistant/components/picnic/todo.py | 1 + homeassistant/components/pilight/__init__.py | 1 + homeassistant/components/pilight/binary_sensor.py | 1 + homeassistant/components/pilight/light.py | 1 + homeassistant/components/pilight/sensor.py | 1 + homeassistant/components/pilight/switch.py | 1 + homeassistant/components/ping/__init__.py | 1 + homeassistant/components/ping/binary_sensor.py | 1 + homeassistant/components/ping/config_flow.py | 1 + homeassistant/components/ping/coordinator.py | 1 + homeassistant/components/ping/device_tracker.py | 1 + homeassistant/components/ping/entity.py | 1 + homeassistant/components/ping/sensor.py | 1 + homeassistant/components/pioneer/media_player.py | 1 + homeassistant/components/pjlink/media_player.py | 1 + homeassistant/components/plaato/__init__.py | 1 + homeassistant/components/plaato/binary_sensor.py | 1 + homeassistant/components/plaato/config_flow.py | 1 + homeassistant/components/plaato/const.py | 1 + homeassistant/components/plaato/entity.py | 1 + homeassistant/components/plaato/sensor.py | 1 + homeassistant/components/plant/__init__.py | 1 + homeassistant/components/plant/const.py | 1 + homeassistant/components/plex/__init__.py | 1 + homeassistant/components/plex/button.py | 1 + homeassistant/components/plex/cast.py | 1 + homeassistant/components/plex/config_flow.py | 1 + homeassistant/components/plex/const.py | 1 + homeassistant/components/plex/errors.py | 1 + homeassistant/components/plex/helpers.py | 1 + homeassistant/components/plex/media_browser.py | 1 + homeassistant/components/plex/media_player.py | 1 + homeassistant/components/plex/media_search.py | 1 + homeassistant/components/plex/sensor.py | 1 + homeassistant/components/plex/server.py | 1 + homeassistant/components/plex/view.py | 1 + homeassistant/components/plugwise/__init__.py | 1 + homeassistant/components/plugwise/binary_sensor.py | 1 + homeassistant/components/plugwise/climate.py | 1 + homeassistant/components/plugwise/config_flow.py | 1 + homeassistant/components/plugwise/const.py | 1 + homeassistant/components/plugwise/coordinator.py | 1 + homeassistant/components/plugwise/diagnostics.py | 1 + homeassistant/components/plugwise/entity.py | 1 + homeassistant/components/plugwise/number.py | 1 + homeassistant/components/plugwise/select.py | 1 + homeassistant/components/plugwise/sensor.py | 1 + homeassistant/components/plugwise/switch.py | 1 + homeassistant/components/plugwise/util.py | 1 + homeassistant/components/plum_lightpad/config_flow.py | 1 + homeassistant/components/plum_lightpad/light.py | 1 + homeassistant/components/pocketcasts/sensor.py | 1 + homeassistant/components/point/alarm_control_panel.py | 1 + homeassistant/components/point/binary_sensor.py | 1 + homeassistant/components/point/const.py | 1 + homeassistant/components/point/sensor.py | 1 + homeassistant/components/poolsense/binary_sensor.py | 1 + homeassistant/components/poolsense/entity.py | 1 + homeassistant/components/poolsense/sensor.py | 1 + homeassistant/components/powerwall/__init__.py | 1 + homeassistant/components/powerwall/config_flow.py | 1 + homeassistant/components/powerwall/const.py | 1 + homeassistant/components/powerwall/models.py | 1 + homeassistant/components/powerwall/sensor.py | 1 + homeassistant/components/private_ble_device/__init__.py | 1 + homeassistant/components/private_ble_device/config_flow.py | 1 + homeassistant/components/private_ble_device/coordinator.py | 1 + homeassistant/components/private_ble_device/device_tracker.py | 1 + homeassistant/components/private_ble_device/entity.py | 1 + homeassistant/components/private_ble_device/sensor.py | 1 + homeassistant/components/profiler/config_flow.py | 1 + homeassistant/components/proliphix/climate.py | 1 + homeassistant/components/prometheus/__init__.py | 1 + homeassistant/components/prosegur/alarm_control_panel.py | 1 + homeassistant/components/prosegur/camera.py | 1 + homeassistant/components/prosegur/config_flow.py | 1 + homeassistant/components/prosegur/diagnostics.py | 1 + homeassistant/components/prowl/notify.py | 1 + homeassistant/components/proximity/__init__.py | 1 + homeassistant/components/proximity/config_flow.py | 1 + homeassistant/components/proximity/diagnostics.py | 1 + homeassistant/components/proximity/helpers.py | 1 + homeassistant/components/proxmoxve/__init__.py | 1 + homeassistant/components/proxmoxve/binary_sensor.py | 1 + homeassistant/components/proxy/camera.py | 1 + homeassistant/components/prusalink/__init__.py | 1 + homeassistant/components/prusalink/button.py | 1 + homeassistant/components/prusalink/camera.py | 1 + homeassistant/components/prusalink/config_flow.py | 1 + homeassistant/components/prusalink/sensor.py | 1 + homeassistant/components/ps4/config_flow.py | 1 + homeassistant/components/ps4/media_player.py | 1 + homeassistant/components/pulseaudio_loopback/switch.py | 1 + homeassistant/components/pure_energie/__init__.py | 1 + homeassistant/components/pure_energie/config_flow.py | 1 + homeassistant/components/pure_energie/const.py | 1 + homeassistant/components/pure_energie/diagnostics.py | 1 + homeassistant/components/pure_energie/sensor.py | 1 + homeassistant/components/purpleair/__init__.py | 1 + homeassistant/components/purpleair/config_flow.py | 1 + homeassistant/components/purpleair/coordinator.py | 1 + homeassistant/components/purpleair/diagnostics.py | 1 + homeassistant/components/purpleair/sensor.py | 1 + homeassistant/components/push/camera.py | 1 + homeassistant/components/pushbullet/__init__.py | 1 + homeassistant/components/pushbullet/api.py | 1 + homeassistant/components/pushbullet/config_flow.py | 1 + homeassistant/components/pushbullet/notify.py | 1 + homeassistant/components/pushbullet/sensor.py | 1 + homeassistant/components/pushover/__init__.py | 1 + homeassistant/components/pushover/config_flow.py | 1 + homeassistant/components/pushover/notify.py | 1 + homeassistant/components/pushsafer/notify.py | 1 + homeassistant/components/pvoutput/__init__.py | 1 + homeassistant/components/pvoutput/config_flow.py | 1 + homeassistant/components/pvoutput/const.py | 1 + homeassistant/components/pvoutput/coordinator.py | 1 + homeassistant/components/pvoutput/diagnostics.py | 1 + homeassistant/components/pvoutput/sensor.py | 1 + homeassistant/components/pvpc_hourly_pricing/__init__.py | 1 + homeassistant/components/pvpc_hourly_pricing/config_flow.py | 1 + homeassistant/components/pvpc_hourly_pricing/const.py | 1 + homeassistant/components/pvpc_hourly_pricing/helpers.py | 1 + homeassistant/components/pvpc_hourly_pricing/sensor.py | 1 + homeassistant/components/pyload/sensor.py | 1 + homeassistant/components/qbittorrent/config_flow.py | 1 + homeassistant/components/qbittorrent/const.py | 1 + homeassistant/components/qbittorrent/coordinator.py | 1 + homeassistant/components/qbittorrent/helpers.py | 1 + homeassistant/components/qbittorrent/sensor.py | 1 + homeassistant/components/qingping/__init__.py | 1 + homeassistant/components/qingping/binary_sensor.py | 1 + homeassistant/components/qingping/config_flow.py | 1 + homeassistant/components/qingping/device.py | 1 + homeassistant/components/qingping/sensor.py | 1 + homeassistant/components/qld_bushfire/geo_location.py | 1 + homeassistant/components/qnap/__init__.py | 1 + homeassistant/components/qnap/config_flow.py | 1 + homeassistant/components/qnap/coordinator.py | 1 + homeassistant/components/qnap/sensor.py | 1 + homeassistant/components/qnap_qsw/__init__.py | 1 + homeassistant/components/qnap_qsw/binary_sensor.py | 1 + homeassistant/components/qnap_qsw/button.py | 1 + homeassistant/components/qnap_qsw/config_flow.py | 1 + homeassistant/components/qnap_qsw/coordinator.py | 1 + homeassistant/components/qnap_qsw/diagnostics.py | 1 + homeassistant/components/qnap_qsw/entity.py | 1 + homeassistant/components/qnap_qsw/sensor.py | 1 + homeassistant/components/qnap_qsw/update.py | 1 + homeassistant/components/qrcode/image_processing.py | 1 + homeassistant/components/quantum_gateway/device_tracker.py | 1 + homeassistant/components/qvr_pro/camera.py | 1 + homeassistant/components/qwikswitch/__init__.py | 1 + homeassistant/components/qwikswitch/binary_sensor.py | 1 + homeassistant/components/qwikswitch/light.py | 1 + homeassistant/components/qwikswitch/sensor.py | 1 + homeassistant/components/qwikswitch/switch.py | 1 + 561 files changed, 561 insertions(+) diff --git a/homeassistant/components/nad/media_player.py b/homeassistant/components/nad/media_player.py index fd84668d651a..fa9ce4dd08ee 100644 --- a/homeassistant/components/nad/media_player.py +++ b/homeassistant/components/nad/media_player.py @@ -1,4 +1,5 @@ """Support for interfacing with NAD receivers through RS-232.""" + from __future__ import annotations from nad_receiver import NADReceiver, NADReceiverTCP, NADReceiverTelnet diff --git a/homeassistant/components/nam/__init__.py b/homeassistant/components/nam/__init__.py index 9df1b93a4d76..63fd6af92951 100644 --- a/homeassistant/components/nam/__init__.py +++ b/homeassistant/components/nam/__init__.py @@ -1,4 +1,5 @@ """The Nettigo Air Monitor component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nam/button.py b/homeassistant/components/nam/button.py index a280369e7c85..b414e5c5525f 100644 --- a/homeassistant/components/nam/button.py +++ b/homeassistant/components/nam/button.py @@ -1,4 +1,5 @@ """Support for the Nettigo Air Monitor service.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nam/config_flow.py b/homeassistant/components/nam/config_flow.py index c91f08b743a8..efdc8f2514b4 100644 --- a/homeassistant/components/nam/config_flow.py +++ b/homeassistant/components/nam/config_flow.py @@ -1,4 +1,5 @@ """Adds config flow for Nettigo Air Monitor.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nam/const.py b/homeassistant/components/nam/const.py index 5e18b94745c9..66718b01c3f0 100644 --- a/homeassistant/components/nam/const.py +++ b/homeassistant/components/nam/const.py @@ -1,4 +1,5 @@ """Constants for Nettigo Air Monitor integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nam/diagnostics.py b/homeassistant/components/nam/diagnostics.py index f3e4a20cc765..8ce885f02978 100644 --- a/homeassistant/components/nam/diagnostics.py +++ b/homeassistant/components/nam/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for NAM.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/nam/sensor.py b/homeassistant/components/nam/sensor.py index cd1543affa2e..de516c6d6072 100644 --- a/homeassistant/components/nam/sensor.py +++ b/homeassistant/components/nam/sensor.py @@ -1,4 +1,5 @@ """Support for the Nettigo Air Monitor service.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/namecheapdns/__init__.py b/homeassistant/components/namecheapdns/__init__.py index 84f995c947ad..43310c5e9229 100644 --- a/homeassistant/components/namecheapdns/__init__.py +++ b/homeassistant/components/namecheapdns/__init__.py @@ -1,4 +1,5 @@ """Support for namecheap DNS services.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/nanoleaf/__init__.py b/homeassistant/components/nanoleaf/__init__.py index 4c3b08801704..9e368353774e 100644 --- a/homeassistant/components/nanoleaf/__init__.py +++ b/homeassistant/components/nanoleaf/__init__.py @@ -1,4 +1,5 @@ """The Nanoleaf integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nanoleaf/config_flow.py b/homeassistant/components/nanoleaf/config_flow.py index d4948507a423..ff25a25caf4e 100644 --- a/homeassistant/components/nanoleaf/config_flow.py +++ b/homeassistant/components/nanoleaf/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nanoleaf integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/nanoleaf/device_trigger.py b/homeassistant/components/nanoleaf/device_trigger.py index 5de093a4a170..15b14e9719e8 100644 --- a/homeassistant/components/nanoleaf/device_trigger.py +++ b/homeassistant/components/nanoleaf/device_trigger.py @@ -1,4 +1,5 @@ """Provides device triggers for Nanoleaf.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/nanoleaf/diagnostics.py b/homeassistant/components/nanoleaf/diagnostics.py index 9783f7854f36..57f385e50393 100644 --- a/homeassistant/components/nanoleaf/diagnostics.py +++ b/homeassistant/components/nanoleaf/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Nanoleaf.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nanoleaf/light.py b/homeassistant/components/nanoleaf/light.py index e8d604d92365..b80048307bb6 100644 --- a/homeassistant/components/nanoleaf/light.py +++ b/homeassistant/components/nanoleaf/light.py @@ -1,4 +1,5 @@ """Support for Nanoleaf Lights.""" + from __future__ import annotations import math diff --git a/homeassistant/components/neato/api.py b/homeassistant/components/neato/api.py index d4596f1658d3..75a3d6724de8 100644 --- a/homeassistant/components/neato/api.py +++ b/homeassistant/components/neato/api.py @@ -1,4 +1,5 @@ """API for Neato Botvac bound to Home Assistant OAuth.""" + from __future__ import annotations from asyncio import run_coroutine_threadsafe diff --git a/homeassistant/components/neato/button.py b/homeassistant/components/neato/button.py index 8b23bbe46813..29114ce5188d 100644 --- a/homeassistant/components/neato/button.py +++ b/homeassistant/components/neato/button.py @@ -1,4 +1,5 @@ """Support for Neato buttons.""" + from __future__ import annotations from pybotvac import Robot diff --git a/homeassistant/components/neato/camera.py b/homeassistant/components/neato/camera.py index 9ce66a536223..7aeadb0698df 100644 --- a/homeassistant/components/neato/camera.py +++ b/homeassistant/components/neato/camera.py @@ -1,4 +1,5 @@ """Support for loading picture from Neato.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/neato/config_flow.py b/homeassistant/components/neato/config_flow.py index 89a8639009fa..642fea110817 100644 --- a/homeassistant/components/neato/config_flow.py +++ b/homeassistant/components/neato/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Neato Botvac.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/neato/entity.py b/homeassistant/components/neato/entity.py index 46ad358c6380..e4486b20ec44 100644 --- a/homeassistant/components/neato/entity.py +++ b/homeassistant/components/neato/entity.py @@ -1,4 +1,5 @@ """Base entity for Neato.""" + from __future__ import annotations from pybotvac import Robot diff --git a/homeassistant/components/neato/hub.py b/homeassistant/components/neato/hub.py index 6ee00b2a8b43..fd5f045c30f2 100644 --- a/homeassistant/components/neato/hub.py +++ b/homeassistant/components/neato/hub.py @@ -1,4 +1,5 @@ """Support for Neato botvac connected vacuum cleaners.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/neato/sensor.py b/homeassistant/components/neato/sensor.py index 3b68ddcf3dfe..f781c49457e0 100644 --- a/homeassistant/components/neato/sensor.py +++ b/homeassistant/components/neato/sensor.py @@ -1,4 +1,5 @@ """Support for Neato sensors.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/neato/switch.py b/homeassistant/components/neato/switch.py index ae90a8230b28..34a0b13a8702 100644 --- a/homeassistant/components/neato/switch.py +++ b/homeassistant/components/neato/switch.py @@ -1,4 +1,5 @@ """Support for Neato Connected Vacuums switches.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/neato/vacuum.py b/homeassistant/components/neato/vacuum.py index 15127ed7d669..6f1c7c2f5d70 100644 --- a/homeassistant/components/neato/vacuum.py +++ b/homeassistant/components/neato/vacuum.py @@ -1,4 +1,5 @@ """Support for Neato Connected Vacuums.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nederlandse_spoorwegen/sensor.py b/homeassistant/components/nederlandse_spoorwegen/sensor.py index f0c782bc1b58..1e8a7c30b9d2 100644 --- a/homeassistant/components/nederlandse_spoorwegen/sensor.py +++ b/homeassistant/components/nederlandse_spoorwegen/sensor.py @@ -1,4 +1,5 @@ """Support for Nederlandse Spoorwegen public transport.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/ness_alarm/__init__.py b/homeassistant/components/ness_alarm/__init__.py index b5d302195508..a8202434ce5a 100644 --- a/homeassistant/components/ness_alarm/__init__.py +++ b/homeassistant/components/ness_alarm/__init__.py @@ -1,4 +1,5 @@ """Support for Ness D8X/D16X devices.""" + from collections import namedtuple import datetime import logging diff --git a/homeassistant/components/ness_alarm/alarm_control_panel.py b/homeassistant/components/ness_alarm/alarm_control_panel.py index a4f77f59e25c..2835dee90567 100644 --- a/homeassistant/components/ness_alarm/alarm_control_panel.py +++ b/homeassistant/components/ness_alarm/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Ness D8X/D16X alarm panel.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ness_alarm/binary_sensor.py b/homeassistant/components/ness_alarm/binary_sensor.py index 117d65b09402..bb0fa38ef72a 100644 --- a/homeassistant/components/ness_alarm/binary_sensor.py +++ b/homeassistant/components/ness_alarm/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Ness D8X/D16X zone states - represented as binary sensors.""" + from __future__ import annotations from homeassistant.components.binary_sensor import BinarySensorEntity diff --git a/homeassistant/components/nest/__init__.py b/homeassistant/components/nest/__init__.py index 8d1d58f91178..383521452d0d 100644 --- a/homeassistant/components/nest/__init__.py +++ b/homeassistant/components/nest/__init__.py @@ -1,4 +1,5 @@ """Support for Nest devices.""" + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/homeassistant/components/nest/camera.py b/homeassistant/components/nest/camera.py index c943ea922e9e..f0b3ccd477dd 100644 --- a/homeassistant/components/nest/camera.py +++ b/homeassistant/components/nest/camera.py @@ -1,4 +1,5 @@ """Support for Google Nest SDM Cameras.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nest/climate.py b/homeassistant/components/nest/climate.py index 2d0186b2bfde..5e9dcc01e97e 100644 --- a/homeassistant/components/nest/climate.py +++ b/homeassistant/components/nest/climate.py @@ -1,4 +1,5 @@ """Support for Google Nest SDM climate devices.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/nest/config_flow.py b/homeassistant/components/nest/config_flow.py index 8e05bc611c9d..e3854b060381 100644 --- a/homeassistant/components/nest/config_flow.py +++ b/homeassistant/components/nest/config_flow.py @@ -7,6 +7,7 @@ This configuration flow supports the following: NestFlowHandler is an implementation of AbstractOAuth2FlowHandler with some overrides to custom steps inserted in the middle of the flow. """ + from __future__ import annotations from collections.abc import Iterable, Mapping diff --git a/homeassistant/components/nest/device_trigger.py b/homeassistant/components/nest/device_trigger.py index f7369489e224..52c756d6a180 100644 --- a/homeassistant/components/nest/device_trigger.py +++ b/homeassistant/components/nest/device_trigger.py @@ -1,4 +1,5 @@ """Provides device automations for Nest.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/nest/sensor.py b/homeassistant/components/nest/sensor.py index aa170710eb64..edd359619fdd 100644 --- a/homeassistant/components/nest/sensor.py +++ b/homeassistant/components/nest/sensor.py @@ -1,4 +1,5 @@ """Support for Google Nest SDM sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/__init__.py b/homeassistant/components/netatmo/__init__.py index c514e7b890d2..322af8cf3acb 100644 --- a/homeassistant/components/netatmo/__init__.py +++ b/homeassistant/components/netatmo/__init__.py @@ -1,4 +1,5 @@ """The Netatmo integration.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/netatmo/api.py b/homeassistant/components/netatmo/api.py index 7605689b3f5c..f5fe591bfbfc 100644 --- a/homeassistant/components/netatmo/api.py +++ b/homeassistant/components/netatmo/api.py @@ -1,4 +1,5 @@ """API for Netatmo bound to HASS OAuth.""" + from collections.abc import Iterable from typing import cast diff --git a/homeassistant/components/netatmo/camera.py b/homeassistant/components/netatmo/camera.py index dc566afd2336..bd12e7573597 100644 --- a/homeassistant/components/netatmo/camera.py +++ b/homeassistant/components/netatmo/camera.py @@ -1,4 +1,5 @@ """Support for the Netatmo cameras.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/climate.py b/homeassistant/components/netatmo/climate.py index db12efb2f01f..df9c7f6fee27 100644 --- a/homeassistant/components/netatmo/climate.py +++ b/homeassistant/components/netatmo/climate.py @@ -1,4 +1,5 @@ """Support for Netatmo Smart thermostats.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/config_flow.py b/homeassistant/components/netatmo/config_flow.py index b2e24420d118..54ec019f8152 100644 --- a/homeassistant/components/netatmo/config_flow.py +++ b/homeassistant/components/netatmo/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Netatmo.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/netatmo/const.py b/homeassistant/components/netatmo/const.py index 416c5668eaeb..34a5c42038eb 100644 --- a/homeassistant/components/netatmo/const.py +++ b/homeassistant/components/netatmo/const.py @@ -1,4 +1,5 @@ """Constants used by the Netatmo component.""" + from homeassistant.const import Platform API = "api" diff --git a/homeassistant/components/netatmo/cover.py b/homeassistant/components/netatmo/cover.py index b9537fee1793..f2b5c801eec1 100644 --- a/homeassistant/components/netatmo/cover.py +++ b/homeassistant/components/netatmo/cover.py @@ -1,4 +1,5 @@ """Support for Netatmo/Bubendorff covers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/data_handler.py b/homeassistant/components/netatmo/data_handler.py index 42d4ced67928..a4c4dbfa21d5 100644 --- a/homeassistant/components/netatmo/data_handler.py +++ b/homeassistant/components/netatmo/data_handler.py @@ -1,4 +1,5 @@ """The Netatmo data handler.""" + from __future__ import annotations from collections import deque diff --git a/homeassistant/components/netatmo/device_trigger.py b/homeassistant/components/netatmo/device_trigger.py index f4719badcfa0..efc2978a43b0 100644 --- a/homeassistant/components/netatmo/device_trigger.py +++ b/homeassistant/components/netatmo/device_trigger.py @@ -1,4 +1,5 @@ """Provides device automations for Netatmo.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/netatmo/diagnostics.py b/homeassistant/components/netatmo/diagnostics.py index 3a30dcd85889..4901ef6bd55e 100644 --- a/homeassistant/components/netatmo/diagnostics.py +++ b/homeassistant/components/netatmo/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Netatmo.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/netatmo/entity.py b/homeassistant/components/netatmo/entity.py index e6829604d48f..579d2177824b 100644 --- a/homeassistant/components/netatmo/entity.py +++ b/homeassistant/components/netatmo/entity.py @@ -1,4 +1,5 @@ """Base class for Netatmo entities.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/netatmo/fan.py b/homeassistant/components/netatmo/fan.py index 8f22861a249b..1b2798dd1184 100644 --- a/homeassistant/components/netatmo/fan.py +++ b/homeassistant/components/netatmo/fan.py @@ -1,4 +1,5 @@ """Support for Netatmo/Bubendorff fans.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/helper.py b/homeassistant/components/netatmo/helper.py index ea30e059d3aa..026f3f916f5b 100644 --- a/homeassistant/components/netatmo/helper.py +++ b/homeassistant/components/netatmo/helper.py @@ -1,4 +1,5 @@ """Helper for Netatmo integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/netatmo/light.py b/homeassistant/components/netatmo/light.py index c38aec41564e..9ccab51f7920 100644 --- a/homeassistant/components/netatmo/light.py +++ b/homeassistant/components/netatmo/light.py @@ -1,4 +1,5 @@ """Support for the Netatmo camera lights.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/media_source.py b/homeassistant/components/netatmo/media_source.py index 58bf2f93c964..7ad4acf5316f 100644 --- a/homeassistant/components/netatmo/media_source.py +++ b/homeassistant/components/netatmo/media_source.py @@ -1,4 +1,5 @@ """Netatmo Media Source Implementation.""" + from __future__ import annotations import datetime as dt diff --git a/homeassistant/components/netatmo/select.py b/homeassistant/components/netatmo/select.py index 2dd88782ac3a..6680242f5790 100644 --- a/homeassistant/components/netatmo/select.py +++ b/homeassistant/components/netatmo/select.py @@ -1,4 +1,5 @@ """Support for the Netatmo climate schedule selector.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netatmo/sensor.py b/homeassistant/components/netatmo/sensor.py index 430de8e318c5..f71ffd76cc82 100644 --- a/homeassistant/components/netatmo/sensor.py +++ b/homeassistant/components/netatmo/sensor.py @@ -1,4 +1,5 @@ """Support for the Netatmo sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/netatmo/switch.py b/homeassistant/components/netatmo/switch.py index 730f41afeeb0..6677adec4b04 100644 --- a/homeassistant/components/netatmo/switch.py +++ b/homeassistant/components/netatmo/switch.py @@ -1,4 +1,5 @@ """Support for Netatmo/BTicino/Legrande switches.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netdata/sensor.py b/homeassistant/components/netdata/sensor.py index 0e33cd9c9527..abbb3bbb6c91 100644 --- a/homeassistant/components/netdata/sensor.py +++ b/homeassistant/components/netdata/sensor.py @@ -1,4 +1,5 @@ """Support gathering system information of hosts which are running netdata.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netgear/__init__.py b/homeassistant/components/netgear/__init__.py index b21286ff05be..445453ad2aae 100644 --- a/homeassistant/components/netgear/__init__.py +++ b/homeassistant/components/netgear/__init__.py @@ -1,4 +1,5 @@ """Support for Netgear routers.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/netgear/button.py b/homeassistant/components/netgear/button.py index 6ec988edbe1f..307bfab92d43 100644 --- a/homeassistant/components/netgear/button.py +++ b/homeassistant/components/netgear/button.py @@ -1,4 +1,5 @@ """Support for Netgear Button.""" + from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any diff --git a/homeassistant/components/netgear/config_flow.py b/homeassistant/components/netgear/config_flow.py index 85982196cf20..a872e9fb4ac1 100644 --- a/homeassistant/components/netgear/config_flow.py +++ b/homeassistant/components/netgear/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Netgear integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netgear/const.py b/homeassistant/components/netgear/const.py index cf6cc827519a..40394677362c 100644 --- a/homeassistant/components/netgear/const.py +++ b/homeassistant/components/netgear/const.py @@ -1,4 +1,5 @@ """Netgear component constants.""" + from datetime import timedelta from homeassistant.const import Platform diff --git a/homeassistant/components/netgear/device_tracker.py b/homeassistant/components/netgear/device_tracker.py index 38ad024a2c40..ee3d010e4431 100644 --- a/homeassistant/components/netgear/device_tracker.py +++ b/homeassistant/components/netgear/device_tracker.py @@ -1,4 +1,5 @@ """Support for Netgear routers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netgear/entity.py b/homeassistant/components/netgear/entity.py index 45418681db0c..2610b4c7132d 100644 --- a/homeassistant/components/netgear/entity.py +++ b/homeassistant/components/netgear/entity.py @@ -1,4 +1,5 @@ """Represent the Netgear router and its devices.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/netgear/errors.py b/homeassistant/components/netgear/errors.py index 2ac1ed18224a..36e5fcb1e633 100644 --- a/homeassistant/components/netgear/errors.py +++ b/homeassistant/components/netgear/errors.py @@ -1,4 +1,5 @@ """Errors for the Netgear component.""" + from homeassistant.exceptions import HomeAssistantError diff --git a/homeassistant/components/netgear/router.py b/homeassistant/components/netgear/router.py index 3c3be7fe9fbb..1e4bf2480e9e 100644 --- a/homeassistant/components/netgear/router.py +++ b/homeassistant/components/netgear/router.py @@ -1,4 +1,5 @@ """Represent the Netgear router and its devices.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/netgear/sensor.py b/homeassistant/components/netgear/sensor.py index 00623938b46f..d569a50d7e10 100644 --- a/homeassistant/components/netgear/sensor.py +++ b/homeassistant/components/netgear/sensor.py @@ -1,4 +1,5 @@ """Support for Netgear routers.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/netgear/switch.py b/homeassistant/components/netgear/switch.py index 9e5aab2c866a..34a4258b0856 100644 --- a/homeassistant/components/netgear/switch.py +++ b/homeassistant/components/netgear/switch.py @@ -1,4 +1,5 @@ """Support for Netgear switches.""" + from collections.abc import Callable from dataclasses import dataclass from datetime import timedelta diff --git a/homeassistant/components/netgear/update.py b/homeassistant/components/netgear/update.py index 78e11e7c1743..1fbfee3d8927 100644 --- a/homeassistant/components/netgear/update.py +++ b/homeassistant/components/netgear/update.py @@ -1,4 +1,5 @@ """Update entities for Netgear devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/netgear_lte/__init__.py b/homeassistant/components/netgear_lte/__init__.py index 491ee0efe598..8c54cb96b3d1 100644 --- a/homeassistant/components/netgear_lte/__init__.py +++ b/homeassistant/components/netgear_lte/__init__.py @@ -1,4 +1,5 @@ """Support for Netgear LTE modems.""" + from datetime import timedelta from aiohttp.cookiejar import CookieJar diff --git a/homeassistant/components/netgear_lte/binary_sensor.py b/homeassistant/components/netgear_lte/binary_sensor.py index 2830c551b807..43a9c1bd2605 100644 --- a/homeassistant/components/netgear_lte/binary_sensor.py +++ b/homeassistant/components/netgear_lte/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Netgear LTE binary sensors.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/netgear_lte/config_flow.py b/homeassistant/components/netgear_lte/config_flow.py index f0c731599f54..fe411f796998 100644 --- a/homeassistant/components/netgear_lte/config_flow.py +++ b/homeassistant/components/netgear_lte/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Netgear LTE integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/netgear_lte/notify.py b/homeassistant/components/netgear_lte/notify.py index ddc5e93677cb..97ba402dc357 100644 --- a/homeassistant/components/netgear_lte/notify.py +++ b/homeassistant/components/netgear_lte/notify.py @@ -1,4 +1,5 @@ """Support for Netgear LTE notifications.""" + from __future__ import annotations import attr diff --git a/homeassistant/components/netgear_lte/sensor.py b/homeassistant/components/netgear_lte/sensor.py index c1e7aaad1718..62b4796f0685 100644 --- a/homeassistant/components/netgear_lte/sensor.py +++ b/homeassistant/components/netgear_lte/sensor.py @@ -1,4 +1,5 @@ """Support for Netgear LTE sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/netgear_lte/services.py b/homeassistant/components/netgear_lte/services.py index 2ea98896791b..020008201192 100644 --- a/homeassistant/components/netgear_lte/services.py +++ b/homeassistant/components/netgear_lte/services.py @@ -1,4 +1,5 @@ """Services for the Netgear LTE integration.""" + from typing import TYPE_CHECKING import voluptuous as vol diff --git a/homeassistant/components/netio/switch.py b/homeassistant/components/netio/switch.py index 546aa07e22d9..0f0c85c17207 100644 --- a/homeassistant/components/netio/switch.py +++ b/homeassistant/components/netio/switch.py @@ -1,4 +1,5 @@ """The Netio switch component.""" + from __future__ import annotations from collections import namedtuple diff --git a/homeassistant/components/network/__init__.py b/homeassistant/components/network/__init__.py index 32bb9a574cd0..0ec6f71814fc 100644 --- a/homeassistant/components/network/__init__.py +++ b/homeassistant/components/network/__init__.py @@ -1,4 +1,5 @@ """The Network Configuration integration.""" + from __future__ import annotations from ipaddress import IPv4Address, IPv6Address, ip_interface diff --git a/homeassistant/components/network/const.py b/homeassistant/components/network/const.py index 3a166189b85c..6c5b6f80eda2 100644 --- a/homeassistant/components/network/const.py +++ b/homeassistant/components/network/const.py @@ -1,4 +1,5 @@ """Constants for the network integration.""" + from __future__ import annotations from typing import Final diff --git a/homeassistant/components/network/models.py b/homeassistant/components/network/models.py index 4428578f8f90..93d34e923028 100644 --- a/homeassistant/components/network/models.py +++ b/homeassistant/components/network/models.py @@ -1,4 +1,5 @@ """Models helper class for the network integration.""" + from __future__ import annotations from typing import TypedDict diff --git a/homeassistant/components/network/network.py b/homeassistant/components/network/network.py index 4613cb91cc95..4158307bb1ad 100644 --- a/homeassistant/components/network/network.py +++ b/homeassistant/components/network/network.py @@ -1,4 +1,5 @@ """Network helper class for the network integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/network/util.py b/homeassistant/components/network/util.py index 2fb0690684c3..55c3c2f5eadc 100644 --- a/homeassistant/components/network/util.py +++ b/homeassistant/components/network/util.py @@ -1,4 +1,5 @@ """Network helper class for the network integration.""" + from __future__ import annotations from ipaddress import IPv4Address, IPv6Address, ip_address diff --git a/homeassistant/components/network/websocket.py b/homeassistant/components/network/websocket.py index 4c55585e112d..78626b893e4e 100644 --- a/homeassistant/components/network/websocket.py +++ b/homeassistant/components/network/websocket.py @@ -1,4 +1,5 @@ """The Network Configuration integration websocket commands.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/neurio_energy/sensor.py b/homeassistant/components/neurio_energy/sensor.py index a9023ffca2b3..4a7ce43a0d7e 100644 --- a/homeassistant/components/neurio_energy/sensor.py +++ b/homeassistant/components/neurio_energy/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring a Neurio energy sensor.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nexia/binary_sensor.py b/homeassistant/components/nexia/binary_sensor.py index 02c3fef1162b..51306584b7a2 100644 --- a/homeassistant/components/nexia/binary_sensor.py +++ b/homeassistant/components/nexia/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Nexia / Trane XL Thermostats.""" + from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/nexia/climate.py b/homeassistant/components/nexia/climate.py index 63caeb445b73..78c0bc88ef72 100644 --- a/homeassistant/components/nexia/climate.py +++ b/homeassistant/components/nexia/climate.py @@ -1,4 +1,5 @@ """Support for Nexia / Trane XL thermostats.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nexia/const.py b/homeassistant/components/nexia/const.py index fe2d6527ea0b..b46037eab7bf 100644 --- a/homeassistant/components/nexia/const.py +++ b/homeassistant/components/nexia/const.py @@ -1,4 +1,5 @@ """Nexia constants.""" + from homeassistant.const import Platform PLATFORMS = [ diff --git a/homeassistant/components/nexia/coordinator.py b/homeassistant/components/nexia/coordinator.py index cd515e44b142..894c491c45bc 100644 --- a/homeassistant/components/nexia/coordinator.py +++ b/homeassistant/components/nexia/coordinator.py @@ -1,4 +1,5 @@ """Component to embed nexia devices.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nexia/diagnostics.py b/homeassistant/components/nexia/diagnostics.py index 9b3f518217b5..e03cf23b83bb 100644 --- a/homeassistant/components/nexia/diagnostics.py +++ b/homeassistant/components/nexia/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for nexia.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nexia/number.py b/homeassistant/components/nexia/number.py index 019d425d1ad4..a4117584720d 100644 --- a/homeassistant/components/nexia/number.py +++ b/homeassistant/components/nexia/number.py @@ -1,4 +1,5 @@ """Support for Nexia / Trane XL Thermostats.""" + from __future__ import annotations from nexia.home import NexiaHome diff --git a/homeassistant/components/nexia/scene.py b/homeassistant/components/nexia/scene.py index ba9e8b12dde1..337068e44e98 100644 --- a/homeassistant/components/nexia/scene.py +++ b/homeassistant/components/nexia/scene.py @@ -1,4 +1,5 @@ """Support for Nexia Automations.""" + from typing import Any from nexia.automation import NexiaAutomation diff --git a/homeassistant/components/nexia/sensor.py b/homeassistant/components/nexia/sensor.py index 79e07bc71b49..a77920630f88 100644 --- a/homeassistant/components/nexia/sensor.py +++ b/homeassistant/components/nexia/sensor.py @@ -1,4 +1,5 @@ """Support for Nexia / Trane XL Thermostats.""" + from __future__ import annotations from nexia.const import UNIT_CELSIUS diff --git a/homeassistant/components/nexia/switch.py b/homeassistant/components/nexia/switch.py index 87c3f6dc9389..5e19136d55e0 100644 --- a/homeassistant/components/nexia/switch.py +++ b/homeassistant/components/nexia/switch.py @@ -1,4 +1,5 @@ """Support for Nexia switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nextbus/config_flow.py b/homeassistant/components/nextbus/config_flow.py index 67bc8581e868..1d2b7f0b00f2 100644 --- a/homeassistant/components/nextbus/config_flow.py +++ b/homeassistant/components/nextbus/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Nextbus integration.""" + from collections import Counter import logging diff --git a/homeassistant/components/nextbus/coordinator.py b/homeassistant/components/nextbus/coordinator.py index f130e40ef052..abf280bece9e 100644 --- a/homeassistant/components/nextbus/coordinator.py +++ b/homeassistant/components/nextbus/coordinator.py @@ -1,4 +1,5 @@ """NextBus data update coordinator.""" + from datetime import timedelta import logging from typing import Any, cast diff --git a/homeassistant/components/nextbus/sensor.py b/homeassistant/components/nextbus/sensor.py index eaedc50cf3b5..68d10726609c 100644 --- a/homeassistant/components/nextbus/sensor.py +++ b/homeassistant/components/nextbus/sensor.py @@ -1,4 +1,5 @@ """NextBus sensor.""" + from __future__ import annotations from itertools import chain diff --git a/homeassistant/components/nextbus/util.py b/homeassistant/components/nextbus/util.py index 73b3b400ff41..e9a1e1fd254c 100644 --- a/homeassistant/components/nextbus/util.py +++ b/homeassistant/components/nextbus/util.py @@ -1,4 +1,5 @@ """Utils for NextBus integration module.""" + from typing import Any diff --git a/homeassistant/components/nextcloud/binary_sensor.py b/homeassistant/components/nextcloud/binary_sensor.py index e4068695086a..6c6f61419755 100644 --- a/homeassistant/components/nextcloud/binary_sensor.py +++ b/homeassistant/components/nextcloud/binary_sensor.py @@ -1,4 +1,5 @@ """Summary binary data from Nextcoud.""" + from __future__ import annotations from typing import Final diff --git a/homeassistant/components/nextcloud/config_flow.py b/homeassistant/components/nextcloud/config_flow.py index f843a7d609e3..c469936ac487 100644 --- a/homeassistant/components/nextcloud/config_flow.py +++ b/homeassistant/components/nextcloud/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Nextcloud integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/nextcloud/const.py b/homeassistant/components/nextcloud/const.py index 248128dd538c..2cc6513cd4b5 100644 --- a/homeassistant/components/nextcloud/const.py +++ b/homeassistant/components/nextcloud/const.py @@ -1,4 +1,5 @@ """Constants for Nextcloud integration.""" + from datetime import timedelta DOMAIN = "nextcloud" diff --git a/homeassistant/components/nextcloud/entity.py b/homeassistant/components/nextcloud/entity.py index b9dab9179c19..19431756e43b 100644 --- a/homeassistant/components/nextcloud/entity.py +++ b/homeassistant/components/nextcloud/entity.py @@ -1,4 +1,5 @@ """Base entity for the Nextcloud integration.""" + from urllib.parse import urlparse from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/nextcloud/sensor.py b/homeassistant/components/nextcloud/sensor.py index 7d3f14e3b7fc..d8a2a362ce08 100644 --- a/homeassistant/components/nextcloud/sensor.py +++ b/homeassistant/components/nextcloud/sensor.py @@ -1,4 +1,5 @@ """Summary data from Nextcoud.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nextcloud/update.py b/homeassistant/components/nextcloud/update.py index 5d52ac2a48fa..52583d690bf1 100644 --- a/homeassistant/components/nextcloud/update.py +++ b/homeassistant/components/nextcloud/update.py @@ -1,4 +1,5 @@ """Update data from Nextcoud.""" + from __future__ import annotations from homeassistant.components.update import UpdateEntity, UpdateEntityDescription diff --git a/homeassistant/components/nextdns/__init__.py b/homeassistant/components/nextdns/__init__.py index af972fb75094..389173a26945 100644 --- a/homeassistant/components/nextdns/__init__.py +++ b/homeassistant/components/nextdns/__init__.py @@ -1,4 +1,5 @@ """The NextDNS component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nextdns/binary_sensor.py b/homeassistant/components/nextdns/binary_sensor.py index dad29893161d..bf230b937c20 100644 --- a/homeassistant/components/nextdns/binary_sensor.py +++ b/homeassistant/components/nextdns/binary_sensor.py @@ -1,4 +1,5 @@ """Support for the NextDNS service.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nextdns/button.py b/homeassistant/components/nextdns/button.py index 2eafe2b477e5..d74152248a56 100644 --- a/homeassistant/components/nextdns/button.py +++ b/homeassistant/components/nextdns/button.py @@ -1,4 +1,5 @@ """Support for the NextDNS service.""" + from __future__ import annotations from homeassistant.components.button import ButtonEntity, ButtonEntityDescription diff --git a/homeassistant/components/nextdns/config_flow.py b/homeassistant/components/nextdns/config_flow.py index 2a676f7a3a1a..28fd50af2dc1 100644 --- a/homeassistant/components/nextdns/config_flow.py +++ b/homeassistant/components/nextdns/config_flow.py @@ -1,4 +1,5 @@ """Adds config flow for NextDNS.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nextdns/const.py b/homeassistant/components/nextdns/const.py index 031dd1c5814e..b8210c1939ca 100644 --- a/homeassistant/components/nextdns/const.py +++ b/homeassistant/components/nextdns/const.py @@ -1,4 +1,5 @@ """Constants for NextDNS integration.""" + from datetime import timedelta ATTR_CONNECTION = "connection" diff --git a/homeassistant/components/nextdns/diagnostics.py b/homeassistant/components/nextdns/diagnostics.py index 2c0d313060f7..c0a9071bb9d3 100644 --- a/homeassistant/components/nextdns/diagnostics.py +++ b/homeassistant/components/nextdns/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for NextDNS.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/nextdns/sensor.py b/homeassistant/components/nextdns/sensor.py index b6864fea50ab..94441f8f658d 100644 --- a/homeassistant/components/nextdns/sensor.py +++ b/homeassistant/components/nextdns/sensor.py @@ -1,4 +1,5 @@ """Support for the NextDNS service.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nextdns/switch.py b/homeassistant/components/nextdns/switch.py index a01b8a8c3c30..f9a5dbde4b7a 100644 --- a/homeassistant/components/nextdns/switch.py +++ b/homeassistant/components/nextdns/switch.py @@ -1,4 +1,5 @@ """Support for the NextDNS service.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nextdns/system_health.py b/homeassistant/components/nextdns/system_health.py index a56a89914b88..09c13f0580e7 100644 --- a/homeassistant/components/nextdns/system_health.py +++ b/homeassistant/components/nextdns/system_health.py @@ -1,4 +1,5 @@ """Provide info to system health.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nfandroidtv/__init__.py b/homeassistant/components/nfandroidtv/__init__.py index 38622fc0060c..42d42e26d1f4 100644 --- a/homeassistant/components/nfandroidtv/__init__.py +++ b/homeassistant/components/nfandroidtv/__init__.py @@ -1,4 +1,5 @@ """The NFAndroidTV integration.""" + from notifications_android_tv.notifications import ConnectError, Notifications from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/nfandroidtv/config_flow.py b/homeassistant/components/nfandroidtv/config_flow.py index 3d0b07a2ea30..83621c637893 100644 --- a/homeassistant/components/nfandroidtv/config_flow.py +++ b/homeassistant/components/nfandroidtv/config_flow.py @@ -1,4 +1,5 @@ """Config flow for NFAndroidTV integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nfandroidtv/notify.py b/homeassistant/components/nfandroidtv/notify.py index c70272d3835b..dd42a0ab10bf 100644 --- a/homeassistant/components/nfandroidtv/notify.py +++ b/homeassistant/components/nfandroidtv/notify.py @@ -1,4 +1,5 @@ """Notifications for Android TV notification service.""" + from __future__ import annotations from io import BufferedReader diff --git a/homeassistant/components/nibe_heatpump/__init__.py b/homeassistant/components/nibe_heatpump/__init__.py index 058f3ef87112..fbb49351e0ec 100644 --- a/homeassistant/components/nibe_heatpump/__init__.py +++ b/homeassistant/components/nibe_heatpump/__init__.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump integration.""" + from __future__ import annotations from nibe.connection import Connection diff --git a/homeassistant/components/nibe_heatpump/binary_sensor.py b/homeassistant/components/nibe_heatpump/binary_sensor.py index d1fdfa710a1c..035a4a23a086 100644 --- a/homeassistant/components/nibe_heatpump/binary_sensor.py +++ b/homeassistant/components/nibe_heatpump/binary_sensor.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump binary sensors.""" + from __future__ import annotations from nibe.coil import Coil, CoilData diff --git a/homeassistant/components/nibe_heatpump/button.py b/homeassistant/components/nibe_heatpump/button.py index f45b2af2909f..0c3122805e1f 100644 --- a/homeassistant/components/nibe_heatpump/button.py +++ b/homeassistant/components/nibe_heatpump/button.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump sensors.""" + from __future__ import annotations from nibe.coil_groups import UNIT_COILGROUPS, UnitCoilGroup diff --git a/homeassistant/components/nibe_heatpump/climate.py b/homeassistant/components/nibe_heatpump/climate.py index 3a89f4f6022e..746ed26687dd 100644 --- a/homeassistant/components/nibe_heatpump/climate.py +++ b/homeassistant/components/nibe_heatpump/climate.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump climate.""" + from __future__ import annotations from datetime import date diff --git a/homeassistant/components/nibe_heatpump/config_flow.py b/homeassistant/components/nibe_heatpump/config_flow.py index 0ba80ad67540..913ebd6b00c5 100644 --- a/homeassistant/components/nibe_heatpump/config_flow.py +++ b/homeassistant/components/nibe_heatpump/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nibe Heat Pump integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nibe_heatpump/coordinator.py b/homeassistant/components/nibe_heatpump/coordinator.py index ce75247083b8..1711c3d8f2a1 100644 --- a/homeassistant/components/nibe_heatpump/coordinator.py +++ b/homeassistant/components/nibe_heatpump/coordinator.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nibe_heatpump/number.py b/homeassistant/components/nibe_heatpump/number.py index 83ccc124e518..509f3364fee0 100644 --- a/homeassistant/components/nibe_heatpump/number.py +++ b/homeassistant/components/nibe_heatpump/number.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump numbers.""" + from __future__ import annotations from nibe.coil import Coil, CoilData diff --git a/homeassistant/components/nibe_heatpump/select.py b/homeassistant/components/nibe_heatpump/select.py index c4794cc18b73..07c958885b8b 100644 --- a/homeassistant/components/nibe_heatpump/select.py +++ b/homeassistant/components/nibe_heatpump/select.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump select.""" + from __future__ import annotations from nibe.coil import Coil, CoilData diff --git a/homeassistant/components/nibe_heatpump/sensor.py b/homeassistant/components/nibe_heatpump/sensor.py index 8c9439e65314..c6bac0323b98 100644 --- a/homeassistant/components/nibe_heatpump/sensor.py +++ b/homeassistant/components/nibe_heatpump/sensor.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump sensors.""" + from __future__ import annotations from nibe.coil import Coil, CoilData diff --git a/homeassistant/components/nibe_heatpump/switch.py b/homeassistant/components/nibe_heatpump/switch.py index f55882d529c2..594a8078b762 100644 --- a/homeassistant/components/nibe_heatpump/switch.py +++ b/homeassistant/components/nibe_heatpump/switch.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump switch.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nibe_heatpump/water_heater.py b/homeassistant/components/nibe_heatpump/water_heater.py index db688fdb69c3..c60f5b6e3b24 100644 --- a/homeassistant/components/nibe_heatpump/water_heater.py +++ b/homeassistant/components/nibe_heatpump/water_heater.py @@ -1,4 +1,5 @@ """The Nibe Heat Pump sensors.""" + from __future__ import annotations from datetime import date diff --git a/homeassistant/components/nightscout/sensor.py b/homeassistant/components/nightscout/sensor.py index bdc46e75cb8c..92291bdc4f99 100644 --- a/homeassistant/components/nightscout/sensor.py +++ b/homeassistant/components/nightscout/sensor.py @@ -1,4 +1,5 @@ """Support for Nightscout sensors.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nightscout/utils.py b/homeassistant/components/nightscout/utils.py index ac9ce1a33844..928abd1aa4f0 100644 --- a/homeassistant/components/nightscout/utils.py +++ b/homeassistant/components/nightscout/utils.py @@ -1,4 +1,5 @@ """Nightscout util functions.""" + from __future__ import annotations import hashlib diff --git a/homeassistant/components/niko_home_control/light.py b/homeassistant/components/niko_home_control/light.py index b541a145a66c..6554bf5eeecc 100644 --- a/homeassistant/components/niko_home_control/light.py +++ b/homeassistant/components/niko_home_control/light.py @@ -1,4 +1,5 @@ """Support for Niko Home Control.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nilu/air_quality.py b/homeassistant/components/nilu/air_quality.py index 3745c6bae6f7..7b1068771d23 100644 --- a/homeassistant/components/nilu/air_quality.py +++ b/homeassistant/components/nilu/air_quality.py @@ -1,4 +1,5 @@ """Sensor for checking the air quality around Norway.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nina/__init__.py b/homeassistant/components/nina/__init__.py index 435ea288aa7b..d5b1c5ccb354 100644 --- a/homeassistant/components/nina/__init__.py +++ b/homeassistant/components/nina/__init__.py @@ -1,4 +1,5 @@ """The Nina integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/nina/binary_sensor.py b/homeassistant/components/nina/binary_sensor.py index 92c7d16dc846..bcc1eb2a4b62 100644 --- a/homeassistant/components/nina/binary_sensor.py +++ b/homeassistant/components/nina/binary_sensor.py @@ -1,4 +1,5 @@ """NINA sensor platform.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nina/config_flow.py b/homeassistant/components/nina/config_flow.py index 0954ba268748..8b5bcb72252b 100644 --- a/homeassistant/components/nina/config_flow.py +++ b/homeassistant/components/nina/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nina integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nina/const.py b/homeassistant/components/nina/const.py index 198e21c2689a..1e7550560796 100644 --- a/homeassistant/components/nina/const.py +++ b/homeassistant/components/nina/const.py @@ -1,4 +1,5 @@ """Constants for the Nina integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nina/coordinator.py b/homeassistant/components/nina/coordinator.py index b2c97503442f..c731c7a62d7f 100644 --- a/homeassistant/components/nina/coordinator.py +++ b/homeassistant/components/nina/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the nina integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nissan_leaf/__init__.py b/homeassistant/components/nissan_leaf/__init__.py index a0cb3c4f8cc8..85ff6876a053 100644 --- a/homeassistant/components/nissan_leaf/__init__.py +++ b/homeassistant/components/nissan_leaf/__init__.py @@ -1,4 +1,5 @@ """Support for the Nissan Leaf Carwings/Nissan Connect API.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nissan_leaf/binary_sensor.py b/homeassistant/components/nissan_leaf/binary_sensor.py index 40880714c2a1..3b15fabe382f 100644 --- a/homeassistant/components/nissan_leaf/binary_sensor.py +++ b/homeassistant/components/nissan_leaf/binary_sensor.py @@ -1,4 +1,5 @@ """Plugged In Status Support for the Nissan Leaf.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nissan_leaf/button.py b/homeassistant/components/nissan_leaf/button.py index 1f948fe98479..aa2bbbbca9ba 100644 --- a/homeassistant/components/nissan_leaf/button.py +++ b/homeassistant/components/nissan_leaf/button.py @@ -1,4 +1,5 @@ """Button to start charging the Nissan Leaf.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nissan_leaf/const.py b/homeassistant/components/nissan_leaf/const.py index f7ebed99ab85..299576b86a70 100644 --- a/homeassistant/components/nissan_leaf/const.py +++ b/homeassistant/components/nissan_leaf/const.py @@ -1,4 +1,5 @@ """Constants for the Nissan Leaf integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nissan_leaf/sensor.py b/homeassistant/components/nissan_leaf/sensor.py index cd3524eaf879..bde1719e9b1f 100644 --- a/homeassistant/components/nissan_leaf/sensor.py +++ b/homeassistant/components/nissan_leaf/sensor.py @@ -1,4 +1,5 @@ """Battery Charge and Range Support for the Nissan Leaf.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nissan_leaf/switch.py b/homeassistant/components/nissan_leaf/switch.py index 97f02a9e0be5..39f875ff95f9 100644 --- a/homeassistant/components/nissan_leaf/switch.py +++ b/homeassistant/components/nissan_leaf/switch.py @@ -1,4 +1,5 @@ """Charge and Climate Control Support for the Nissan Leaf.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nmap_tracker/__init__.py b/homeassistant/components/nmap_tracker/__init__.py index bab71df94dc7..ffc4b9753081 100644 --- a/homeassistant/components/nmap_tracker/__init__.py +++ b/homeassistant/components/nmap_tracker/__init__.py @@ -1,4 +1,5 @@ """The Nmap Tracker integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nmap_tracker/config_flow.py b/homeassistant/components/nmap_tracker/config_flow.py index 40ad698b9483..6128272fbbbf 100644 --- a/homeassistant/components/nmap_tracker/config_flow.py +++ b/homeassistant/components/nmap_tracker/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nmap Tracker integration.""" + from __future__ import annotations from ipaddress import ip_address, ip_network, summarize_address_range diff --git a/homeassistant/components/nmap_tracker/const.py b/homeassistant/components/nmap_tracker/const.py index c7c1342036ee..617f84e8acaf 100644 --- a/homeassistant/components/nmap_tracker/const.py +++ b/homeassistant/components/nmap_tracker/const.py @@ -1,4 +1,5 @@ """The Nmap Tracker integration.""" + from typing import Final from homeassistant.const import Platform diff --git a/homeassistant/components/nmap_tracker/device_tracker.py b/homeassistant/components/nmap_tracker/device_tracker.py index 9b5597b6ba46..3f07926eaefd 100644 --- a/homeassistant/components/nmap_tracker/device_tracker.py +++ b/homeassistant/components/nmap_tracker/device_tracker.py @@ -1,4 +1,5 @@ """Support for scanning a network with nmap.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nmbs/sensor.py b/homeassistant/components/nmbs/sensor.py index 7fe40af3b699..a684b47e2452 100644 --- a/homeassistant/components/nmbs/sensor.py +++ b/homeassistant/components/nmbs/sensor.py @@ -1,4 +1,5 @@ """Get ride details and liveboard details for NMBS (Belgian railway).""" + from __future__ import annotations import logging diff --git a/homeassistant/components/noaa_tides/sensor.py b/homeassistant/components/noaa_tides/sensor.py index a83f18fd6ca2..235263345e67 100644 --- a/homeassistant/components/noaa_tides/sensor.py +++ b/homeassistant/components/noaa_tides/sensor.py @@ -1,4 +1,5 @@ """Support for the NOAA Tides and Currents API.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/nobo_hub/__init__.py b/homeassistant/components/nobo_hub/__init__.py index 6c77f98d1b12..15a4b48c3154 100644 --- a/homeassistant/components/nobo_hub/__init__.py +++ b/homeassistant/components/nobo_hub/__init__.py @@ -1,4 +1,5 @@ """The Nobø Ecohub integration.""" + from __future__ import annotations from pynobo import nobo diff --git a/homeassistant/components/nobo_hub/climate.py b/homeassistant/components/nobo_hub/climate.py index ca8ee08885dd..f1e2f4a78f08 100644 --- a/homeassistant/components/nobo_hub/climate.py +++ b/homeassistant/components/nobo_hub/climate.py @@ -1,4 +1,5 @@ """Python Control of Nobø Hub - Nobø Energy Control.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nobo_hub/config_flow.py b/homeassistant/components/nobo_hub/config_flow.py index 20b61010ba9f..6fc5bba2c1be 100644 --- a/homeassistant/components/nobo_hub/config_flow.py +++ b/homeassistant/components/nobo_hub/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Nobø Ecohub integration.""" + from __future__ import annotations import socket diff --git a/homeassistant/components/nobo_hub/select.py b/homeassistant/components/nobo_hub/select.py index 2708dd75ffec..43f177dd7a02 100644 --- a/homeassistant/components/nobo_hub/select.py +++ b/homeassistant/components/nobo_hub/select.py @@ -1,4 +1,5 @@ """Python Control of Nobø Hub - Nobø Energy Control.""" + from __future__ import annotations from pynobo import nobo diff --git a/homeassistant/components/nobo_hub/sensor.py b/homeassistant/components/nobo_hub/sensor.py index 3446f1ea43be..1632b6ba5e7d 100644 --- a/homeassistant/components/nobo_hub/sensor.py +++ b/homeassistant/components/nobo_hub/sensor.py @@ -1,4 +1,5 @@ """Python Control of Nobø Hub - Nobø Energy Control.""" + from __future__ import annotations from pynobo import nobo diff --git a/homeassistant/components/norway_air/air_quality.py b/homeassistant/components/norway_air/air_quality.py index 1a3d3661a159..c16df8607512 100644 --- a/homeassistant/components/norway_air/air_quality.py +++ b/homeassistant/components/norway_air/air_quality.py @@ -1,4 +1,5 @@ """Sensor for checking the air quality forecast around Norway.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/notify/__init__.py b/homeassistant/components/notify/__init__.py index e9e61527884a..2aa110649f2d 100644 --- a/homeassistant/components/notify/__init__.py +++ b/homeassistant/components/notify/__init__.py @@ -1,4 +1,5 @@ """Provides functionality to notify people.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/notify/legacy.py b/homeassistant/components/notify/legacy.py index 7c78bfc44d33..664e3a6d10d2 100644 --- a/homeassistant/components/notify/legacy.py +++ b/homeassistant/components/notify/legacy.py @@ -1,4 +1,5 @@ """Handle legacy notification platforms.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/notify_events/notify.py b/homeassistant/components/notify_events/notify.py index 3eb1bbac9c94..bfe0e4a2a57f 100644 --- a/homeassistant/components/notify_events/notify.py +++ b/homeassistant/components/notify_events/notify.py @@ -1,4 +1,5 @@ """Notify.Events platform for notify component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/notion/__init__.py b/homeassistant/components/notion/__init__.py index 3ed2c7bdb930..77236ca6e0cf 100644 --- a/homeassistant/components/notion/__init__.py +++ b/homeassistant/components/notion/__init__.py @@ -1,4 +1,5 @@ """Support for Notion.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/notion/binary_sensor.py b/homeassistant/components/notion/binary_sensor.py index dfa6dc5ec06e..0c56e4fc33e8 100644 --- a/homeassistant/components/notion/binary_sensor.py +++ b/homeassistant/components/notion/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Notion binary sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/notion/config_flow.py b/homeassistant/components/notion/config_flow.py index d9464d50a832..9a65f922fd96 100644 --- a/homeassistant/components/notion/config_flow.py +++ b/homeassistant/components/notion/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Notion integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/notion/diagnostics.py b/homeassistant/components/notion/diagnostics.py index 5c32f235639a..77cf9e2a90fd 100644 --- a/homeassistant/components/notion/diagnostics.py +++ b/homeassistant/components/notion/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Notion.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/notion/model.py b/homeassistant/components/notion/model.py index 059ea551b093..541ca2453297 100644 --- a/homeassistant/components/notion/model.py +++ b/homeassistant/components/notion/model.py @@ -1,4 +1,5 @@ """Define Notion model mixins.""" + from dataclasses import dataclass from aionotion.listener.models import ListenerKind diff --git a/homeassistant/components/notion/sensor.py b/homeassistant/components/notion/sensor.py index d42a7ea194d8..9bb8e3b4bbf8 100644 --- a/homeassistant/components/notion/sensor.py +++ b/homeassistant/components/notion/sensor.py @@ -1,4 +1,5 @@ """Support for Notion sensors.""" + from dataclasses import dataclass from aionotion.listener.models import ListenerKind diff --git a/homeassistant/components/notion/util.py b/homeassistant/components/notion/util.py index 553199b7c7a0..b155249268a2 100644 --- a/homeassistant/components/notion/util.py +++ b/homeassistant/components/notion/util.py @@ -1,4 +1,5 @@ """Define notion utilities.""" + from aionotion import ( async_get_client_with_credentials as cwc, async_get_client_with_refresh_token as cwrt, diff --git a/homeassistant/components/nsw_fuel_station/__init__.py b/homeassistant/components/nsw_fuel_station/__init__.py index 818656779a3f..76dc9d4c6ffa 100644 --- a/homeassistant/components/nsw_fuel_station/__init__.py +++ b/homeassistant/components/nsw_fuel_station/__init__.py @@ -1,4 +1,5 @@ """The nsw_fuel_station component.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/nsw_fuel_station/sensor.py b/homeassistant/components/nsw_fuel_station/sensor.py index 7106b4877860..7f28a9d28f26 100644 --- a/homeassistant/components/nsw_fuel_station/sensor.py +++ b/homeassistant/components/nsw_fuel_station/sensor.py @@ -1,4 +1,5 @@ """Sensor platform to display the current fuel prices at a NSW fuel station.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py b/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py index 28e056e29fbc..24bae7f7b122 100644 --- a/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py +++ b/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py @@ -1,4 +1,5 @@ """Support for NSW Rural Fire Service Feeds.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/nuheat/__init__.py b/homeassistant/components/nuheat/__init__.py index 86574920cd0c..c8accd6ab73a 100644 --- a/homeassistant/components/nuheat/__init__.py +++ b/homeassistant/components/nuheat/__init__.py @@ -1,4 +1,5 @@ """Support for NuHeat thermostats.""" + from datetime import timedelta from http import HTTPStatus import logging diff --git a/homeassistant/components/nuheat/config_flow.py b/homeassistant/components/nuheat/config_flow.py index 96610139a85b..a75b65abccda 100644 --- a/homeassistant/components/nuheat/config_flow.py +++ b/homeassistant/components/nuheat/config_flow.py @@ -1,4 +1,5 @@ """Config flow for NuHeat integration.""" + from http import HTTPStatus import logging diff --git a/homeassistant/components/nuheat/const.py b/homeassistant/components/nuheat/const.py index ea43c33d9b04..96e7cdc2d60f 100644 --- a/homeassistant/components/nuheat/const.py +++ b/homeassistant/components/nuheat/const.py @@ -1,4 +1,5 @@ """Constants for NuHeat thermostats.""" + from homeassistant.const import Platform DOMAIN = "nuheat" diff --git a/homeassistant/components/nuki/__init__.py b/homeassistant/components/nuki/__init__.py index 0ea75590ee39..cbd7af3ecec0 100644 --- a/homeassistant/components/nuki/__init__.py +++ b/homeassistant/components/nuki/__init__.py @@ -1,4 +1,5 @@ """The nuki component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nuki/binary_sensor.py b/homeassistant/components/nuki/binary_sensor.py index ac2ce24f2b44..f2a98599e27f 100644 --- a/homeassistant/components/nuki/binary_sensor.py +++ b/homeassistant/components/nuki/binary_sensor.py @@ -1,4 +1,5 @@ """Doorsensor Support for the Nuki Lock.""" + from __future__ import annotations from pynuki.constants import STATE_DOORSENSOR_OPENED diff --git a/homeassistant/components/nuki/config_flow.py b/homeassistant/components/nuki/config_flow.py index a29ff75580aa..4a3e96f68a51 100644 --- a/homeassistant/components/nuki/config_flow.py +++ b/homeassistant/components/nuki/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Nuki integration.""" + from collections.abc import Mapping import logging from typing import Any diff --git a/homeassistant/components/nuki/helpers.py b/homeassistant/components/nuki/helpers.py index 1ba8e393f549..9ea4621168c3 100644 --- a/homeassistant/components/nuki/helpers.py +++ b/homeassistant/components/nuki/helpers.py @@ -1,4 +1,5 @@ """nuki integration helpers.""" + from homeassistant import exceptions diff --git a/homeassistant/components/nuki/lock.py b/homeassistant/components/nuki/lock.py index 974ffbd4d85c..d63bfaf6757e 100644 --- a/homeassistant/components/nuki/lock.py +++ b/homeassistant/components/nuki/lock.py @@ -1,4 +1,5 @@ """Nuki.io lock platform.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/nuki/sensor.py b/homeassistant/components/nuki/sensor.py index 69d166e4ee58..6647eff5c832 100644 --- a/homeassistant/components/nuki/sensor.py +++ b/homeassistant/components/nuki/sensor.py @@ -1,4 +1,5 @@ """Battery sensor for the Nuki Lock.""" + from __future__ import annotations from pynuki.device import NukiDevice diff --git a/homeassistant/components/numato/binary_sensor.py b/homeassistant/components/numato/binary_sensor.py index 98e71b9fc2d9..ad81164d4fcd 100644 --- a/homeassistant/components/numato/binary_sensor.py +++ b/homeassistant/components/numato/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensor platform integration for Numato USB GPIO expanders.""" + from __future__ import annotations from functools import partial diff --git a/homeassistant/components/numato/sensor.py b/homeassistant/components/numato/sensor.py index 44adb78e6a0f..6efc3f6160f4 100644 --- a/homeassistant/components/numato/sensor.py +++ b/homeassistant/components/numato/sensor.py @@ -1,4 +1,5 @@ """Sensor platform integration for ADC ports of Numato USB GPIO expanders.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/numato/switch.py b/homeassistant/components/numato/switch.py index 92fc7e0e2df1..37d1229e0b2d 100644 --- a/homeassistant/components/numato/switch.py +++ b/homeassistant/components/numato/switch.py @@ -1,4 +1,5 @@ """Switch platform integration for Numato USB GPIO expanders.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/number/__init__.py b/homeassistant/components/number/__init__.py index c95381d09c21..5d21109f3fe5 100644 --- a/homeassistant/components/number/__init__.py +++ b/homeassistant/components/number/__init__.py @@ -1,4 +1,5 @@ """Component to allow numeric input for platforms.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/number/const.py b/homeassistant/components/number/const.py index 071f480f766b..89829adcc50d 100644 --- a/homeassistant/components/number/const.py +++ b/homeassistant/components/number/const.py @@ -1,4 +1,5 @@ """Provides the constants needed for the component.""" + from __future__ import annotations from enum import StrEnum diff --git a/homeassistant/components/number/device_action.py b/homeassistant/components/number/device_action.py index 22a51d85ad99..8882bb22a0d0 100644 --- a/homeassistant/components/number/device_action.py +++ b/homeassistant/components/number/device_action.py @@ -1,4 +1,5 @@ """Provides device actions for Number.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/number/reproduce_state.py b/homeassistant/components/number/reproduce_state.py index caed64a3d9e8..e92573fb40ee 100644 --- a/homeassistant/components/number/reproduce_state.py +++ b/homeassistant/components/number/reproduce_state.py @@ -1,4 +1,5 @@ """Reproduce a Number entity state.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/number/significant_change.py b/homeassistant/components/number/significant_change.py index 11bca6457f1e..ff77f25e5278 100644 --- a/homeassistant/components/number/significant_change.py +++ b/homeassistant/components/number/significant_change.py @@ -1,4 +1,5 @@ """Helper to test significant Number state changes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/number/websocket_api.py b/homeassistant/components/number/websocket_api.py index 1ca61fd158f4..5c8730c9eaa1 100644 --- a/homeassistant/components/number/websocket_api.py +++ b/homeassistant/components/number/websocket_api.py @@ -1,4 +1,5 @@ """The sensor websocket API.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nut/__init__.py b/homeassistant/components/nut/__init__.py index 8b0d8fe4640e..d5a2453f62f3 100644 --- a/homeassistant/components/nut/__init__.py +++ b/homeassistant/components/nut/__init__.py @@ -1,4 +1,5 @@ """The nut component.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/nut/config_flow.py b/homeassistant/components/nut/config_flow.py index 782266a460af..5967aef4dacb 100644 --- a/homeassistant/components/nut/config_flow.py +++ b/homeassistant/components/nut/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Network UPS Tools (NUT) integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/nut/const.py b/homeassistant/components/nut/const.py index 13951a44d90f..9be06de1f731 100644 --- a/homeassistant/components/nut/const.py +++ b/homeassistant/components/nut/const.py @@ -1,4 +1,5 @@ """The nut component.""" + from __future__ import annotations from homeassistant.const import Platform diff --git a/homeassistant/components/nut/device_action.py b/homeassistant/components/nut/device_action.py index 4898d9cc82d4..bf16b3664f17 100644 --- a/homeassistant/components/nut/device_action.py +++ b/homeassistant/components/nut/device_action.py @@ -1,4 +1,5 @@ """Provides device actions for Network UPS Tools (NUT).""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/nut/diagnostics.py b/homeassistant/components/nut/diagnostics.py index 9ee430a655b0..88a05e461c9d 100644 --- a/homeassistant/components/nut/diagnostics.py +++ b/homeassistant/components/nut/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Nut.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/nut/sensor.py b/homeassistant/components/nut/sensor.py index e8290f5fa6d0..cd5ae64901d3 100644 --- a/homeassistant/components/nut/sensor.py +++ b/homeassistant/components/nut/sensor.py @@ -1,4 +1,5 @@ """Provides a sensor to track various status aspects of a UPS.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/nws/__init__.py b/homeassistant/components/nws/__init__.py index da54f3b119e3..34157769b972 100644 --- a/homeassistant/components/nws/__init__.py +++ b/homeassistant/components/nws/__init__.py @@ -1,4 +1,5 @@ """The National Weather Service integration.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/nws/config_flow.py b/homeassistant/components/nws/config_flow.py index a6e14500ed21..37d5bb5bf82b 100644 --- a/homeassistant/components/nws/config_flow.py +++ b/homeassistant/components/nws/config_flow.py @@ -1,4 +1,5 @@ """Config flow for National Weather Service (NWS) integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nws/const.py b/homeassistant/components/nws/const.py index 1e028649d89e..3de874b5c10f 100644 --- a/homeassistant/components/nws/const.py +++ b/homeassistant/components/nws/const.py @@ -1,4 +1,5 @@ """Constants for National Weather Service Integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nws/sensor.py b/homeassistant/components/nws/sensor.py index 35fb6c0ec1fc..1d8c5ab045ee 100644 --- a/homeassistant/components/nws/sensor.py +++ b/homeassistant/components/nws/sensor.py @@ -1,4 +1,5 @@ """Sensors for National Weather Service (NWS).""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/nws/weather.py b/homeassistant/components/nws/weather.py index 9d41e54ccd0c..025a3640ec60 100644 --- a/homeassistant/components/nws/weather.py +++ b/homeassistant/components/nws/weather.py @@ -1,4 +1,5 @@ """Support for NWS weather service.""" + from __future__ import annotations from types import MappingProxyType diff --git a/homeassistant/components/nx584/alarm_control_panel.py b/homeassistant/components/nx584/alarm_control_panel.py index 3eaaf07ad1c5..d29ac0388cac 100644 --- a/homeassistant/components/nx584/alarm_control_panel.py +++ b/homeassistant/components/nx584/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for NX584 alarm control panels.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/nx584/binary_sensor.py b/homeassistant/components/nx584/binary_sensor.py index ca55ea25c40e..627051a4d65c 100644 --- a/homeassistant/components/nx584/binary_sensor.py +++ b/homeassistant/components/nx584/binary_sensor.py @@ -1,4 +1,5 @@ """Support for exposing NX584 elements as sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nzbget/config_flow.py b/homeassistant/components/nzbget/config_flow.py index f528712d6a0f..ff89d8090d6a 100644 --- a/homeassistant/components/nzbget/config_flow.py +++ b/homeassistant/components/nzbget/config_flow.py @@ -1,4 +1,5 @@ """Config flow for NZBGet.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/nzbget/sensor.py b/homeassistant/components/nzbget/sensor.py index d76e004d7205..394e1175c2f9 100644 --- a/homeassistant/components/nzbget/sensor.py +++ b/homeassistant/components/nzbget/sensor.py @@ -1,4 +1,5 @@ """Monitor the NZBGet API.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/nzbget/switch.py b/homeassistant/components/nzbget/switch.py index 5d72cae37cf5..c6505fd522d0 100644 --- a/homeassistant/components/nzbget/switch.py +++ b/homeassistant/components/nzbget/switch.py @@ -1,4 +1,5 @@ """Support for NZBGet switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/oasa_telematics/sensor.py b/homeassistant/components/oasa_telematics/sensor.py index b91096459435..2a68c7ce15dc 100644 --- a/homeassistant/components/oasa_telematics/sensor.py +++ b/homeassistant/components/oasa_telematics/sensor.py @@ -1,4 +1,5 @@ """Support for OASA Telematics from telematics.oasa.gr.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/obihai/sensor.py b/homeassistant/components/obihai/sensor.py index 53208a1e6a1f..cc70296028f5 100644 --- a/homeassistant/components/obihai/sensor.py +++ b/homeassistant/components/obihai/sensor.py @@ -1,4 +1,5 @@ """Support for Obihai Sensors.""" + from __future__ import annotations import datetime diff --git a/homeassistant/components/octoprint/__init__.py b/homeassistant/components/octoprint/__init__.py index 1a96078c003a..7a9f39904353 100644 --- a/homeassistant/components/octoprint/__init__.py +++ b/homeassistant/components/octoprint/__init__.py @@ -1,4 +1,5 @@ """Support for monitoring OctoPrint 3D printers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/octoprint/binary_sensor.py b/homeassistant/components/octoprint/binary_sensor.py index 0bc13f66415e..10a637e5a3b5 100644 --- a/homeassistant/components/octoprint/binary_sensor.py +++ b/homeassistant/components/octoprint/binary_sensor.py @@ -1,4 +1,5 @@ """Support for monitoring OctoPrint binary sensors.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/octoprint/button.py b/homeassistant/components/octoprint/button.py index b2c1672b3e4d..b7c49df7f4cd 100644 --- a/homeassistant/components/octoprint/button.py +++ b/homeassistant/components/octoprint/button.py @@ -1,4 +1,5 @@ """Support for Octoprint buttons.""" + from pyoctoprintapi import OctoprintClient, OctoprintPrinterInfo from homeassistant.components.button import ButtonEntity diff --git a/homeassistant/components/octoprint/camera.py b/homeassistant/components/octoprint/camera.py index a69557065084..c5d6f9a62e14 100644 --- a/homeassistant/components/octoprint/camera.py +++ b/homeassistant/components/octoprint/camera.py @@ -1,4 +1,5 @@ """Support for OctoPrint binary camera.""" + from __future__ import annotations from pyoctoprintapi import OctoprintClient, WebcamSettings diff --git a/homeassistant/components/octoprint/config_flow.py b/homeassistant/components/octoprint/config_flow.py index 94c9e940fd35..6bd592c38bf8 100644 --- a/homeassistant/components/octoprint/config_flow.py +++ b/homeassistant/components/octoprint/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OctoPrint integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/octoprint/coordinator.py b/homeassistant/components/octoprint/coordinator.py index c6ce8fa66b78..ff00b6c34208 100644 --- a/homeassistant/components/octoprint/coordinator.py +++ b/homeassistant/components/octoprint/coordinator.py @@ -1,4 +1,5 @@ """The data update coordinator for OctoPrint.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/octoprint/sensor.py b/homeassistant/components/octoprint/sensor.py index 1ea29c2b4e8b..eb54cadd023c 100644 --- a/homeassistant/components/octoprint/sensor.py +++ b/homeassistant/components/octoprint/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring OctoPrint sensors.""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/oem/climate.py b/homeassistant/components/oem/climate.py index 86c770ec82d1..6c4b97ca4508 100644 --- a/homeassistant/components/oem/climate.py +++ b/homeassistant/components/oem/climate.py @@ -1,4 +1,5 @@ """OpenEnergyMonitor Thermostat Support.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ohmconnect/sensor.py b/homeassistant/components/ohmconnect/sensor.py index 11606bfc6c26..2598e5fe514e 100644 --- a/homeassistant/components/ohmconnect/sensor.py +++ b/homeassistant/components/ohmconnect/sensor.py @@ -1,4 +1,5 @@ """Support for OhmConnect.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/ombi/const.py b/homeassistant/components/ombi/const.py index 59a57a480c23..6616cd9219d7 100644 --- a/homeassistant/components/ombi/const.py +++ b/homeassistant/components/ombi/const.py @@ -1,4 +1,5 @@ """Support for Ombi.""" + from __future__ import annotations ATTR_SEASON = "season" diff --git a/homeassistant/components/ombi/sensor.py b/homeassistant/components/ombi/sensor.py index f534144d02cd..ab9df9ad1117 100644 --- a/homeassistant/components/ombi/sensor.py +++ b/homeassistant/components/ombi/sensor.py @@ -1,4 +1,5 @@ """Support for Ombi.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/omnilogic/config_flow.py b/homeassistant/components/omnilogic/config_flow.py index 76c42b19866a..3f3acc3c100b 100644 --- a/homeassistant/components/omnilogic/config_flow.py +++ b/homeassistant/components/omnilogic/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Omnilogic integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/omnilogic/sensor.py b/homeassistant/components/omnilogic/sensor.py index be0825843089..5eb5a5dd0c41 100644 --- a/homeassistant/components/omnilogic/sensor.py +++ b/homeassistant/components/omnilogic/sensor.py @@ -1,4 +1,5 @@ """Definition and setup of the Omnilogic Sensors for Home Assistant.""" + from typing import Any from homeassistant.components.sensor import SensorDeviceClass, SensorEntity diff --git a/homeassistant/components/onboarding/__init__.py b/homeassistant/components/onboarding/__init__.py index 4243d05c0856..61576c831bf4 100644 --- a/homeassistant/components/onboarding/__init__.py +++ b/homeassistant/components/onboarding/__init__.py @@ -1,4 +1,5 @@ """Support to help onboard new users.""" + from __future__ import annotations from typing import TYPE_CHECKING diff --git a/homeassistant/components/onboarding/views.py b/homeassistant/components/onboarding/views.py index 37ace1e1bab8..bcc4bd26a588 100644 --- a/homeassistant/components/onboarding/views.py +++ b/homeassistant/components/onboarding/views.py @@ -1,4 +1,5 @@ """Onboarding views.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/oncue/__init__.py b/homeassistant/components/oncue/__init__.py index a87b2a9e02c8..b3d59f50321b 100644 --- a/homeassistant/components/oncue/__init__.py +++ b/homeassistant/components/oncue/__init__.py @@ -1,4 +1,5 @@ """The Oncue integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/oncue/binary_sensor.py b/homeassistant/components/oncue/binary_sensor.py index cfb088ebdb8a..8adf422d6564 100644 --- a/homeassistant/components/oncue/binary_sensor.py +++ b/homeassistant/components/oncue/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Oncue binary sensors.""" + from __future__ import annotations from aiooncue import OncueDevice diff --git a/homeassistant/components/oncue/config_flow.py b/homeassistant/components/oncue/config_flow.py index e56266202bd3..ba672dcc588c 100644 --- a/homeassistant/components/oncue/config_flow.py +++ b/homeassistant/components/oncue/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Oncue integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/oncue/entity.py b/homeassistant/components/oncue/entity.py index 6d988d4aaaf5..55bd86d89128 100644 --- a/homeassistant/components/oncue/entity.py +++ b/homeassistant/components/oncue/entity.py @@ -1,4 +1,5 @@ """Support for Oncue sensors.""" + from __future__ import annotations from aiooncue import OncueDevice, OncueSensor diff --git a/homeassistant/components/oncue/sensor.py b/homeassistant/components/oncue/sensor.py index d4d45264396a..f79beed38b2a 100644 --- a/homeassistant/components/oncue/sensor.py +++ b/homeassistant/components/oncue/sensor.py @@ -1,4 +1,5 @@ """Support for Oncue sensors.""" + from __future__ import annotations from aiooncue import OncueDevice, OncueSensor diff --git a/homeassistant/components/ondilo_ico/api.py b/homeassistant/components/ondilo_ico/api.py index e0c6f9001c4f..621750c2f588 100644 --- a/homeassistant/components/ondilo_ico/api.py +++ b/homeassistant/components/ondilo_ico/api.py @@ -1,4 +1,5 @@ """API for Ondilo ICO bound to Home Assistant OAuth.""" + from asyncio import run_coroutine_threadsafe import logging from typing import Any diff --git a/homeassistant/components/ondilo_ico/sensor.py b/homeassistant/components/ondilo_ico/sensor.py index 0a39f661b6bf..17569fd784f8 100644 --- a/homeassistant/components/ondilo_ico/sensor.py +++ b/homeassistant/components/ondilo_ico/sensor.py @@ -1,4 +1,5 @@ """Platform for sensor integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/onewire/binary_sensor.py b/homeassistant/components/onewire/binary_sensor.py index e7e30588f8a0..0f98be0d892b 100644 --- a/homeassistant/components/onewire/binary_sensor.py +++ b/homeassistant/components/onewire/binary_sensor.py @@ -1,4 +1,5 @@ """Support for 1-Wire binary sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onewire/config_flow.py b/homeassistant/components/onewire/config_flow.py index 11a57fdaab5b..a217674e3b42 100644 --- a/homeassistant/components/onewire/config_flow.py +++ b/homeassistant/components/onewire/config_flow.py @@ -1,4 +1,5 @@ """Config flow for 1-Wire component.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/onewire/const.py b/homeassistant/components/onewire/const.py index ed744caee177..110e3da0976c 100644 --- a/homeassistant/components/onewire/const.py +++ b/homeassistant/components/onewire/const.py @@ -1,4 +1,5 @@ """Constants for 1-Wire component.""" + from __future__ import annotations from homeassistant.const import Platform diff --git a/homeassistant/components/onewire/diagnostics.py b/homeassistant/components/onewire/diagnostics.py index 36db7fd53601..387553849f3c 100644 --- a/homeassistant/components/onewire/diagnostics.py +++ b/homeassistant/components/onewire/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for 1-Wire.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/onewire/model.py b/homeassistant/components/onewire/model.py index 6e134fd84668..9deaca2d1215 100644 --- a/homeassistant/components/onewire/model.py +++ b/homeassistant/components/onewire/model.py @@ -1,4 +1,5 @@ """Type definitions for 1-Wire integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onewire/onewire_entities.py b/homeassistant/components/onewire/onewire_entities.py index cad55234181f..03ed2dd679a1 100644 --- a/homeassistant/components/onewire/onewire_entities.py +++ b/homeassistant/components/onewire/onewire_entities.py @@ -1,4 +1,5 @@ """Support for 1-Wire entities.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onewire/onewirehub.py b/homeassistant/components/onewire/onewirehub.py index d0e2a0f17066..b01cc6ba3d67 100644 --- a/homeassistant/components/onewire/onewirehub.py +++ b/homeassistant/components/onewire/onewirehub.py @@ -1,4 +1,5 @@ """Hub for communication with 1-Wire server or mount_dir.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/onewire/sensor.py b/homeassistant/components/onewire/sensor.py index a7d199c21a93..2a0f348aa17f 100644 --- a/homeassistant/components/onewire/sensor.py +++ b/homeassistant/components/onewire/sensor.py @@ -1,4 +1,5 @@ """Support for 1-Wire environment sensors.""" + from __future__ import annotations from collections.abc import Callable, Mapping diff --git a/homeassistant/components/onewire/switch.py b/homeassistant/components/onewire/switch.py index 00a3f8f65f43..87e049a575d2 100644 --- a/homeassistant/components/onewire/switch.py +++ b/homeassistant/components/onewire/switch.py @@ -1,4 +1,5 @@ """Support for 1-Wire environment switches.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onkyo/media_player.py b/homeassistant/components/onkyo/media_player.py index 4d6d0f6965da..ef0105bd6d24 100644 --- a/homeassistant/components/onkyo/media_player.py +++ b/homeassistant/components/onkyo/media_player.py @@ -1,4 +1,5 @@ """Support for Onkyo Receivers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/onvif/base.py b/homeassistant/components/onvif/base.py index 5f8a7d978d1b..c99001062566 100644 --- a/homeassistant/components/onvif/base.py +++ b/homeassistant/components/onvif/base.py @@ -1,4 +1,5 @@ """Base classes for ONVIF entities.""" + from __future__ import annotations from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo diff --git a/homeassistant/components/onvif/binary_sensor.py b/homeassistant/components/onvif/binary_sensor.py index 3676e3b6c275..4aa4d81e055c 100644 --- a/homeassistant/components/onvif/binary_sensor.py +++ b/homeassistant/components/onvif/binary_sensor.py @@ -1,4 +1,5 @@ """Support for ONVIF binary sensors.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/onvif/button.py b/homeassistant/components/onvif/button.py index f263821a4600..1e86b73fc669 100644 --- a/homeassistant/components/onvif/button.py +++ b/homeassistant/components/onvif/button.py @@ -1,4 +1,5 @@ """ONVIF Buttons.""" + from homeassistant.components.button import ButtonDeviceClass, ButtonEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import EntityCategory diff --git a/homeassistant/components/onvif/camera.py b/homeassistant/components/onvif/camera.py index c6ee74c2c50e..3fa41d629b20 100644 --- a/homeassistant/components/onvif/camera.py +++ b/homeassistant/components/onvif/camera.py @@ -1,4 +1,5 @@ """Support for ONVIF Cameras with FFmpeg as decoder.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/onvif/config_flow.py b/homeassistant/components/onvif/config_flow.py index ba1fc1c3098b..515f9cd5f689 100644 --- a/homeassistant/components/onvif/config_flow.py +++ b/homeassistant/components/onvif/config_flow.py @@ -1,4 +1,5 @@ """Config flow for ONVIF.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/onvif/device.py b/homeassistant/components/onvif/device.py index 358cbbf5c834..2001d95e2d45 100644 --- a/homeassistant/components/onvif/device.py +++ b/homeassistant/components/onvif/device.py @@ -1,4 +1,5 @@ """ONVIF device abstraction.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/onvif/diagnostics.py b/homeassistant/components/onvif/diagnostics.py index a802aed5e80e..aa2042f33215 100644 --- a/homeassistant/components/onvif/diagnostics.py +++ b/homeassistant/components/onvif/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for ONVIF.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/onvif/event.py b/homeassistant/components/onvif/event.py index c5539818a1c7..9dcdba628e01 100644 --- a/homeassistant/components/onvif/event.py +++ b/homeassistant/components/onvif/event.py @@ -1,4 +1,5 @@ """ONVIF event abstraction.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/onvif/models.py b/homeassistant/components/onvif/models.py index 64edc85f3d13..ad91a514e888 100644 --- a/homeassistant/components/onvif/models.py +++ b/homeassistant/components/onvif/models.py @@ -1,4 +1,5 @@ """ONVIF models.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/onvif/parsers.py b/homeassistant/components/onvif/parsers.py index 02899dbc1a27..721ec08cb48f 100644 --- a/homeassistant/components/onvif/parsers.py +++ b/homeassistant/components/onvif/parsers.py @@ -1,4 +1,5 @@ """ONVIF event parsers.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/onvif/sensor.py b/homeassistant/components/onvif/sensor.py index 67da0ed979dc..5b0c72e88dd2 100644 --- a/homeassistant/components/onvif/sensor.py +++ b/homeassistant/components/onvif/sensor.py @@ -1,4 +1,5 @@ """Support for ONVIF binary sensors.""" + from __future__ import annotations from datetime import date, datetime diff --git a/homeassistant/components/onvif/switch.py b/homeassistant/components/onvif/switch.py index 61983ef1ab5c..004872606d3d 100644 --- a/homeassistant/components/onvif/switch.py +++ b/homeassistant/components/onvif/switch.py @@ -1,4 +1,5 @@ """ONVIF switches for controlling cameras.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/onvif/util.py b/homeassistant/components/onvif/util.py index 5077a65e0b0c..064d9cfad5f3 100644 --- a/homeassistant/components/onvif/util.py +++ b/homeassistant/components/onvif/util.py @@ -1,4 +1,5 @@ """ONVIF util.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/open_meteo/__init__.py b/homeassistant/components/open_meteo/__init__.py index 4dc6a45e16c9..ac09b0f61a2b 100644 --- a/homeassistant/components/open_meteo/__init__.py +++ b/homeassistant/components/open_meteo/__init__.py @@ -1,4 +1,5 @@ """Support for Open-Meteo.""" + from __future__ import annotations from open_meteo import ( diff --git a/homeassistant/components/open_meteo/config_flow.py b/homeassistant/components/open_meteo/config_flow.py index 1c5c76500b1a..128e9f17f37e 100644 --- a/homeassistant/components/open_meteo/config_flow.py +++ b/homeassistant/components/open_meteo/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Open-Meteo integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/open_meteo/const.py b/homeassistant/components/open_meteo/const.py index 94e27293bade..e83fad9d59fd 100644 --- a/homeassistant/components/open_meteo/const.py +++ b/homeassistant/components/open_meteo/const.py @@ -1,4 +1,5 @@ """Constants for the Open-Meteo integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/open_meteo/diagnostics.py b/homeassistant/components/open_meteo/diagnostics.py index a88325066fed..0ce9f4fcf3d5 100644 --- a/homeassistant/components/open_meteo/diagnostics.py +++ b/homeassistant/components/open_meteo/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Open-Meteo.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/open_meteo/weather.py b/homeassistant/components/open_meteo/weather.py index 3d66422fd600..850ce61bcb56 100644 --- a/homeassistant/components/open_meteo/weather.py +++ b/homeassistant/components/open_meteo/weather.py @@ -1,4 +1,5 @@ """Support for Open-Meteo weather.""" + from __future__ import annotations from open_meteo import Forecast as OpenMeteoForecast diff --git a/homeassistant/components/openai_conversation/__init__.py b/homeassistant/components/openai_conversation/__init__.py index b0762979ca21..07e872a0f5db 100644 --- a/homeassistant/components/openai_conversation/__init__.py +++ b/homeassistant/components/openai_conversation/__init__.py @@ -1,4 +1,5 @@ """The OpenAI Conversation integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openai_conversation/config_flow.py b/homeassistant/components/openai_conversation/config_flow.py index a971e34ccf5a..fdbbbc554df4 100644 --- a/homeassistant/components/openai_conversation/config_flow.py +++ b/homeassistant/components/openai_conversation/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OpenAI Conversation integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openalpr_cloud/image_processing.py b/homeassistant/components/openalpr_cloud/image_processing.py index 0dbebda69628..2c2807f5364f 100644 --- a/homeassistant/components/openalpr_cloud/image_processing.py +++ b/homeassistant/components/openalpr_cloud/image_processing.py @@ -1,4 +1,5 @@ """Component that will help set the OpenALPR cloud for ALPR processing.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/opencv/image_processing.py b/homeassistant/components/opencv/image_processing.py index 89c1a16aa594..760c473243d7 100644 --- a/homeassistant/components/opencv/image_processing.py +++ b/homeassistant/components/opencv/image_processing.py @@ -1,4 +1,5 @@ """Support for OpenCV classification on images.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/openerz/sensor.py b/homeassistant/components/openerz/sensor.py index 4bfe11ee2642..7447f2eafe4a 100644 --- a/homeassistant/components/openerz/sensor.py +++ b/homeassistant/components/openerz/sensor.py @@ -1,4 +1,5 @@ """Support for OpenERZ API for Zurich city waste disposal system.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/openevse/sensor.py b/homeassistant/components/openevse/sensor.py index aafda0d038b8..b2360b13a6f8 100644 --- a/homeassistant/components/openevse/sensor.py +++ b/homeassistant/components/openevse/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring an OpenEVSE Charger.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openexchangerates/__init__.py b/homeassistant/components/openexchangerates/__init__.py index 1b6ab4e65f13..65005235c6b8 100644 --- a/homeassistant/components/openexchangerates/__init__.py +++ b/homeassistant/components/openexchangerates/__init__.py @@ -1,4 +1,5 @@ """The Open Exchange Rates integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/openexchangerates/config_flow.py b/homeassistant/components/openexchangerates/config_flow.py index 4a15ed33fd8a..2fc0acea78d4 100644 --- a/homeassistant/components/openexchangerates/config_flow.py +++ b/homeassistant/components/openexchangerates/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Open Exchange Rates integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/openexchangerates/const.py b/homeassistant/components/openexchangerates/const.py index 146919cfe443..0dd79158ff73 100644 --- a/homeassistant/components/openexchangerates/const.py +++ b/homeassistant/components/openexchangerates/const.py @@ -1,4 +1,5 @@ """Provide common constants for Open Exchange Rates.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/openexchangerates/coordinator.py b/homeassistant/components/openexchangerates/coordinator.py index beb588c7ce6b..627e0d92e32d 100644 --- a/homeassistant/components/openexchangerates/coordinator.py +++ b/homeassistant/components/openexchangerates/coordinator.py @@ -1,4 +1,5 @@ """Provide an OpenExchangeRates data coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/openexchangerates/sensor.py b/homeassistant/components/openexchangerates/sensor.py index 66baf54c16a3..55ca7bd2fb96 100644 --- a/homeassistant/components/openexchangerates/sensor.py +++ b/homeassistant/components/openexchangerates/sensor.py @@ -1,4 +1,5 @@ """Support for openexchangerates.org exchange rates service.""" + from __future__ import annotations from homeassistant.components.sensor import SensorEntity diff --git a/homeassistant/components/opengarage/__init__.py b/homeassistant/components/opengarage/__init__.py index 46d018ec1af6..adc96ee09462 100644 --- a/homeassistant/components/opengarage/__init__.py +++ b/homeassistant/components/opengarage/__init__.py @@ -1,4 +1,5 @@ """The OpenGarage integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/opengarage/binary_sensor.py b/homeassistant/components/opengarage/binary_sensor.py index 1b40aacffe58..2eca670b9906 100644 --- a/homeassistant/components/opengarage/binary_sensor.py +++ b/homeassistant/components/opengarage/binary_sensor.py @@ -1,4 +1,5 @@ """Platform for the opengarage.io binary sensor component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opengarage/button.py b/homeassistant/components/opengarage/button.py index 9f6769190984..f3a31d1b050d 100644 --- a/homeassistant/components/opengarage/button.py +++ b/homeassistant/components/opengarage/button.py @@ -1,4 +1,5 @@ """OpenGarage button.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/opengarage/config_flow.py b/homeassistant/components/opengarage/config_flow.py index 6b9a84a6a77c..0b86c5637836 100644 --- a/homeassistant/components/opengarage/config_flow.py +++ b/homeassistant/components/opengarage/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OpenGarage integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opengarage/cover.py b/homeassistant/components/opengarage/cover.py index 3f3f6b11acf1..69338ad4b905 100644 --- a/homeassistant/components/opengarage/cover.py +++ b/homeassistant/components/opengarage/cover.py @@ -1,4 +1,5 @@ """Platform for the opengarage.io cover component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opengarage/entity.py b/homeassistant/components/opengarage/entity.py index c8380ea9244d..4bf63567fe38 100644 --- a/homeassistant/components/opengarage/entity.py +++ b/homeassistant/components/opengarage/entity.py @@ -1,4 +1,5 @@ """Entity for the opengarage.io component.""" + from __future__ import annotations from homeassistant.core import callback diff --git a/homeassistant/components/opengarage/sensor.py b/homeassistant/components/opengarage/sensor.py index c3fa3decc821..39b431157ab7 100644 --- a/homeassistant/components/opengarage/sensor.py +++ b/homeassistant/components/opengarage/sensor.py @@ -1,4 +1,5 @@ """Platform for the opengarage.io sensor component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openhardwaremonitor/sensor.py b/homeassistant/components/openhardwaremonitor/sensor.py index 4206bc72c1da..a68b9b11678e 100644 --- a/homeassistant/components/openhardwaremonitor/sensor.py +++ b/homeassistant/components/openhardwaremonitor/sensor.py @@ -1,4 +1,5 @@ """Support for Open Hardware Monitor Sensor Platform.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/openhome/media_player.py b/homeassistant/components/openhome/media_player.py index 25052824ffec..12e5ed992c2b 100644 --- a/homeassistant/components/openhome/media_player.py +++ b/homeassistant/components/openhome/media_player.py @@ -1,4 +1,5 @@ """Support for Openhome Devices.""" + from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine diff --git a/homeassistant/components/openhome/update.py b/homeassistant/components/openhome/update.py index 6d36bccec65d..bbe4fdac3b33 100644 --- a/homeassistant/components/openhome/update.py +++ b/homeassistant/components/openhome/update.py @@ -1,4 +1,5 @@ """Update entities for Linn devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opensensemap/air_quality.py b/homeassistant/components/opensensemap/air_quality.py index 0e918103cd28..c9b4c726a597 100644 --- a/homeassistant/components/opensensemap/air_quality.py +++ b/homeassistant/components/opensensemap/air_quality.py @@ -1,4 +1,5 @@ """Support for openSenseMap Air Quality data.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/opensky/__init__.py b/homeassistant/components/opensky/__init__.py index 6e60c2ec4f13..c95dc1283a41 100644 --- a/homeassistant/components/opensky/__init__.py +++ b/homeassistant/components/opensky/__init__.py @@ -1,4 +1,5 @@ """The opensky component.""" + from __future__ import annotations from aiohttp import BasicAuth diff --git a/homeassistant/components/opensky/config_flow.py b/homeassistant/components/opensky/config_flow.py index 568082b67fd0..863b6050616b 100644 --- a/homeassistant/components/opensky/config_flow.py +++ b/homeassistant/components/opensky/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OpenSky integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/opensky/coordinator.py b/homeassistant/components/opensky/coordinator.py index d85924737a16..f54e01b00061 100644 --- a/homeassistant/components/opensky/coordinator.py +++ b/homeassistant/components/opensky/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the OpenSky integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/opensky/sensor.py b/homeassistant/components/opensky/sensor.py index 449f17cefbbb..9d317ae3e0d9 100644 --- a/homeassistant/components/opensky/sensor.py +++ b/homeassistant/components/opensky/sensor.py @@ -1,4 +1,5 @@ """Sensor for the Open Sky Network.""" + from __future__ import annotations from homeassistant.components.sensor import SensorEntity, SensorStateClass diff --git a/homeassistant/components/opentherm_gw/climate.py b/homeassistant/components/opentherm_gw/climate.py index 0b9cd1862be6..c020a82f08f5 100644 --- a/homeassistant/components/opentherm_gw/climate.py +++ b/homeassistant/components/opentherm_gw/climate.py @@ -1,4 +1,5 @@ """Support for OpenTherm Gateway climate devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/opentherm_gw/config_flow.py b/homeassistant/components/opentherm_gw/config_flow.py index 9e2b4d76dd3e..19906689b57f 100644 --- a/homeassistant/components/opentherm_gw/config_flow.py +++ b/homeassistant/components/opentherm_gw/config_flow.py @@ -1,4 +1,5 @@ """OpenTherm Gateway config flow.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/opentherm_gw/const.py b/homeassistant/components/opentherm_gw/const.py index 82d982b2fa91..65a684de2245 100644 --- a/homeassistant/components/opentherm_gw/const.py +++ b/homeassistant/components/opentherm_gw/const.py @@ -1,4 +1,5 @@ """Constants for the opentherm_gw integration.""" + from __future__ import annotations import pyotgw.vars as gw_vars diff --git a/homeassistant/components/openuv/__init__.py b/homeassistant/components/openuv/__init__.py index a9ea1946f91f..b7c13ad49f10 100644 --- a/homeassistant/components/openuv/__init__.py +++ b/homeassistant/components/openuv/__init__.py @@ -1,4 +1,5 @@ """Support for UV data from openuv.io.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/openuv/binary_sensor.py b/homeassistant/components/openuv/binary_sensor.py index 7946597f3c39..da4dfc3f7426 100644 --- a/homeassistant/components/openuv/binary_sensor.py +++ b/homeassistant/components/openuv/binary_sensor.py @@ -1,4 +1,5 @@ """Support for OpenUV binary sensors.""" + from homeassistant.components.binary_sensor import ( BinarySensorEntity, BinarySensorEntityDescription, diff --git a/homeassistant/components/openuv/config_flow.py b/homeassistant/components/openuv/config_flow.py index 0e6dfcdad1e4..52e369fd6df0 100644 --- a/homeassistant/components/openuv/config_flow.py +++ b/homeassistant/components/openuv/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the OpenUV component.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/openuv/coordinator.py b/homeassistant/components/openuv/coordinator.py index f82a85e19b08..32d502cb8ce6 100644 --- a/homeassistant/components/openuv/coordinator.py +++ b/homeassistant/components/openuv/coordinator.py @@ -1,4 +1,5 @@ """Define an update coordinator for OpenUV.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/openuv/diagnostics.py b/homeassistant/components/openuv/diagnostics.py index 99c5f89d4560..e16316d4148e 100644 --- a/homeassistant/components/openuv/diagnostics.py +++ b/homeassistant/components/openuv/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for OpenUV.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/openuv/sensor.py b/homeassistant/components/openuv/sensor.py index f2eafa0dffbd..a79bc4107154 100644 --- a/homeassistant/components/openuv/sensor.py +++ b/homeassistant/components/openuv/sensor.py @@ -1,4 +1,5 @@ """Support for OpenUV sensors.""" + from __future__ import annotations from collections.abc import Callable, Mapping diff --git a/homeassistant/components/openweathermap/__init__.py b/homeassistant/components/openweathermap/__init__.py index 22c97d72fa56..ad99416e4482 100644 --- a/homeassistant/components/openweathermap/__init__.py +++ b/homeassistant/components/openweathermap/__init__.py @@ -1,4 +1,5 @@ """The openweathermap component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/openweathermap/config_flow.py b/homeassistant/components/openweathermap/config_flow.py index 717a5148398f..cc4c71c2bd5c 100644 --- a/homeassistant/components/openweathermap/config_flow.py +++ b/homeassistant/components/openweathermap/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OpenWeatherMap.""" + from __future__ import annotations from pyowm import OWM diff --git a/homeassistant/components/openweathermap/const.py b/homeassistant/components/openweathermap/const.py index d7deab21743f..dbd536a25560 100644 --- a/homeassistant/components/openweathermap/const.py +++ b/homeassistant/components/openweathermap/const.py @@ -1,4 +1,5 @@ """Consts for the OpenWeatherMap.""" + from __future__ import annotations from homeassistant.components.weather import ( diff --git a/homeassistant/components/openweathermap/sensor.py b/homeassistant/components/openweathermap/sensor.py index a1e0e9d21695..16d9c3064d7f 100644 --- a/homeassistant/components/openweathermap/sensor.py +++ b/homeassistant/components/openweathermap/sensor.py @@ -1,4 +1,5 @@ """Support for the OpenWeatherMap (OWM) service.""" + from __future__ import annotations from datetime import datetime diff --git a/homeassistant/components/openweathermap/weather.py b/homeassistant/components/openweathermap/weather.py index bf1ae5ca7dab..063415d0762a 100644 --- a/homeassistant/components/openweathermap/weather.py +++ b/homeassistant/components/openweathermap/weather.py @@ -1,4 +1,5 @@ """Support for the OpenWeatherMap (OWM) service.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/opnsense/device_tracker.py b/homeassistant/components/opnsense/device_tracker.py index 78a8315335c0..7c018e20a36b 100644 --- a/homeassistant/components/opnsense/device_tracker.py +++ b/homeassistant/components/opnsense/device_tracker.py @@ -1,4 +1,5 @@ """Device tracker support for OPNSense routers.""" + from __future__ import annotations from homeassistant.components.device_tracker import DeviceScanner diff --git a/homeassistant/components/opower/__init__.py b/homeassistant/components/opower/__init__.py index f4fca22c9b44..1a34d0547aa9 100644 --- a/homeassistant/components/opower/__init__.py +++ b/homeassistant/components/opower/__init__.py @@ -1,4 +1,5 @@ """The Opower integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/opower/config_flow.py b/homeassistant/components/opower/config_flow.py index b21ad72d6884..858d14dd8327 100644 --- a/homeassistant/components/opower/config_flow.py +++ b/homeassistant/components/opower/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Opower integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/opower/coordinator.py b/homeassistant/components/opower/coordinator.py index 73c60068cd45..22ff9d951d29 100644 --- a/homeassistant/components/opower/coordinator.py +++ b/homeassistant/components/opower/coordinator.py @@ -1,4 +1,5 @@ """Coordinator to handle Opower connections.""" + from datetime import datetime, timedelta import logging import socket diff --git a/homeassistant/components/opower/sensor.py b/homeassistant/components/opower/sensor.py index 9940132dac2b..1987abcc69d1 100644 --- a/homeassistant/components/opower/sensor.py +++ b/homeassistant/components/opower/sensor.py @@ -1,4 +1,5 @@ """Support for Opower sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/opple/light.py b/homeassistant/components/opple/light.py index 0d42b35b83b8..2fbbf6ae02a5 100644 --- a/homeassistant/components/opple/light.py +++ b/homeassistant/components/opple/light.py @@ -1,4 +1,5 @@ """Support for the Opple light.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/oralb/__init__.py b/homeassistant/components/oralb/__init__.py index 23a022effef3..29aa63410e5a 100644 --- a/homeassistant/components/oralb/__init__.py +++ b/homeassistant/components/oralb/__init__.py @@ -1,4 +1,5 @@ """The OralB integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/oralb/config_flow.py b/homeassistant/components/oralb/config_flow.py index 41938cc0c496..ab5d919194ea 100644 --- a/homeassistant/components/oralb/config_flow.py +++ b/homeassistant/components/oralb/config_flow.py @@ -1,4 +1,5 @@ """Config flow for oralb ble integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/oralb/device.py b/homeassistant/components/oralb/device.py index 3cc46fd27c66..0fb6b71981d3 100644 --- a/homeassistant/components/oralb/device.py +++ b/homeassistant/components/oralb/device.py @@ -1,4 +1,5 @@ """Support for OralB devices.""" + from __future__ import annotations from oralb_ble import DeviceKey diff --git a/homeassistant/components/oralb/sensor.py b/homeassistant/components/oralb/sensor.py index f743122d0cbe..b6e52c1284da 100644 --- a/homeassistant/components/oralb/sensor.py +++ b/homeassistant/components/oralb/sensor.py @@ -1,4 +1,5 @@ """Support for OralB sensors.""" + from __future__ import annotations from oralb_ble import OralBSensor, SensorUpdate diff --git a/homeassistant/components/oru/sensor.py b/homeassistant/components/oru/sensor.py index a971a8e461bd..b1d814dd98a5 100644 --- a/homeassistant/components/oru/sensor.py +++ b/homeassistant/components/oru/sensor.py @@ -1,4 +1,5 @@ """Platform for sensor integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/orvibo/switch.py b/homeassistant/components/orvibo/switch.py index 9e86d3787afc..ece833b70361 100644 --- a/homeassistant/components/orvibo/switch.py +++ b/homeassistant/components/orvibo/switch.py @@ -1,4 +1,5 @@ """Support for Orvibo S20 Wifi Smart Switches.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/osoenergy/__init__.py b/homeassistant/components/osoenergy/__init__.py index f0b89eaea903..269fd6614b73 100644 --- a/homeassistant/components/osoenergy/__init__.py +++ b/homeassistant/components/osoenergy/__init__.py @@ -1,4 +1,5 @@ """Support for the OSO Energy devices and services.""" + from typing import Any, Generic, TypeVar from aiohttp.web_exceptions import HTTPException diff --git a/homeassistant/components/osoenergy/config_flow.py b/homeassistant/components/osoenergy/config_flow.py index 0591630c660c..ce0932571e5d 100644 --- a/homeassistant/components/osoenergy/config_flow.py +++ b/homeassistant/components/osoenergy/config_flow.py @@ -1,4 +1,5 @@ """Config Flow for OSO Energy.""" + from collections.abc import Mapping import logging from typing import Any diff --git a/homeassistant/components/osoenergy/water_heater.py b/homeassistant/components/osoenergy/water_heater.py index 4b2ad7c48d65..146bdaa3a609 100644 --- a/homeassistant/components/osoenergy/water_heater.py +++ b/homeassistant/components/osoenergy/water_heater.py @@ -1,4 +1,5 @@ """Support for OSO Energy water heaters.""" + from typing import Any from apyosoenergyapi.helper.const import OSOEnergyWaterHeaterData diff --git a/homeassistant/components/osramlightify/light.py b/homeassistant/components/osramlightify/light.py index 1c0a134831bf..2f0ba1bccb47 100644 --- a/homeassistant/components/osramlightify/light.py +++ b/homeassistant/components/osramlightify/light.py @@ -1,4 +1,5 @@ """Support for Osram Lightify.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/otbr/__init__.py b/homeassistant/components/otbr/__init__.py index fe4cc8c1145a..97c2f40eb999 100644 --- a/homeassistant/components/otbr/__init__.py +++ b/homeassistant/components/otbr/__init__.py @@ -1,4 +1,5 @@ """The Open Thread Border Router integration.""" + from __future__ import annotations import aiohttp diff --git a/homeassistant/components/otbr/config_flow.py b/homeassistant/components/otbr/config_flow.py index 98e6c18741f3..9a70970bdb6c 100644 --- a/homeassistant/components/otbr/config_flow.py +++ b/homeassistant/components/otbr/config_flow.py @@ -1,4 +1,5 @@ """Config flow for the Open Thread Border Router integration.""" + from __future__ import annotations from contextlib import suppress diff --git a/homeassistant/components/otbr/util.py b/homeassistant/components/otbr/util.py index 9c47df5eaf75..4374412b8c1e 100644 --- a/homeassistant/components/otbr/util.py +++ b/homeassistant/components/otbr/util.py @@ -1,4 +1,5 @@ """Utility functions for the Open Thread Border Router integration.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/otp/sensor.py b/homeassistant/components/otp/sensor.py index 7c7c30df970b..a9b4368d1e6f 100644 --- a/homeassistant/components/otp/sensor.py +++ b/homeassistant/components/otp/sensor.py @@ -1,4 +1,5 @@ """Support for One-Time Password (OTP).""" + from __future__ import annotations import time diff --git a/homeassistant/components/ourgroceries/__init__.py b/homeassistant/components/ourgroceries/__init__.py index 472313aa3150..5086a5cfc9b5 100644 --- a/homeassistant/components/ourgroceries/__init__.py +++ b/homeassistant/components/ourgroceries/__init__.py @@ -1,4 +1,5 @@ """The OurGroceries integration.""" + from __future__ import annotations from aiohttp import ClientError diff --git a/homeassistant/components/ourgroceries/config_flow.py b/homeassistant/components/ourgroceries/config_flow.py index 2d95428ee591..98eae900db6f 100644 --- a/homeassistant/components/ourgroceries/config_flow.py +++ b/homeassistant/components/ourgroceries/config_flow.py @@ -1,4 +1,5 @@ """Config flow for OurGroceries integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ourgroceries/coordinator.py b/homeassistant/components/ourgroceries/coordinator.py index c583fb4d5b10..bc645b2bdb38 100644 --- a/homeassistant/components/ourgroceries/coordinator.py +++ b/homeassistant/components/ourgroceries/coordinator.py @@ -1,4 +1,5 @@ """The OurGroceries coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/overkiz/__init__.py b/homeassistant/components/overkiz/__init__.py index 03a81f673084..ce877e15261c 100644 --- a/homeassistant/components/overkiz/__init__.py +++ b/homeassistant/components/overkiz/__init__.py @@ -1,4 +1,5 @@ """The Overkiz (by Somfy) integration.""" + from __future__ import annotations from collections import defaultdict diff --git a/homeassistant/components/overkiz/alarm_control_panel.py b/homeassistant/components/overkiz/alarm_control_panel.py index e2555308e343..ccb7c5d919e3 100644 --- a/homeassistant/components/overkiz/alarm_control_panel.py +++ b/homeassistant/components/overkiz/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Overkiz alarm control panel.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/overkiz/binary_sensor.py b/homeassistant/components/overkiz/binary_sensor.py index 975ef4ff834f..62bf88c5f9ce 100644 --- a/homeassistant/components/overkiz/binary_sensor.py +++ b/homeassistant/components/overkiz/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Overkiz binary sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/overkiz/button.py b/homeassistant/components/overkiz/button.py index f8f33db7eed2..3e0321b50554 100644 --- a/homeassistant/components/overkiz/button.py +++ b/homeassistant/components/overkiz/button.py @@ -1,4 +1,5 @@ """Support for Overkiz (virtual) buttons.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/overkiz/climate.py b/homeassistant/components/overkiz/climate.py index 2c24ca4f8328..e23403c21629 100644 --- a/homeassistant/components/overkiz/climate.py +++ b/homeassistant/components/overkiz/climate.py @@ -1,4 +1,5 @@ """Support for Overkiz climate devices.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/overkiz/climate_entities/__init__.py b/homeassistant/components/overkiz/climate_entities/__init__.py index 72230c99a058..df997f7a68e1 100644 --- a/homeassistant/components/overkiz/climate_entities/__init__.py +++ b/homeassistant/components/overkiz/climate_entities/__init__.py @@ -1,4 +1,5 @@ """Climate entities for the Overkiz (by Somfy) integration.""" + from enum import StrEnum, unique from pyoverkiz.enums import Protocol diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater.py b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater.py index 2678986574d9..ce9857f9d8c1 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater.py @@ -1,4 +1,5 @@ """Support for Atlantic Electrical Heater.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py index 36e958fb49c3..47dc75710ec2 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py @@ -1,4 +1,5 @@ """Support for Atlantic Electrical Heater (With Adjustable Temperature Setpoint).""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py index fefaa75a114b..16568c0b1b7e 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py @@ -1,4 +1,5 @@ """Support for Atlantic Electrical Towel Dryer.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.py b/homeassistant/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.py index 5876f7df4a76..698979672eaa 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_heat_recovery_ventilation.py @@ -1,4 +1,5 @@ """Support for AtlanticHeatRecoveryVentilation.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py index 157ec72a2496..72a9182974f5 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py @@ -1,4 +1,5 @@ """Support for Atlantic Pass APC Heating Control.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py index cfb920678759..7fbab821b8d7 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py @@ -1,4 +1,5 @@ """Support for Atlantic Pass APC Zone Control.""" + from typing import cast from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control_zone.py b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control_zone.py index a30cb93f287f..c61c92a3c44f 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control_zone.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control_zone.py @@ -1,4 +1,5 @@ """Support for Atlantic Pass APC Heating Control.""" + from __future__ import annotations from asyncio import sleep diff --git a/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py b/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py index 9b956acd014b..efdae2165a9b 100644 --- a/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py +++ b/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_hlrrwifi.py @@ -1,4 +1,5 @@ """Support for HitachiAirToAirHeatPump.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py b/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py index bf6bb5f95d5a..c1792a8e0500 100644 --- a/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py +++ b/homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py @@ -1,4 +1,5 @@ """Support for HitachiAirToAirHeatPump.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/climate_entities/somfy_heating_temperature_interface.py b/homeassistant/components/overkiz/climate_entities/somfy_heating_temperature_interface.py index f98865456e17..becb807d41a9 100644 --- a/homeassistant/components/overkiz/climate_entities/somfy_heating_temperature_interface.py +++ b/homeassistant/components/overkiz/climate_entities/somfy_heating_temperature_interface.py @@ -1,4 +1,5 @@ """Support for Somfy Heating Temperature Interface.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/climate_entities/somfy_thermostat.py b/homeassistant/components/overkiz/climate_entities/somfy_thermostat.py index 2b6840b463dc..615c618dd40f 100644 --- a/homeassistant/components/overkiz/climate_entities/somfy_thermostat.py +++ b/homeassistant/components/overkiz/climate_entities/somfy_thermostat.py @@ -1,4 +1,5 @@ """Support for Somfy Smart Thermostat.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/climate_entities/valve_heating_temperature_interface.py b/homeassistant/components/overkiz/climate_entities/valve_heating_temperature_interface.py index 7b7493a37bb7..893e4ca3d8ed 100644 --- a/homeassistant/components/overkiz/climate_entities/valve_heating_temperature_interface.py +++ b/homeassistant/components/overkiz/climate_entities/valve_heating_temperature_interface.py @@ -1,4 +1,5 @@ """Support for ValveHeatingTemperatureInterface.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/config_flow.py b/homeassistant/components/overkiz/config_flow.py index e9abef5897a8..f95f885f7efb 100644 --- a/homeassistant/components/overkiz/config_flow.py +++ b/homeassistant/components/overkiz/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Overkiz integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/overkiz/const.py b/homeassistant/components/overkiz/const.py index 0f30f64444b7..59acc4ac232e 100644 --- a/homeassistant/components/overkiz/const.py +++ b/homeassistant/components/overkiz/const.py @@ -1,4 +1,5 @@ """Constants for the Overkiz (by Somfy) integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/overkiz/coordinator.py b/homeassistant/components/overkiz/coordinator.py index 4630af8bbf8c..17068d26b7cc 100644 --- a/homeassistant/components/overkiz/coordinator.py +++ b/homeassistant/components/overkiz/coordinator.py @@ -1,4 +1,5 @@ """Helpers to help coordinate updates.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/overkiz/cover.py b/homeassistant/components/overkiz/cover.py index 4e741aa68e6d..51d2c9f23347 100644 --- a/homeassistant/components/overkiz/cover.py +++ b/homeassistant/components/overkiz/cover.py @@ -1,4 +1,5 @@ """Support for Overkiz covers - shutters etc.""" + from pyoverkiz.enums import OverkizCommand, UIClass from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/overkiz/cover_entities/awning.py b/homeassistant/components/overkiz/cover_entities/awning.py index da940d59218f..4b6e5b176a75 100644 --- a/homeassistant/components/overkiz/cover_entities/awning.py +++ b/homeassistant/components/overkiz/cover_entities/awning.py @@ -1,4 +1,5 @@ """Support for Overkiz awnings.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/cover_entities/generic_cover.py b/homeassistant/components/overkiz/cover_entities/generic_cover.py index f4a8a6a0d458..df13072524d0 100644 --- a/homeassistant/components/overkiz/cover_entities/generic_cover.py +++ b/homeassistant/components/overkiz/cover_entities/generic_cover.py @@ -1,4 +1,5 @@ """Base class for Overkiz covers, shutters, awnings, etc.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/cover_entities/vertical_cover.py b/homeassistant/components/overkiz/cover_entities/vertical_cover.py index 2bc6f73103fe..48ac2c838c53 100644 --- a/homeassistant/components/overkiz/cover_entities/vertical_cover.py +++ b/homeassistant/components/overkiz/cover_entities/vertical_cover.py @@ -1,4 +1,5 @@ """Support for Overkiz Vertical Covers.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/diagnostics.py b/homeassistant/components/overkiz/diagnostics.py index cb8cf6eb22f4..427230b9c82d 100644 --- a/homeassistant/components/overkiz/diagnostics.py +++ b/homeassistant/components/overkiz/diagnostics.py @@ -1,4 +1,5 @@ """Provides diagnostics for Overkiz.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/entity.py b/homeassistant/components/overkiz/entity.py index 3c0170e543fa..c13b2fc96ba7 100644 --- a/homeassistant/components/overkiz/entity.py +++ b/homeassistant/components/overkiz/entity.py @@ -1,4 +1,5 @@ """Parent class for every Overkiz device.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/overkiz/executor.py b/homeassistant/components/overkiz/executor.py index af29dbaf5235..e11dc59cc27e 100644 --- a/homeassistant/components/overkiz/executor.py +++ b/homeassistant/components/overkiz/executor.py @@ -1,4 +1,5 @@ """Class for helpers and communication with the OverKiz API.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/light.py b/homeassistant/components/overkiz/light.py index bb06b645d24b..18d724dd63aa 100644 --- a/homeassistant/components/overkiz/light.py +++ b/homeassistant/components/overkiz/light.py @@ -1,4 +1,5 @@ """Support for Overkiz lights.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/lock.py b/homeassistant/components/overkiz/lock.py index 8a333652b75f..2494903d0760 100644 --- a/homeassistant/components/overkiz/lock.py +++ b/homeassistant/components/overkiz/lock.py @@ -1,4 +1,5 @@ """Support for Overkiz locks.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/number.py b/homeassistant/components/overkiz/number.py index b53dbb5db759..1842a6cfcd2a 100644 --- a/homeassistant/components/overkiz/number.py +++ b/homeassistant/components/overkiz/number.py @@ -1,4 +1,5 @@ """Support for Overkiz (virtual) numbers.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/overkiz/scene.py b/homeassistant/components/overkiz/scene.py index 464b19d87e62..8cbbb9dbe5dc 100644 --- a/homeassistant/components/overkiz/scene.py +++ b/homeassistant/components/overkiz/scene.py @@ -1,4 +1,5 @@ """Support for Overkiz scenes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/overkiz/select.py b/homeassistant/components/overkiz/select.py index c225d475f63a..78bcb3b3e0ad 100644 --- a/homeassistant/components/overkiz/select.py +++ b/homeassistant/components/overkiz/select.py @@ -1,4 +1,5 @@ """Support for Overkiz select.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/overkiz/sensor.py b/homeassistant/components/overkiz/sensor.py index 3f1de4c381ee..b8693784395b 100644 --- a/homeassistant/components/overkiz/sensor.py +++ b/homeassistant/components/overkiz/sensor.py @@ -1,4 +1,5 @@ """Support for Overkiz sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/overkiz/siren.py b/homeassistant/components/overkiz/siren.py index f60eb04cfd36..a7ba41e2fef9 100644 --- a/homeassistant/components/overkiz/siren.py +++ b/homeassistant/components/overkiz/siren.py @@ -1,4 +1,5 @@ """Support for Overkiz sirens.""" + from typing import Any from pyoverkiz.enums import OverkizState diff --git a/homeassistant/components/overkiz/switch.py b/homeassistant/components/overkiz/switch.py index 0396e385a3cf..185c20824eba 100644 --- a/homeassistant/components/overkiz/switch.py +++ b/homeassistant/components/overkiz/switch.py @@ -1,4 +1,5 @@ """Support for Overkiz switches.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/overkiz/water_heater.py b/homeassistant/components/overkiz/water_heater.py index e22f442c2662..c76f6d5099fc 100644 --- a/homeassistant/components/overkiz/water_heater.py +++ b/homeassistant/components/overkiz/water_heater.py @@ -1,4 +1,5 @@ """Support for Overkiz water heater devices.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/overkiz/water_heater_entities/__init__.py b/homeassistant/components/overkiz/water_heater_entities/__init__.py index 71b66f6ea934..6f6539ef6598 100644 --- a/homeassistant/components/overkiz/water_heater_entities/__init__.py +++ b/homeassistant/components/overkiz/water_heater_entities/__init__.py @@ -1,4 +1,5 @@ """Water heater entities for the Overkiz (by Somfy) integration.""" + from pyoverkiz.enums.ui import UIWidget from .atlantic_pass_apc_dhw import AtlanticPassAPCDHW diff --git a/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py b/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py index 2285e2dc3d2b..abd3f40adc2f 100644 --- a/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py +++ b/homeassistant/components/overkiz/water_heater_entities/domestic_hot_water_production.py @@ -1,4 +1,5 @@ """Support for DomesticHotWaterProduction.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py b/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py index 0dd5b70feb6c..9f0a87982338 100644 --- a/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py +++ b/homeassistant/components/overkiz/water_heater_entities/hitachi_dhw.py @@ -1,4 +1,5 @@ """Support for Hitachi DHW.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/ovo_energy/__init__.py b/homeassistant/components/ovo_energy/__init__.py index 3e2e868728d9..6ad39ad82cb8 100644 --- a/homeassistant/components/ovo_energy/__init__.py +++ b/homeassistant/components/ovo_energy/__init__.py @@ -1,4 +1,5 @@ """Support for OVO Energy.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/ovo_energy/config_flow.py b/homeassistant/components/ovo_energy/config_flow.py index 8070dfaac6ec..41c649137641 100644 --- a/homeassistant/components/ovo_energy/config_flow.py +++ b/homeassistant/components/ovo_energy/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the OVO Energy integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/ovo_energy/sensor.py b/homeassistant/components/ovo_energy/sensor.py index 059ced8477ef..76c084b368f4 100644 --- a/homeassistant/components/ovo_energy/sensor.py +++ b/homeassistant/components/ovo_energy/sensor.py @@ -1,4 +1,5 @@ """Support for OVO Energy sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/owntracks/__init__.py b/homeassistant/components/owntracks/__init__.py index 1b3d67ce7b4c..dbc4df293c03 100644 --- a/homeassistant/components/owntracks/__init__.py +++ b/homeassistant/components/owntracks/__init__.py @@ -1,4 +1,5 @@ """Support for OwnTracks.""" + from collections import defaultdict import json import logging diff --git a/homeassistant/components/owntracks/device_tracker.py b/homeassistant/components/owntracks/device_tracker.py index e2053868cb94..8471f734196f 100644 --- a/homeassistant/components/owntracks/device_tracker.py +++ b/homeassistant/components/owntracks/device_tracker.py @@ -1,4 +1,5 @@ """Device tracker platform that adds support for OwnTracks over MQTT.""" + from homeassistant.components.device_tracker import ( ATTR_SOURCE_TYPE, DOMAIN, diff --git a/homeassistant/components/p1_monitor/__init__.py b/homeassistant/components/p1_monitor/__init__.py index 18c58525097d..201e76d4a763 100644 --- a/homeassistant/components/p1_monitor/__init__.py +++ b/homeassistant/components/p1_monitor/__init__.py @@ -1,4 +1,5 @@ """The P1 Monitor integration.""" + from __future__ import annotations from typing import TypedDict diff --git a/homeassistant/components/p1_monitor/config_flow.py b/homeassistant/components/p1_monitor/config_flow.py index 230cd57d614f..9c039d06b941 100644 --- a/homeassistant/components/p1_monitor/config_flow.py +++ b/homeassistant/components/p1_monitor/config_flow.py @@ -1,4 +1,5 @@ """Config flow for P1 Monitor integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/p1_monitor/const.py b/homeassistant/components/p1_monitor/const.py index 045301d38c42..297a06a96291 100644 --- a/homeassistant/components/p1_monitor/const.py +++ b/homeassistant/components/p1_monitor/const.py @@ -1,4 +1,5 @@ """Constants for the P1 Monitor integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/p1_monitor/diagnostics.py b/homeassistant/components/p1_monitor/diagnostics.py index b2668f060a44..b1b3bd2a506c 100644 --- a/homeassistant/components/p1_monitor/diagnostics.py +++ b/homeassistant/components/p1_monitor/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for P1 Monitor.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/p1_monitor/sensor.py b/homeassistant/components/p1_monitor/sensor.py index 4108194aced3..b97383bdae5f 100644 --- a/homeassistant/components/p1_monitor/sensor.py +++ b/homeassistant/components/p1_monitor/sensor.py @@ -1,4 +1,5 @@ """Support for P1 Monitor sensors.""" + from __future__ import annotations from typing import Literal diff --git a/homeassistant/components/panasonic_bluray/media_player.py b/homeassistant/components/panasonic_bluray/media_player.py index ae017e7d72ca..a121da93486f 100644 --- a/homeassistant/components/panasonic_bluray/media_player.py +++ b/homeassistant/components/panasonic_bluray/media_player.py @@ -1,4 +1,5 @@ """Support for Panasonic Blu-ray players.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/panasonic_viera/__init__.py b/homeassistant/components/panasonic_viera/__init__.py index 6504aad7509b..7d224c7126f6 100644 --- a/homeassistant/components/panasonic_viera/__init__.py +++ b/homeassistant/components/panasonic_viera/__init__.py @@ -1,4 +1,5 @@ """The Panasonic Viera integration.""" + from functools import partial import logging from urllib.error import HTTPError, URLError diff --git a/homeassistant/components/panasonic_viera/config_flow.py b/homeassistant/components/panasonic_viera/config_flow.py index 35719f4cbfde..c06de119244e 100644 --- a/homeassistant/components/panasonic_viera/config_flow.py +++ b/homeassistant/components/panasonic_viera/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Panasonic Viera TV integration.""" + from functools import partial import logging from urllib.error import URLError diff --git a/homeassistant/components/panasonic_viera/media_player.py b/homeassistant/components/panasonic_viera/media_player.py index 9e7fe4168ab3..440630221293 100644 --- a/homeassistant/components/panasonic_viera/media_player.py +++ b/homeassistant/components/panasonic_viera/media_player.py @@ -1,4 +1,5 @@ """Media player support for Panasonic Viera TV.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/panasonic_viera/remote.py b/homeassistant/components/panasonic_viera/remote.py index b0512ededce4..c47dce36306e 100644 --- a/homeassistant/components/panasonic_viera/remote.py +++ b/homeassistant/components/panasonic_viera/remote.py @@ -1,4 +1,5 @@ """Remote control support for Panasonic Viera TV.""" + from __future__ import annotations from collections.abc import Iterable diff --git a/homeassistant/components/pandora/media_player.py b/homeassistant/components/pandora/media_player.py index 7b09f40c3f16..eb6815959c2e 100644 --- a/homeassistant/components/pandora/media_player.py +++ b/homeassistant/components/pandora/media_player.py @@ -1,4 +1,5 @@ """Component for controlling Pandora stations through the pianobar client.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/panel_custom/__init__.py b/homeassistant/components/panel_custom/__init__.py index 4f084d5900ac..89ad6066f48c 100644 --- a/homeassistant/components/panel_custom/__init__.py +++ b/homeassistant/components/panel_custom/__init__.py @@ -1,4 +1,5 @@ """Register a custom front end panel.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/peco/__init__.py b/homeassistant/components/peco/__init__.py index 52e988f0f608..168b045ff4d6 100644 --- a/homeassistant/components/peco/__init__.py +++ b/homeassistant/components/peco/__init__.py @@ -1,4 +1,5 @@ """The PECO Outage Counter integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/peco/binary_sensor.py b/homeassistant/components/peco/binary_sensor.py index 7f0402b207f8..a55f0fcc7314 100644 --- a/homeassistant/components/peco/binary_sensor.py +++ b/homeassistant/components/peco/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensor for PECO outage counter.""" + from __future__ import annotations from typing import Final diff --git a/homeassistant/components/peco/config_flow.py b/homeassistant/components/peco/config_flow.py index 6fd4bfc0fe44..a5e8f4451fd4 100644 --- a/homeassistant/components/peco/config_flow.py +++ b/homeassistant/components/peco/config_flow.py @@ -1,4 +1,5 @@ """Config flow for PECO Outage Counter integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/peco/sensor.py b/homeassistant/components/peco/sensor.py index ed6540b9eb1f..60a3a07212df 100644 --- a/homeassistant/components/peco/sensor.py +++ b/homeassistant/components/peco/sensor.py @@ -1,4 +1,5 @@ """Sensor component for PECO outage counter.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/pegel_online/__init__.py b/homeassistant/components/pegel_online/__init__.py index e9e0e9d6aae3..38b952293e07 100644 --- a/homeassistant/components/pegel_online/__init__.py +++ b/homeassistant/components/pegel_online/__init__.py @@ -1,4 +1,5 @@ """The PEGELONLINE component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pegel_online/config_flow.py b/homeassistant/components/pegel_online/config_flow.py index b0ce4cc3f382..440d1fbddf9e 100644 --- a/homeassistant/components/pegel_online/config_flow.py +++ b/homeassistant/components/pegel_online/config_flow.py @@ -1,4 +1,5 @@ """Config flow for PEGELONLINE.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pegel_online/const.py b/homeassistant/components/pegel_online/const.py index 1e6c26a057b9..ae7ef1f032a8 100644 --- a/homeassistant/components/pegel_online/const.py +++ b/homeassistant/components/pegel_online/const.py @@ -1,4 +1,5 @@ """Constants for PEGELONLINE.""" + from datetime import timedelta DOMAIN = "pegel_online" diff --git a/homeassistant/components/pegel_online/entity.py b/homeassistant/components/pegel_online/entity.py index e9c4ebdb909f..4ad12f129130 100644 --- a/homeassistant/components/pegel_online/entity.py +++ b/homeassistant/components/pegel_online/entity.py @@ -1,4 +1,5 @@ """The PEGELONLINE base entity.""" + from __future__ import annotations from homeassistant.helpers.device_registry import DeviceInfo diff --git a/homeassistant/components/pegel_online/sensor.py b/homeassistant/components/pegel_online/sensor.py index 657baf29c9f3..b2b922f3d233 100644 --- a/homeassistant/components/pegel_online/sensor.py +++ b/homeassistant/components/pegel_online/sensor.py @@ -1,4 +1,5 @@ """PEGELONLINE sensor entities.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/pencom/switch.py b/homeassistant/components/pencom/switch.py index 064ac43e6b83..a1ec25a58e9d 100644 --- a/homeassistant/components/pencom/switch.py +++ b/homeassistant/components/pencom/switch.py @@ -1,4 +1,5 @@ """Pencom relay control.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/permobil/__init__.py b/homeassistant/components/permobil/__init__.py index 180252208522..675a803ce91a 100644 --- a/homeassistant/components/permobil/__init__.py +++ b/homeassistant/components/permobil/__init__.py @@ -1,4 +1,5 @@ """The MyPermobil integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/permobil/binary_sensor.py b/homeassistant/components/permobil/binary_sensor.py index afa17bde04f2..4b768cf5af51 100644 --- a/homeassistant/components/permobil/binary_sensor.py +++ b/homeassistant/components/permobil/binary_sensor.py @@ -1,4 +1,5 @@ """Platform for binary sensor integration.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/permobil/config_flow.py b/homeassistant/components/permobil/config_flow.py index d70365a9ca14..cb47640e55f7 100644 --- a/homeassistant/components/permobil/config_flow.py +++ b/homeassistant/components/permobil/config_flow.py @@ -1,4 +1,5 @@ """Config flow for MyPermobil integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/permobil/sensor.py b/homeassistant/components/permobil/sensor.py index 6b783f3a385e..ce9cf906f37e 100644 --- a/homeassistant/components/permobil/sensor.py +++ b/homeassistant/components/permobil/sensor.py @@ -1,4 +1,5 @@ """Platform for sensor integration.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/persistent_notification/__init__.py b/homeassistant/components/persistent_notification/__init__.py index 6d6fb7bfbd63..25e5385cc0d5 100644 --- a/homeassistant/components/persistent_notification/__init__.py +++ b/homeassistant/components/persistent_notification/__init__.py @@ -1,4 +1,5 @@ """Support for displaying persistent notifications.""" + from __future__ import annotations from collections.abc import Callable, Mapping diff --git a/homeassistant/components/persistent_notification/trigger.py b/homeassistant/components/persistent_notification/trigger.py index 4c9c2bd9204f..431443d9139e 100644 --- a/homeassistant/components/persistent_notification/trigger.py +++ b/homeassistant/components/persistent_notification/trigger.py @@ -1,4 +1,5 @@ """Offer persistent_notifications triggered automation rules.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/person/__init__.py b/homeassistant/components/person/__init__.py index 2075c3fc7139..b2511a3cf303 100644 --- a/homeassistant/components/person/__init__.py +++ b/homeassistant/components/person/__init__.py @@ -1,4 +1,5 @@ """Support for tracking people.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/person/significant_change.py b/homeassistant/components/person/significant_change.py index 680b9194144a..c6720bcc4ff3 100644 --- a/homeassistant/components/person/significant_change.py +++ b/homeassistant/components/person/significant_change.py @@ -1,4 +1,5 @@ """Helper to test significant Person state changes.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/philips_js/__init__.py b/homeassistant/components/philips_js/__init__.py index c8540a187da2..e56d1cdc651f 100644 --- a/homeassistant/components/philips_js/__init__.py +++ b/homeassistant/components/philips_js/__init__.py @@ -1,4 +1,5 @@ """The Philips TV integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/philips_js/binary_sensor.py b/homeassistant/components/philips_js/binary_sensor.py index 678ba9d98f16..d1004cfd00bc 100644 --- a/homeassistant/components/philips_js/binary_sensor.py +++ b/homeassistant/components/philips_js/binary_sensor.py @@ -1,4 +1,5 @@ """Philips TV binary sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/philips_js/config_flow.py b/homeassistant/components/philips_js/config_flow.py index fd308427ef47..ed0fce05f46d 100644 --- a/homeassistant/components/philips_js/config_flow.py +++ b/homeassistant/components/philips_js/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Philips TV integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/philips_js/device_trigger.py b/homeassistant/components/philips_js/device_trigger.py index bdf47674bc84..4c2ec9b95db8 100644 --- a/homeassistant/components/philips_js/device_trigger.py +++ b/homeassistant/components/philips_js/device_trigger.py @@ -1,4 +1,5 @@ """Provides device automations for control of device.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/philips_js/diagnostics.py b/homeassistant/components/philips_js/diagnostics.py index 889b8e47e3f2..34cc71c9b947 100644 --- a/homeassistant/components/philips_js/diagnostics.py +++ b/homeassistant/components/philips_js/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Philips JS.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/philips_js/entity.py b/homeassistant/components/philips_js/entity.py index c2645974f490..e0d97f940d08 100644 --- a/homeassistant/components/philips_js/entity.py +++ b/homeassistant/components/philips_js/entity.py @@ -1,4 +1,5 @@ """Base Philips js entity.""" + from __future__ import annotations from homeassistant.helpers.update_coordinator import CoordinatorEntity diff --git a/homeassistant/components/philips_js/light.py b/homeassistant/components/philips_js/light.py index 7803938cf7e0..6a91b8729130 100644 --- a/homeassistant/components/philips_js/light.py +++ b/homeassistant/components/philips_js/light.py @@ -1,4 +1,5 @@ """Component to integrate ambilight for TVs exposing the Joint Space API.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/philips_js/media_player.py b/homeassistant/components/philips_js/media_player.py index 6ee70b03d54b..c8b89d578542 100644 --- a/homeassistant/components/philips_js/media_player.py +++ b/homeassistant/components/philips_js/media_player.py @@ -1,4 +1,5 @@ """Media Player component to integrate TVs exposing the Joint Space API.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/philips_js/remote.py b/homeassistant/components/philips_js/remote.py index c5b240898097..5972724c54b5 100644 --- a/homeassistant/components/philips_js/remote.py +++ b/homeassistant/components/philips_js/remote.py @@ -1,4 +1,5 @@ """Remote control support for Apple TV.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/philips_js/switch.py b/homeassistant/components/philips_js/switch.py index 71548c8238e4..697e7f2f0601 100644 --- a/homeassistant/components/philips_js/switch.py +++ b/homeassistant/components/philips_js/switch.py @@ -1,4 +1,5 @@ """Philips TV menu switches.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pi_hole/__init__.py b/homeassistant/components/pi_hole/__init__.py index c57b969ce9c7..f892114b26c2 100644 --- a/homeassistant/components/pi_hole/__init__.py +++ b/homeassistant/components/pi_hole/__init__.py @@ -1,4 +1,5 @@ """The pi_hole component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pi_hole/binary_sensor.py b/homeassistant/components/pi_hole/binary_sensor.py index 42a52d076564..4c49cf3a98d7 100644 --- a/homeassistant/components/pi_hole/binary_sensor.py +++ b/homeassistant/components/pi_hole/binary_sensor.py @@ -1,4 +1,5 @@ """Support for getting status from a Pi-hole system.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/pi_hole/config_flow.py b/homeassistant/components/pi_hole/config_flow.py index 446191ed0aee..d6f42d57debf 100644 --- a/homeassistant/components/pi_hole/config_flow.py +++ b/homeassistant/components/pi_hole/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the Pi-hole integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pi_hole/const.py b/homeassistant/components/pi_hole/const.py index 0114a6621b54..b6c97bc61185 100644 --- a/homeassistant/components/pi_hole/const.py +++ b/homeassistant/components/pi_hole/const.py @@ -1,4 +1,5 @@ """Constants for the pi_hole integration.""" + from datetime import timedelta DOMAIN = "pi_hole" diff --git a/homeassistant/components/pi_hole/diagnostics.py b/homeassistant/components/pi_hole/diagnostics.py index 8b3c32b0ac24..46efebaf475f 100644 --- a/homeassistant/components/pi_hole/diagnostics.py +++ b/homeassistant/components/pi_hole/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for the Pi-hole integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pi_hole/sensor.py b/homeassistant/components/pi_hole/sensor.py index 9584c23af380..a62252d10c13 100644 --- a/homeassistant/components/pi_hole/sensor.py +++ b/homeassistant/components/pi_hole/sensor.py @@ -1,4 +1,5 @@ """Support for getting statistical data from a Pi-hole system.""" + from __future__ import annotations from hole import Hole diff --git a/homeassistant/components/pi_hole/switch.py b/homeassistant/components/pi_hole/switch.py index dc699beb26b1..963ee7c9738d 100644 --- a/homeassistant/components/pi_hole/switch.py +++ b/homeassistant/components/pi_hole/switch.py @@ -1,4 +1,5 @@ """Support for turning on and off Pi-hole system.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pi_hole/update.py b/homeassistant/components/pi_hole/update.py index b559a1cf8063..75d4f91f2be2 100644 --- a/homeassistant/components/pi_hole/update.py +++ b/homeassistant/components/pi_hole/update.py @@ -1,4 +1,5 @@ """Support for update entities of a Pi-hole system.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/picnic/config_flow.py b/homeassistant/components/picnic/config_flow.py index f28b4dfed4d8..1900f39306dc 100644 --- a/homeassistant/components/picnic/config_flow.py +++ b/homeassistant/components/picnic/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Picnic integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/picnic/const.py b/homeassistant/components/picnic/const.py index 851df6f41b25..4e8eafd8912f 100644 --- a/homeassistant/components/picnic/const.py +++ b/homeassistant/components/picnic/const.py @@ -1,4 +1,5 @@ """Constants for the Picnic integration.""" + from __future__ import annotations DOMAIN = "picnic" diff --git a/homeassistant/components/picnic/sensor.py b/homeassistant/components/picnic/sensor.py index 56d2d22cf29e..9127d82ba8fb 100644 --- a/homeassistant/components/picnic/sensor.py +++ b/homeassistant/components/picnic/sensor.py @@ -1,4 +1,5 @@ """Definition of Picnic sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/picnic/services.py b/homeassistant/components/picnic/services.py index 03b7576703d6..f820daee54b9 100644 --- a/homeassistant/components/picnic/services.py +++ b/homeassistant/components/picnic/services.py @@ -1,4 +1,5 @@ """Services for the Picnic integration.""" + from __future__ import annotations from typing import cast diff --git a/homeassistant/components/picnic/todo.py b/homeassistant/components/picnic/todo.py index fea99f7403dd..2992c0161482 100644 --- a/homeassistant/components/picnic/todo.py +++ b/homeassistant/components/picnic/todo.py @@ -1,4 +1,5 @@ """Definition of Picnic shopping cart.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pilight/__init__.py b/homeassistant/components/pilight/__init__.py index f4d2e539b6a4..1f1eee0c92ab 100644 --- a/homeassistant/components/pilight/__init__.py +++ b/homeassistant/components/pilight/__init__.py @@ -1,4 +1,5 @@ """Component to create an interface to a Pilight daemon.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/pilight/binary_sensor.py b/homeassistant/components/pilight/binary_sensor.py index 303c755a035f..0ddb2de4603e 100644 --- a/homeassistant/components/pilight/binary_sensor.py +++ b/homeassistant/components/pilight/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Pilight binary sensors.""" + from __future__ import annotations import datetime diff --git a/homeassistant/components/pilight/light.py b/homeassistant/components/pilight/light.py index bcb2197db195..60713b594750 100644 --- a/homeassistant/components/pilight/light.py +++ b/homeassistant/components/pilight/light.py @@ -1,4 +1,5 @@ """Support for switching devices via Pilight to on and off.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pilight/sensor.py b/homeassistant/components/pilight/sensor.py index 21036a942105..003e3428bddc 100644 --- a/homeassistant/components/pilight/sensor.py +++ b/homeassistant/components/pilight/sensor.py @@ -1,4 +1,5 @@ """Support for Pilight sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pilight/switch.py b/homeassistant/components/pilight/switch.py index 75d286afad29..0d0023d9cd62 100644 --- a/homeassistant/components/pilight/switch.py +++ b/homeassistant/components/pilight/switch.py @@ -1,4 +1,5 @@ """Support for switching devices via Pilight to on and off.""" + from __future__ import annotations import voluptuous as vol diff --git a/homeassistant/components/ping/__init__.py b/homeassistant/components/ping/__init__.py index 9aaf8ffbd995..e75b36dc38d1 100644 --- a/homeassistant/components/ping/__init__.py +++ b/homeassistant/components/ping/__init__.py @@ -1,4 +1,5 @@ """The ping component.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/ping/binary_sensor.py b/homeassistant/components/ping/binary_sensor.py index 5c1435cc3b14..35d4e218dcef 100644 --- a/homeassistant/components/ping/binary_sensor.py +++ b/homeassistant/components/ping/binary_sensor.py @@ -1,4 +1,5 @@ """Tracks the latency of a host by sending ICMP echo requests (ping).""" + from __future__ import annotations import logging diff --git a/homeassistant/components/ping/config_flow.py b/homeassistant/components/ping/config_flow.py index 4163f710f2ef..52600c379c40 100644 --- a/homeassistant/components/ping/config_flow.py +++ b/homeassistant/components/ping/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Ping (ICMP) integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/ping/coordinator.py b/homeassistant/components/ping/coordinator.py index 57e212ed69da..38ab2e79ffc5 100644 --- a/homeassistant/components/ping/coordinator.py +++ b/homeassistant/components/ping/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the ping integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/ping/device_tracker.py b/homeassistant/components/ping/device_tracker.py index 6b904043b302..b202c1c406e5 100644 --- a/homeassistant/components/ping/device_tracker.py +++ b/homeassistant/components/ping/device_tracker.py @@ -1,4 +1,5 @@ """Tracks devices by sending a ICMP echo request (ping).""" + from __future__ import annotations from datetime import datetime, timedelta diff --git a/homeassistant/components/ping/entity.py b/homeassistant/components/ping/entity.py index 8854634e898d..34207b284bbc 100644 --- a/homeassistant/components/ping/entity.py +++ b/homeassistant/components/ping/entity.py @@ -1,4 +1,5 @@ """Base entity for the Ping component.""" + from homeassistant.config_entries import ConfigEntry from homeassistant.core import DOMAIN from homeassistant.helpers.device_registry import DeviceInfo diff --git a/homeassistant/components/ping/sensor.py b/homeassistant/components/ping/sensor.py index f5e5de81aac6..135087f4b5bb 100644 --- a/homeassistant/components/ping/sensor.py +++ b/homeassistant/components/ping/sensor.py @@ -1,4 +1,5 @@ """Sensor platform that for Ping integration.""" + from collections.abc import Callable from dataclasses import dataclass diff --git a/homeassistant/components/pioneer/media_player.py b/homeassistant/components/pioneer/media_player.py index 741d2b580e4b..15cd3cbf303a 100644 --- a/homeassistant/components/pioneer/media_player.py +++ b/homeassistant/components/pioneer/media_player.py @@ -1,4 +1,5 @@ """Support for Pioneer Network Receivers.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pjlink/media_player.py b/homeassistant/components/pjlink/media_player.py index 1a7ff877bb8f..ff3be3266a07 100644 --- a/homeassistant/components/pjlink/media_player.py +++ b/homeassistant/components/pjlink/media_player.py @@ -1,4 +1,5 @@ """Support for controlling projector via the PJLink protocol.""" + from __future__ import annotations from pypjlink import MUTE_AUDIO, Projector diff --git a/homeassistant/components/plaato/__init__.py b/homeassistant/components/plaato/__init__.py index 69c653831380..0d8678d95ef0 100644 --- a/homeassistant/components/plaato/__init__.py +++ b/homeassistant/components/plaato/__init__.py @@ -1,4 +1,5 @@ """Support for Plaato devices.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/plaato/binary_sensor.py b/homeassistant/components/plaato/binary_sensor.py index e8fbaa5d6f15..42019bbec9b9 100644 --- a/homeassistant/components/plaato/binary_sensor.py +++ b/homeassistant/components/plaato/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Plaato Airlock sensors.""" + from __future__ import annotations from pyplaato.plaato import PlaatoKeg diff --git a/homeassistant/components/plaato/config_flow.py b/homeassistant/components/plaato/config_flow.py index df99f6041462..1240abc5e814 100644 --- a/homeassistant/components/plaato/config_flow.py +++ b/homeassistant/components/plaato/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Plaato.""" + from __future__ import annotations from pyplaato.plaato import PlaatoDeviceType diff --git a/homeassistant/components/plaato/const.py b/homeassistant/components/plaato/const.py index 6825baff9064..73382765bfe7 100644 --- a/homeassistant/components/plaato/const.py +++ b/homeassistant/components/plaato/const.py @@ -1,4 +1,5 @@ """Const for Plaato.""" + from datetime import timedelta from homeassistant.const import Platform diff --git a/homeassistant/components/plaato/entity.py b/homeassistant/components/plaato/entity.py index b7650567c2bb..d4c4622a9987 100644 --- a/homeassistant/components/plaato/entity.py +++ b/homeassistant/components/plaato/entity.py @@ -1,4 +1,5 @@ """PlaatoEntity class.""" + from pyplaato.models.device import PlaatoDevice from homeassistant.helpers import entity diff --git a/homeassistant/components/plaato/sensor.py b/homeassistant/components/plaato/sensor.py index f3d9a5c3e411..7aa30dd2fe07 100644 --- a/homeassistant/components/plaato/sensor.py +++ b/homeassistant/components/plaato/sensor.py @@ -1,4 +1,5 @@ """Support for Plaato Airlock sensors.""" + from __future__ import annotations from pyplaato.models.device import PlaatoDevice diff --git a/homeassistant/components/plant/__init__.py b/homeassistant/components/plant/__init__.py index 28cdece0b02a..5d79f8d303ab 100644 --- a/homeassistant/components/plant/__init__.py +++ b/homeassistant/components/plant/__init__.py @@ -1,4 +1,5 @@ """Support for monitoring plants.""" + from collections import deque from contextlib import suppress from datetime import datetime, timedelta diff --git a/homeassistant/components/plant/const.py b/homeassistant/components/plant/const.py index 0368c55e1525..656705b3d120 100644 --- a/homeassistant/components/plant/const.py +++ b/homeassistant/components/plant/const.py @@ -1,4 +1,5 @@ """Const for Plant.""" + from typing import Final DOMAIN: Final = "plant" diff --git a/homeassistant/components/plex/__init__.py b/homeassistant/components/plex/__init__.py index 4ce5a359dcdb..4e17e4032aa2 100644 --- a/homeassistant/components/plex/__init__.py +++ b/homeassistant/components/plex/__init__.py @@ -1,4 +1,5 @@ """Support to embed Plex.""" + from functools import partial import logging diff --git a/homeassistant/components/plex/button.py b/homeassistant/components/plex/button.py index 24bc09bac42c..8bb34be38ce5 100644 --- a/homeassistant/components/plex/button.py +++ b/homeassistant/components/plex/button.py @@ -1,4 +1,5 @@ """Representation of Plex buttons.""" + from __future__ import annotations from homeassistant.components.button import ButtonEntity diff --git a/homeassistant/components/plex/cast.py b/homeassistant/components/plex/cast.py index 7dc112b72de7..bf68be202929 100644 --- a/homeassistant/components/plex/cast.py +++ b/homeassistant/components/plex/cast.py @@ -1,4 +1,5 @@ """Google Cast support for the Plex component.""" + from __future__ import annotations from pychromecast import Chromecast diff --git a/homeassistant/components/plex/config_flow.py b/homeassistant/components/plex/config_flow.py index 1bc72b9e639d..301716e14d5e 100644 --- a/homeassistant/components/plex/config_flow.py +++ b/homeassistant/components/plex/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Plex.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/plex/const.py b/homeassistant/components/plex/const.py index 30b59c739946..8dc75a447af9 100644 --- a/homeassistant/components/plex/const.py +++ b/homeassistant/components/plex/const.py @@ -1,4 +1,5 @@ """Constants for the Plex component.""" + from datetime import timedelta from typing import Final diff --git a/homeassistant/components/plex/errors.py b/homeassistant/components/plex/errors.py index ddbc1a2ea400..c1e1a186b9ea 100644 --- a/homeassistant/components/plex/errors.py +++ b/homeassistant/components/plex/errors.py @@ -1,4 +1,5 @@ """Errors for the Plex component.""" + from homeassistant.exceptions import HomeAssistantError diff --git a/homeassistant/components/plex/helpers.py b/homeassistant/components/plex/helpers.py index 6a334c5ff611..f51350ac597c 100644 --- a/homeassistant/components/plex/helpers.py +++ b/homeassistant/components/plex/helpers.py @@ -1,4 +1,5 @@ """Helper methods for common Plex integration operations.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/plex/media_browser.py b/homeassistant/components/plex/media_browser.py index d3a0cc0fb2e7..e5bbb9284ff4 100644 --- a/homeassistant/components/plex/media_browser.py +++ b/homeassistant/components/plex/media_browser.py @@ -1,4 +1,5 @@ """Support to interface with the Plex API.""" + from __future__ import annotations from yarl import URL diff --git a/homeassistant/components/plex/media_player.py b/homeassistant/components/plex/media_player.py index 3e817b4ea1a5..21e52171fe85 100644 --- a/homeassistant/components/plex/media_player.py +++ b/homeassistant/components/plex/media_player.py @@ -1,4 +1,5 @@ """Support to interface with the Plex API.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/plex/media_search.py b/homeassistant/components/plex/media_search.py index a853bac33a57..bd785a089076 100644 --- a/homeassistant/components/plex/media_search.py +++ b/homeassistant/components/plex/media_search.py @@ -1,4 +1,5 @@ """Helper methods to search for Plex media.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/plex/sensor.py b/homeassistant/components/plex/sensor.py index 350e0a2dce2c..74fab3b1714a 100644 --- a/homeassistant/components/plex/sensor.py +++ b/homeassistant/components/plex/sensor.py @@ -1,4 +1,5 @@ """Support for Plex media server monitoring.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/plex/server.py b/homeassistant/components/plex/server.py index 1c3c944c9c4e..bd2aa7063dd5 100644 --- a/homeassistant/components/plex/server.py +++ b/homeassistant/components/plex/server.py @@ -1,4 +1,5 @@ """Shared class to maintain Plex server instances.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/plex/view.py b/homeassistant/components/plex/view.py index 49c0af1c48e3..c1254a9795ad 100644 --- a/homeassistant/components/plex/view.py +++ b/homeassistant/components/plex/view.py @@ -1,4 +1,5 @@ """Implement a view to provide proxied Plex thumbnails to the media browser.""" + from __future__ import annotations from http import HTTPStatus diff --git a/homeassistant/components/plugwise/__init__.py b/homeassistant/components/plugwise/__init__.py index bfae7772b93e..28389ffa357f 100644 --- a/homeassistant/components/plugwise/__init__.py +++ b/homeassistant/components/plugwise/__init__.py @@ -1,4 +1,5 @@ """Plugwise platform for Home Assistant Core.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/plugwise/binary_sensor.py b/homeassistant/components/plugwise/binary_sensor.py index c362652cf479..d32ae94160f7 100644 --- a/homeassistant/components/plugwise/binary_sensor.py +++ b/homeassistant/components/plugwise/binary_sensor.py @@ -1,4 +1,5 @@ """Plugwise Binary Sensor component for Home Assistant.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/plugwise/climate.py b/homeassistant/components/plugwise/climate.py index 3553df02e8dc..7820c86a242a 100644 --- a/homeassistant/components/plugwise/climate.py +++ b/homeassistant/components/plugwise/climate.py @@ -1,4 +1,5 @@ """Plugwise Climate component for Home Assistant.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/plugwise/config_flow.py b/homeassistant/components/plugwise/config_flow.py index 48a932ad4662..4c33e51788f6 100644 --- a/homeassistant/components/plugwise/config_flow.py +++ b/homeassistant/components/plugwise/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Plugwise integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/plugwise/const.py b/homeassistant/components/plugwise/const.py index cad891f16f24..975ddae346ae 100644 --- a/homeassistant/components/plugwise/const.py +++ b/homeassistant/components/plugwise/const.py @@ -1,4 +1,5 @@ """Constants for Plugwise component.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/plugwise/coordinator.py b/homeassistant/components/plugwise/coordinator.py index 395ec4e6e63f..15a0e8c48219 100644 --- a/homeassistant/components/plugwise/coordinator.py +++ b/homeassistant/components/plugwise/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for Plugwise.""" + from datetime import timedelta from plugwise import PlugwiseData, Smile diff --git a/homeassistant/components/plugwise/diagnostics.py b/homeassistant/components/plugwise/diagnostics.py index ef54efbe96d9..44c0fa9a1daa 100644 --- a/homeassistant/components/plugwise/diagnostics.py +++ b/homeassistant/components/plugwise/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Plugwise.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/plugwise/entity.py b/homeassistant/components/plugwise/entity.py index 1c9149fad72d..b2562ef8f396 100644 --- a/homeassistant/components/plugwise/entity.py +++ b/homeassistant/components/plugwise/entity.py @@ -1,4 +1,5 @@ """Generic Plugwise Entity Class.""" + from __future__ import annotations from plugwise.constants import DeviceData diff --git a/homeassistant/components/plugwise/number.py b/homeassistant/components/plugwise/number.py index c71b52cf5c8e..95d09bd845e0 100644 --- a/homeassistant/components/plugwise/number.py +++ b/homeassistant/components/plugwise/number.py @@ -1,4 +1,5 @@ """Number platform for Plugwise integration.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/plugwise/select.py b/homeassistant/components/plugwise/select.py index ff5eb3af4a5d..21b0794a1e3f 100644 --- a/homeassistant/components/plugwise/select.py +++ b/homeassistant/components/plugwise/select.py @@ -1,4 +1,5 @@ """Plugwise Select component for Home Assistant.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/plugwise/sensor.py b/homeassistant/components/plugwise/sensor.py index 86992bb08f1a..2dfe97a06c5d 100644 --- a/homeassistant/components/plugwise/sensor.py +++ b/homeassistant/components/plugwise/sensor.py @@ -1,4 +1,5 @@ """Plugwise Sensor component for Home Assistant.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/plugwise/switch.py b/homeassistant/components/plugwise/switch.py index 50e0a3cc4f8e..3c737e19a4a2 100644 --- a/homeassistant/components/plugwise/switch.py +++ b/homeassistant/components/plugwise/switch.py @@ -1,4 +1,5 @@ """Plugwise Switch component for HomeAssistant.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/plugwise/util.py b/homeassistant/components/plugwise/util.py index 4f8d4c8d8fe2..df1069cbbc39 100644 --- a/homeassistant/components/plugwise/util.py +++ b/homeassistant/components/plugwise/util.py @@ -1,4 +1,5 @@ """Utilities for Plugwise.""" + from collections.abc import Awaitable, Callable, Coroutine from typing import Any, Concatenate, ParamSpec, TypeVar diff --git a/homeassistant/components/plum_lightpad/config_flow.py b/homeassistant/components/plum_lightpad/config_flow.py index 546398f5fa6a..2a929d14c9e5 100644 --- a/homeassistant/components/plum_lightpad/config_flow.py +++ b/homeassistant/components/plum_lightpad/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Plum Lightpad.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/plum_lightpad/light.py b/homeassistant/components/plum_lightpad/light.py index 6d591d29fe4b..a385565b8376 100644 --- a/homeassistant/components/plum_lightpad/light.py +++ b/homeassistant/components/plum_lightpad/light.py @@ -1,4 +1,5 @@ """Support for Plum Lightpad lights.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pocketcasts/sensor.py b/homeassistant/components/pocketcasts/sensor.py index c541e2cc0f2e..b2ad050fc149 100644 --- a/homeassistant/components/pocketcasts/sensor.py +++ b/homeassistant/components/pocketcasts/sensor.py @@ -1,4 +1,5 @@ """Support for Pocket Casts.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/point/alarm_control_panel.py b/homeassistant/components/point/alarm_control_panel.py index c2a904ec2a1c..b04742af06a7 100644 --- a/homeassistant/components/point/alarm_control_panel.py +++ b/homeassistant/components/point/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Minut Point.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/point/binary_sensor.py b/homeassistant/components/point/binary_sensor.py index 81101d2da797..8863ee8ed81c 100644 --- a/homeassistant/components/point/binary_sensor.py +++ b/homeassistant/components/point/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Minut Point binary sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/point/const.py b/homeassistant/components/point/const.py index c21971185f95..c8c8f14d019d 100644 --- a/homeassistant/components/point/const.py +++ b/homeassistant/components/point/const.py @@ -1,4 +1,5 @@ """Define constants for the Point component.""" + from datetime import timedelta DOMAIN = "point" diff --git a/homeassistant/components/point/sensor.py b/homeassistant/components/point/sensor.py index 471fa72c6c55..101371b0822a 100644 --- a/homeassistant/components/point/sensor.py +++ b/homeassistant/components/point/sensor.py @@ -1,4 +1,5 @@ """Support for Minut Point sensors.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/poolsense/binary_sensor.py b/homeassistant/components/poolsense/binary_sensor.py index 052a205a37b4..69c133c8c1e7 100644 --- a/homeassistant/components/poolsense/binary_sensor.py +++ b/homeassistant/components/poolsense/binary_sensor.py @@ -1,4 +1,5 @@ """Support for PoolSense binary sensors.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/poolsense/entity.py b/homeassistant/components/poolsense/entity.py index 0eca39cc48d6..eaf2c4ab540c 100644 --- a/homeassistant/components/poolsense/entity.py +++ b/homeassistant/components/poolsense/entity.py @@ -1,4 +1,5 @@ """Base entity for poolsense integration.""" + from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity diff --git a/homeassistant/components/poolsense/sensor.py b/homeassistant/components/poolsense/sensor.py index 23235c09a849..d40ee823664d 100644 --- a/homeassistant/components/poolsense/sensor.py +++ b/homeassistant/components/poolsense/sensor.py @@ -1,4 +1,5 @@ """Sensor platform for the PoolSense sensor.""" + from __future__ import annotations from homeassistant.components.sensor import ( diff --git a/homeassistant/components/powerwall/__init__.py b/homeassistant/components/powerwall/__init__.py index 086e49eef94e..5257e5a62990 100644 --- a/homeassistant/components/powerwall/__init__.py +++ b/homeassistant/components/powerwall/__init__.py @@ -1,4 +1,5 @@ """The Tesla Powerwall integration.""" + from __future__ import annotations from contextlib import AsyncExitStack diff --git a/homeassistant/components/powerwall/config_flow.py b/homeassistant/components/powerwall/config_flow.py index 767c4f1120d2..7629d83d9d6b 100644 --- a/homeassistant/components/powerwall/config_flow.py +++ b/homeassistant/components/powerwall/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Tesla Powerwall integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/powerwall/const.py b/homeassistant/components/powerwall/const.py index c20ab760f237..bb3a6c2355e4 100644 --- a/homeassistant/components/powerwall/const.py +++ b/homeassistant/components/powerwall/const.py @@ -1,4 +1,5 @@ """Constants for the Tesla Powerwall integration.""" + from typing import Final DOMAIN = "powerwall" diff --git a/homeassistant/components/powerwall/models.py b/homeassistant/components/powerwall/models.py index 3216b83a7dba..1adfd7546508 100644 --- a/homeassistant/components/powerwall/models.py +++ b/homeassistant/components/powerwall/models.py @@ -1,4 +1,5 @@ """The powerwall integration models.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/powerwall/sensor.py b/homeassistant/components/powerwall/sensor.py index 9e17cd32e9ca..38189ecd6f3f 100644 --- a/homeassistant/components/powerwall/sensor.py +++ b/homeassistant/components/powerwall/sensor.py @@ -1,4 +1,5 @@ """Support for powerwall sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/private_ble_device/__init__.py b/homeassistant/components/private_ble_device/__init__.py index dcb6555bbc9f..ab4de9ef04de 100644 --- a/homeassistant/components/private_ble_device/__init__.py +++ b/homeassistant/components/private_ble_device/__init__.py @@ -1,4 +1,5 @@ """Private BLE Device integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/private_ble_device/config_flow.py b/homeassistant/components/private_ble_device/config_flow.py index ff6fade11413..c7311e8691bc 100644 --- a/homeassistant/components/private_ble_device/config_flow.py +++ b/homeassistant/components/private_ble_device/config_flow.py @@ -1,4 +1,5 @@ """Config flow for the BLE Tracker.""" + from __future__ import annotations import base64 diff --git a/homeassistant/components/private_ble_device/coordinator.py b/homeassistant/components/private_ble_device/coordinator.py index e41c3d02e9ea..69db399a454c 100644 --- a/homeassistant/components/private_ble_device/coordinator.py +++ b/homeassistant/components/private_ble_device/coordinator.py @@ -1,4 +1,5 @@ """Central manager for tracking devices with random but resolvable MAC addresses.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/private_ble_device/device_tracker.py b/homeassistant/components/private_ble_device/device_tracker.py index 4f22c9b275cb..fbaf0d447516 100644 --- a/homeassistant/components/private_ble_device/device_tracker.py +++ b/homeassistant/components/private_ble_device/device_tracker.py @@ -1,4 +1,5 @@ """Tracking for bluetooth low energy devices.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/private_ble_device/entity.py b/homeassistant/components/private_ble_device/entity.py index 978313e9671f..2c574805c539 100644 --- a/homeassistant/components/private_ble_device/entity.py +++ b/homeassistant/components/private_ble_device/entity.py @@ -1,4 +1,5 @@ """Tracking for bluetooth low energy devices.""" + from __future__ import annotations from abc import abstractmethod diff --git a/homeassistant/components/private_ble_device/sensor.py b/homeassistant/components/private_ble_device/sensor.py index 1cff006794c5..d186563da5e7 100644 --- a/homeassistant/components/private_ble_device/sensor.py +++ b/homeassistant/components/private_ble_device/sensor.py @@ -1,4 +1,5 @@ """Support for iBeacon device sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/profiler/config_flow.py b/homeassistant/components/profiler/config_flow.py index bb25e7f7e576..4acce51e25f6 100644 --- a/homeassistant/components/profiler/config_flow.py +++ b/homeassistant/components/profiler/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Profiler integration.""" + from homeassistant.config_entries import ConfigFlow from .const import DEFAULT_NAME, DOMAIN diff --git a/homeassistant/components/proliphix/climate.py b/homeassistant/components/proliphix/climate.py index 797fd751197e..23ccc03a038a 100644 --- a/homeassistant/components/proliphix/climate.py +++ b/homeassistant/components/proliphix/climate.py @@ -1,4 +1,5 @@ """Support for Proliphix NT10e Thermostats.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/prometheus/__init__.py b/homeassistant/components/prometheus/__init__.py index 317b5c569d47..2b8ed6f22b0d 100644 --- a/homeassistant/components/prometheus/__init__.py +++ b/homeassistant/components/prometheus/__init__.py @@ -1,4 +1,5 @@ """Support for Prometheus metrics export.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/prosegur/alarm_control_panel.py b/homeassistant/components/prosegur/alarm_control_panel.py index 77cdb5e11a2f..61e7c73e3a57 100644 --- a/homeassistant/components/prosegur/alarm_control_panel.py +++ b/homeassistant/components/prosegur/alarm_control_panel.py @@ -1,4 +1,5 @@ """Support for Prosegur alarm control panels.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/prosegur/camera.py b/homeassistant/components/prosegur/camera.py index c711ca2eac60..fd911fa5898b 100644 --- a/homeassistant/components/prosegur/camera.py +++ b/homeassistant/components/prosegur/camera.py @@ -1,4 +1,5 @@ """Support for Prosegur cameras.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/prosegur/config_flow.py b/homeassistant/components/prosegur/config_flow.py index a1f3dac832b3..ca8e4db35cc1 100644 --- a/homeassistant/components/prosegur/config_flow.py +++ b/homeassistant/components/prosegur/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Prosegur Alarm integration.""" + from collections.abc import Mapping import logging from typing import Any, cast diff --git a/homeassistant/components/prosegur/diagnostics.py b/homeassistant/components/prosegur/diagnostics.py index 59b51f5b5d16..ec13f5511a46 100644 --- a/homeassistant/components/prosegur/diagnostics.py +++ b/homeassistant/components/prosegur/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Prosegur.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/prowl/notify.py b/homeassistant/components/prowl/notify.py index c365ce151ec1..b5556c15c6c1 100644 --- a/homeassistant/components/prowl/notify.py +++ b/homeassistant/components/prowl/notify.py @@ -1,4 +1,5 @@ """Prowl notification service.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/proximity/__init__.py b/homeassistant/components/proximity/__init__.py index 349658223f36..f6c67fc088f6 100644 --- a/homeassistant/components/proximity/__init__.py +++ b/homeassistant/components/proximity/__init__.py @@ -1,4 +1,5 @@ """Support for tracking the proximity of a device.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/proximity/config_flow.py b/homeassistant/components/proximity/config_flow.py index 77ebf26f52af..14f26f5d45df 100644 --- a/homeassistant/components/proximity/config_flow.py +++ b/homeassistant/components/proximity/config_flow.py @@ -1,4 +1,5 @@ """Config flow for proximity.""" + from __future__ import annotations from typing import Any, cast diff --git a/homeassistant/components/proximity/diagnostics.py b/homeassistant/components/proximity/diagnostics.py index 3ccecbe1f196..d296c489e948 100644 --- a/homeassistant/components/proximity/diagnostics.py +++ b/homeassistant/components/proximity/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Proximity.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/proximity/helpers.py b/homeassistant/components/proximity/helpers.py index 9c0787538e51..af3d6d2a3bbd 100644 --- a/homeassistant/components/proximity/helpers.py +++ b/homeassistant/components/proximity/helpers.py @@ -1,4 +1,5 @@ """Helper functions for proximity.""" + from homeassistant.components.automation import automations_with_entity from homeassistant.components.script import scripts_with_entity from homeassistant.core import HomeAssistant diff --git a/homeassistant/components/proxmoxve/__init__.py b/homeassistant/components/proxmoxve/__init__.py index 1c22ca50c23b..e0b8f91088da 100644 --- a/homeassistant/components/proxmoxve/__init__.py +++ b/homeassistant/components/proxmoxve/__init__.py @@ -1,4 +1,5 @@ """Support for Proxmox VE.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/proxmoxve/binary_sensor.py b/homeassistant/components/proxmoxve/binary_sensor.py index ea02e547e983..412f40af6e89 100644 --- a/homeassistant/components/proxmoxve/binary_sensor.py +++ b/homeassistant/components/proxmoxve/binary_sensor.py @@ -1,4 +1,5 @@ """Binary sensor to read Proxmox VE data.""" + from __future__ import annotations from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/proxy/camera.py b/homeassistant/components/proxy/camera.py index 79e9faf8d70b..c50dc819f9ad 100644 --- a/homeassistant/components/proxy/camera.py +++ b/homeassistant/components/proxy/camera.py @@ -1,4 +1,5 @@ """Proxy camera platform that enables image processing of camera data.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/prusalink/__init__.py b/homeassistant/components/prusalink/__init__.py index 08670ef54334..e8c930c31576 100644 --- a/homeassistant/components/prusalink/__init__.py +++ b/homeassistant/components/prusalink/__init__.py @@ -1,4 +1,5 @@ """The PrusaLink integration.""" + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/homeassistant/components/prusalink/button.py b/homeassistant/components/prusalink/button.py index 46d10fc97032..d70356f04d1a 100644 --- a/homeassistant/components/prusalink/button.py +++ b/homeassistant/components/prusalink/button.py @@ -1,4 +1,5 @@ """PrusaLink sensors.""" + from __future__ import annotations from collections.abc import Callable, Coroutine diff --git a/homeassistant/components/prusalink/camera.py b/homeassistant/components/prusalink/camera.py index 7f6fab0583b2..48c2fee9cdb8 100644 --- a/homeassistant/components/prusalink/camera.py +++ b/homeassistant/components/prusalink/camera.py @@ -1,4 +1,5 @@ """Camera entity for PrusaLink.""" + from __future__ import annotations from homeassistant.components.camera import Camera diff --git a/homeassistant/components/prusalink/config_flow.py b/homeassistant/components/prusalink/config_flow.py index ac4dba0d20c0..c0c8c7971339 100644 --- a/homeassistant/components/prusalink/config_flow.py +++ b/homeassistant/components/prusalink/config_flow.py @@ -1,4 +1,5 @@ """Config flow for PrusaLink integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/prusalink/sensor.py b/homeassistant/components/prusalink/sensor.py index efdd044399a7..be4230b844c2 100644 --- a/homeassistant/components/prusalink/sensor.py +++ b/homeassistant/components/prusalink/sensor.py @@ -1,4 +1,5 @@ """PrusaLink sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/ps4/config_flow.py b/homeassistant/components/ps4/config_flow.py index ef74b3e8712e..b842c2f7cfbc 100644 --- a/homeassistant/components/ps4/config_flow.py +++ b/homeassistant/components/ps4/config_flow.py @@ -1,4 +1,5 @@ """Config Flow for PlayStation 4.""" + from collections import OrderedDict from pyps4_2ndscreen.errors import CredentialTimeout diff --git a/homeassistant/components/ps4/media_player.py b/homeassistant/components/ps4/media_player.py index 732d86bef373..f01bc00ba72a 100644 --- a/homeassistant/components/ps4/media_player.py +++ b/homeassistant/components/ps4/media_player.py @@ -1,4 +1,5 @@ """Support for PlayStation 4 consoles.""" + from contextlib import suppress import logging from typing import Any, cast diff --git a/homeassistant/components/pulseaudio_loopback/switch.py b/homeassistant/components/pulseaudio_loopback/switch.py index 92dfb235b1b7..553a1b4a283a 100644 --- a/homeassistant/components/pulseaudio_loopback/switch.py +++ b/homeassistant/components/pulseaudio_loopback/switch.py @@ -1,4 +1,5 @@ """Switch logic for loading/unloading pulseaudio loopback modules.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pure_energie/__init__.py b/homeassistant/components/pure_energie/__init__.py index cda73a7da0bc..e018648e95e7 100644 --- a/homeassistant/components/pure_energie/__init__.py +++ b/homeassistant/components/pure_energie/__init__.py @@ -1,4 +1,5 @@ """The Pure Energie integration.""" + from __future__ import annotations from typing import NamedTuple diff --git a/homeassistant/components/pure_energie/config_flow.py b/homeassistant/components/pure_energie/config_flow.py index b7dc2552231a..a2bbb671ff7e 100644 --- a/homeassistant/components/pure_energie/config_flow.py +++ b/homeassistant/components/pure_energie/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Pure Energie integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pure_energie/const.py b/homeassistant/components/pure_energie/const.py index 9c908da60689..bba7708c1748 100644 --- a/homeassistant/components/pure_energie/const.py +++ b/homeassistant/components/pure_energie/const.py @@ -1,4 +1,5 @@ """Constants for the Pure Energie integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/pure_energie/diagnostics.py b/homeassistant/components/pure_energie/diagnostics.py index b2e071d58cd7..fb93b81a4fdc 100644 --- a/homeassistant/components/pure_energie/diagnostics.py +++ b/homeassistant/components/pure_energie/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for Pure Energie.""" + from __future__ import annotations from dataclasses import asdict diff --git a/homeassistant/components/pure_energie/sensor.py b/homeassistant/components/pure_energie/sensor.py index 09470609c9ef..fa3bed72df4a 100644 --- a/homeassistant/components/pure_energie/sensor.py +++ b/homeassistant/components/pure_energie/sensor.py @@ -1,4 +1,5 @@ """Support for Pure Energie sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/purpleair/__init__.py b/homeassistant/components/purpleair/__init__.py index f52d0799d356..fb86612597a0 100644 --- a/homeassistant/components/purpleair/__init__.py +++ b/homeassistant/components/purpleair/__init__.py @@ -1,4 +1,5 @@ """The PurpleAir integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/purpleair/config_flow.py b/homeassistant/components/purpleair/config_flow.py index 90a250a57b0e..f0c09af51351 100644 --- a/homeassistant/components/purpleair/config_flow.py +++ b/homeassistant/components/purpleair/config_flow.py @@ -1,4 +1,5 @@ """Config flow for PurpleAir integration.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/purpleair/coordinator.py b/homeassistant/components/purpleair/coordinator.py index 9982db667f26..7bf0770c6fc3 100644 --- a/homeassistant/components/purpleair/coordinator.py +++ b/homeassistant/components/purpleair/coordinator.py @@ -1,4 +1,5 @@ """Define a PurpleAir DataUpdateCoordinator.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/purpleair/diagnostics.py b/homeassistant/components/purpleair/diagnostics.py index 0c52879b7a74..a3b3af857fb1 100644 --- a/homeassistant/components/purpleair/diagnostics.py +++ b/homeassistant/components/purpleair/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for PurpleAir.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/purpleair/sensor.py b/homeassistant/components/purpleair/sensor.py index eee4583ca11a..d1db77c2c313 100644 --- a/homeassistant/components/purpleair/sensor.py +++ b/homeassistant/components/purpleair/sensor.py @@ -1,4 +1,5 @@ """Support for PurpleAir sensors.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/push/camera.py b/homeassistant/components/push/camera.py index 2cedcb8598aa..8744ce8c2a15 100644 --- a/homeassistant/components/push/camera.py +++ b/homeassistant/components/push/camera.py @@ -1,4 +1,5 @@ """Camera platform that receives images through HTTP POST.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/pushbullet/__init__.py b/homeassistant/components/pushbullet/__init__.py index 14d90d4ca0b4..e5892afc9260 100644 --- a/homeassistant/components/pushbullet/__init__.py +++ b/homeassistant/components/pushbullet/__init__.py @@ -1,4 +1,5 @@ """The pushbullet component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pushbullet/api.py b/homeassistant/components/pushbullet/api.py index 691ef7413c36..72805a9aa94e 100644 --- a/homeassistant/components/pushbullet/api.py +++ b/homeassistant/components/pushbullet/api.py @@ -1,4 +1,5 @@ """Pushbullet Notification provider.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pushbullet/config_flow.py b/homeassistant/components/pushbullet/config_flow.py index 1b2ca3b60401..08ade743aee3 100644 --- a/homeassistant/components/pushbullet/config_flow.py +++ b/homeassistant/components/pushbullet/config_flow.py @@ -1,4 +1,5 @@ """Config flow for pushbullet integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pushbullet/notify.py b/homeassistant/components/pushbullet/notify.py index 662240d0bf5e..96f78c4a35d5 100644 --- a/homeassistant/components/pushbullet/notify.py +++ b/homeassistant/components/pushbullet/notify.py @@ -1,4 +1,5 @@ """Pushbullet platform for notify component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pushbullet/sensor.py b/homeassistant/components/pushbullet/sensor.py index 2f2a1d066f31..4989fc91d5ed 100644 --- a/homeassistant/components/pushbullet/sensor.py +++ b/homeassistant/components/pushbullet/sensor.py @@ -1,4 +1,5 @@ """Pushbullet platform for sensor component.""" + from __future__ import annotations from homeassistant.components.sensor import SensorEntity, SensorEntityDescription diff --git a/homeassistant/components/pushover/__init__.py b/homeassistant/components/pushover/__init__.py index c3b15b7c1306..73c4223889e2 100644 --- a/homeassistant/components/pushover/__init__.py +++ b/homeassistant/components/pushover/__init__.py @@ -1,4 +1,5 @@ """The pushover component.""" + from __future__ import annotations from pushover_complete import BadAPIRequestError, PushoverAPI diff --git a/homeassistant/components/pushover/config_flow.py b/homeassistant/components/pushover/config_flow.py index 5f67db08073d..fcc28b45eded 100644 --- a/homeassistant/components/pushover/config_flow.py +++ b/homeassistant/components/pushover/config_flow.py @@ -1,4 +1,5 @@ """Config flow for pushover integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pushover/notify.py b/homeassistant/components/pushover/notify.py index 52eaed227e5a..34ee1d08bdda 100644 --- a/homeassistant/components/pushover/notify.py +++ b/homeassistant/components/pushover/notify.py @@ -1,4 +1,5 @@ """Pushover platform for notify component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/pushsafer/notify.py b/homeassistant/components/pushsafer/notify.py index 5411db05e2d4..f4f5bf88a22e 100644 --- a/homeassistant/components/pushsafer/notify.py +++ b/homeassistant/components/pushsafer/notify.py @@ -1,4 +1,5 @@ """Pushsafer platform for notify component.""" + from __future__ import annotations import base64 diff --git a/homeassistant/components/pvoutput/__init__.py b/homeassistant/components/pvoutput/__init__.py index bca5a23e62b8..7dc02a07d1cf 100644 --- a/homeassistant/components/pvoutput/__init__.py +++ b/homeassistant/components/pvoutput/__init__.py @@ -1,4 +1,5 @@ """The PVOutput integration.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/pvoutput/config_flow.py b/homeassistant/components/pvoutput/config_flow.py index 7056e0f00b2f..9d18952e7b43 100644 --- a/homeassistant/components/pvoutput/config_flow.py +++ b/homeassistant/components/pvoutput/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure the PVOutput integration.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pvoutput/const.py b/homeassistant/components/pvoutput/const.py index f01d10fd13d0..be63053a8991 100644 --- a/homeassistant/components/pvoutput/const.py +++ b/homeassistant/components/pvoutput/const.py @@ -1,4 +1,5 @@ """Constants for the PVOutput integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/pvoutput/coordinator.py b/homeassistant/components/pvoutput/coordinator.py index 7b307f20274a..5c38792c5537 100644 --- a/homeassistant/components/pvoutput/coordinator.py +++ b/homeassistant/components/pvoutput/coordinator.py @@ -1,4 +1,5 @@ """DataUpdateCoordinator for the PVOutput integration.""" + from __future__ import annotations from pvo import PVOutput, PVOutputAuthenticationError, PVOutputNoDataError, Status diff --git a/homeassistant/components/pvoutput/diagnostics.py b/homeassistant/components/pvoutput/diagnostics.py index dfe215b7dddd..3b9007b77b44 100644 --- a/homeassistant/components/pvoutput/diagnostics.py +++ b/homeassistant/components/pvoutput/diagnostics.py @@ -1,4 +1,5 @@ """Diagnostics support for PVOutput.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/pvoutput/sensor.py b/homeassistant/components/pvoutput/sensor.py index c003e3cfad8f..ef2bb3eb6607 100644 --- a/homeassistant/components/pvoutput/sensor.py +++ b/homeassistant/components/pvoutput/sensor.py @@ -1,4 +1,5 @@ """Support for getting collected information from PVOutput.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/pvpc_hourly_pricing/__init__.py b/homeassistant/components/pvpc_hourly_pricing/__init__.py index af9154f55125..6ef16ea29b61 100644 --- a/homeassistant/components/pvpc_hourly_pricing/__init__.py +++ b/homeassistant/components/pvpc_hourly_pricing/__init__.py @@ -1,4 +1,5 @@ """The pvpc_hourly_pricing integration to collect Spain official electric prices.""" + from datetime import timedelta import logging diff --git a/homeassistant/components/pvpc_hourly_pricing/config_flow.py b/homeassistant/components/pvpc_hourly_pricing/config_flow.py index 23c6241462c8..239e1bcb0e92 100644 --- a/homeassistant/components/pvpc_hourly_pricing/config_flow.py +++ b/homeassistant/components/pvpc_hourly_pricing/config_flow.py @@ -1,4 +1,5 @@ """Config flow for pvpc_hourly_pricing.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pvpc_hourly_pricing/const.py b/homeassistant/components/pvpc_hourly_pricing/const.py index a6bfc6f3188b..9aaa46233cb6 100644 --- a/homeassistant/components/pvpc_hourly_pricing/const.py +++ b/homeassistant/components/pvpc_hourly_pricing/const.py @@ -1,4 +1,5 @@ """Constant values for pvpc_hourly_pricing.""" + from aiopvpc.const import TARIFFS import voluptuous as vol diff --git a/homeassistant/components/pvpc_hourly_pricing/helpers.py b/homeassistant/components/pvpc_hourly_pricing/helpers.py index 195d20aee897..e0792f76404c 100644 --- a/homeassistant/components/pvpc_hourly_pricing/helpers.py +++ b/homeassistant/components/pvpc_hourly_pricing/helpers.py @@ -1,4 +1,5 @@ """Helper functions to relate sensors keys and unique ids.""" + from aiopvpc.const import ( ALL_SENSORS, KEY_INJECTION, diff --git a/homeassistant/components/pvpc_hourly_pricing/sensor.py b/homeassistant/components/pvpc_hourly_pricing/sensor.py index 9cc3ef35a4b1..1b97abcddaee 100644 --- a/homeassistant/components/pvpc_hourly_pricing/sensor.py +++ b/homeassistant/components/pvpc_hourly_pricing/sensor.py @@ -1,4 +1,5 @@ """Sensor to collect the reference daily prices of electricity ('PVPC') in Spain.""" + from __future__ import annotations from collections.abc import Mapping diff --git a/homeassistant/components/pyload/sensor.py b/homeassistant/components/pyload/sensor.py index 35e32d510ca4..b7d4d1f461b9 100644 --- a/homeassistant/components/pyload/sensor.py +++ b/homeassistant/components/pyload/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring pyLoad.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/qbittorrent/config_flow.py b/homeassistant/components/qbittorrent/config_flow.py index 148e9765c48c..c17c842529bb 100644 --- a/homeassistant/components/qbittorrent/config_flow.py +++ b/homeassistant/components/qbittorrent/config_flow.py @@ -1,4 +1,5 @@ """Config flow for qBittorrent.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qbittorrent/const.py b/homeassistant/components/qbittorrent/const.py index 96c60e9b3806..d8fe2c012a38 100644 --- a/homeassistant/components/qbittorrent/const.py +++ b/homeassistant/components/qbittorrent/const.py @@ -1,4 +1,5 @@ """Constants for qBittorrent.""" + from typing import Final DOMAIN: Final = "qbittorrent" diff --git a/homeassistant/components/qbittorrent/coordinator.py b/homeassistant/components/qbittorrent/coordinator.py index 11467ce62f48..32ce4cf97110 100644 --- a/homeassistant/components/qbittorrent/coordinator.py +++ b/homeassistant/components/qbittorrent/coordinator.py @@ -1,4 +1,5 @@ """The QBittorrent coordinator.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/qbittorrent/helpers.py b/homeassistant/components/qbittorrent/helpers.py index 7f7833e912af..b9c296754734 100644 --- a/homeassistant/components/qbittorrent/helpers.py +++ b/homeassistant/components/qbittorrent/helpers.py @@ -1,4 +1,5 @@ """Helper functions for qBittorrent.""" + from qbittorrent.client import Client diff --git a/homeassistant/components/qbittorrent/sensor.py b/homeassistant/components/qbittorrent/sensor.py index 9e9f76268575..84eac7d28cf6 100644 --- a/homeassistant/components/qbittorrent/sensor.py +++ b/homeassistant/components/qbittorrent/sensor.py @@ -1,4 +1,5 @@ """Support for monitoring the qBittorrent API.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/qingping/__init__.py b/homeassistant/components/qingping/__init__.py index 9155c02c07c2..48cae5c48e6a 100644 --- a/homeassistant/components/qingping/__init__.py +++ b/homeassistant/components/qingping/__init__.py @@ -1,4 +1,5 @@ """The Qingping integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qingping/binary_sensor.py b/homeassistant/components/qingping/binary_sensor.py index 99bcf83ec1a9..f4f81eac394e 100644 --- a/homeassistant/components/qingping/binary_sensor.py +++ b/homeassistant/components/qingping/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Qingping binary sensors.""" + from __future__ import annotations from qingping_ble import ( diff --git a/homeassistant/components/qingping/config_flow.py b/homeassistant/components/qingping/config_flow.py index d5fd45e46148..c5efe03a8781 100644 --- a/homeassistant/components/qingping/config_flow.py +++ b/homeassistant/components/qingping/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Qingping integration.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/qingping/device.py b/homeassistant/components/qingping/device.py index ec6bb23c2afe..466ac43f079a 100644 --- a/homeassistant/components/qingping/device.py +++ b/homeassistant/components/qingping/device.py @@ -1,4 +1,5 @@ """Support for Qingping devices.""" + from __future__ import annotations from qingping_ble import DeviceKey diff --git a/homeassistant/components/qingping/sensor.py b/homeassistant/components/qingping/sensor.py index bc99ed80ff30..e75c9b34f499 100644 --- a/homeassistant/components/qingping/sensor.py +++ b/homeassistant/components/qingping/sensor.py @@ -1,4 +1,5 @@ """Support for Qingping sensors.""" + from __future__ import annotations from qingping_ble import ( diff --git a/homeassistant/components/qld_bushfire/geo_location.py b/homeassistant/components/qld_bushfire/geo_location.py index 3606b664a3fd..5d0173f8c547 100644 --- a/homeassistant/components/qld_bushfire/geo_location.py +++ b/homeassistant/components/qld_bushfire/geo_location.py @@ -1,4 +1,5 @@ """Support for Queensland Bushfire Alert Feeds.""" + from __future__ import annotations from collections.abc import Callable diff --git a/homeassistant/components/qnap/__init__.py b/homeassistant/components/qnap/__init__.py index 2491e69803f2..82e912a60cd1 100644 --- a/homeassistant/components/qnap/__init__.py +++ b/homeassistant/components/qnap/__init__.py @@ -1,4 +1,5 @@ """The qnap component.""" + from __future__ import annotations from homeassistant.config_entries import ConfigEntry diff --git a/homeassistant/components/qnap/config_flow.py b/homeassistant/components/qnap/config_flow.py index d8646c722d7f..3e0c524f59ef 100644 --- a/homeassistant/components/qnap/config_flow.py +++ b/homeassistant/components/qnap/config_flow.py @@ -1,4 +1,5 @@ """Config flow to configure qnap component.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qnap/coordinator.py b/homeassistant/components/qnap/coordinator.py index b868a931ebd2..8c2bf81a47fc 100644 --- a/homeassistant/components/qnap/coordinator.py +++ b/homeassistant/components/qnap/coordinator.py @@ -1,4 +1,5 @@ """Data coordinator for the qnap integration.""" + from __future__ import annotations from datetime import timedelta diff --git a/homeassistant/components/qnap/sensor.py b/homeassistant/components/qnap/sensor.py index 348759012acb..2a5186ad940f 100644 --- a/homeassistant/components/qnap/sensor.py +++ b/homeassistant/components/qnap/sensor.py @@ -1,4 +1,5 @@ """Support for QNAP NAS Sensors.""" + from __future__ import annotations from homeassistant import config_entries diff --git a/homeassistant/components/qnap_qsw/__init__.py b/homeassistant/components/qnap_qsw/__init__.py index b3bcc1705dee..d7352435b078 100644 --- a/homeassistant/components/qnap_qsw/__init__.py +++ b/homeassistant/components/qnap_qsw/__init__.py @@ -1,4 +1,5 @@ """The QNAP QSW integration.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qnap_qsw/binary_sensor.py b/homeassistant/components/qnap_qsw/binary_sensor.py index f655beee3d44..907e3d927d34 100644 --- a/homeassistant/components/qnap_qsw/binary_sensor.py +++ b/homeassistant/components/qnap_qsw/binary_sensor.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW binary sensors.""" + from __future__ import annotations from dataclasses import dataclass, replace diff --git a/homeassistant/components/qnap_qsw/button.py b/homeassistant/components/qnap_qsw/button.py index c2c4f9f60436..1a11a5209c09 100644 --- a/homeassistant/components/qnap_qsw/button.py +++ b/homeassistant/components/qnap_qsw/button.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW buttons.""" + from __future__ import annotations from collections.abc import Awaitable, Callable diff --git a/homeassistant/components/qnap_qsw/config_flow.py b/homeassistant/components/qnap_qsw/config_flow.py index 8ade8169e575..3a10e54ac82f 100644 --- a/homeassistant/components/qnap_qsw/config_flow.py +++ b/homeassistant/components/qnap_qsw/config_flow.py @@ -1,4 +1,5 @@ """Config flow for QNAP QSW.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qnap_qsw/coordinator.py b/homeassistant/components/qnap_qsw/coordinator.py index 6451b525004d..c873f2a773df 100644 --- a/homeassistant/components/qnap_qsw/coordinator.py +++ b/homeassistant/components/qnap_qsw/coordinator.py @@ -1,4 +1,5 @@ """The QNAP QSW coordinator.""" + from __future__ import annotations import asyncio diff --git a/homeassistant/components/qnap_qsw/diagnostics.py b/homeassistant/components/qnap_qsw/diagnostics.py index 2467e9181a3d..e732c551a404 100644 --- a/homeassistant/components/qnap_qsw/diagnostics.py +++ b/homeassistant/components/qnap_qsw/diagnostics.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW diagnostics.""" + from __future__ import annotations from typing import Any diff --git a/homeassistant/components/qnap_qsw/entity.py b/homeassistant/components/qnap_qsw/entity.py index de92afe69a29..a3038b1fc7b5 100644 --- a/homeassistant/components/qnap_qsw/entity.py +++ b/homeassistant/components/qnap_qsw/entity.py @@ -1,4 +1,5 @@ """Entity classes for the QNAP QSW integration.""" + from __future__ import annotations from dataclasses import dataclass diff --git a/homeassistant/components/qnap_qsw/sensor.py b/homeassistant/components/qnap_qsw/sensor.py index 0fcb74174b55..f9299c778cb0 100644 --- a/homeassistant/components/qnap_qsw/sensor.py +++ b/homeassistant/components/qnap_qsw/sensor.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW sensors.""" + from __future__ import annotations from dataclasses import dataclass, replace diff --git a/homeassistant/components/qnap_qsw/update.py b/homeassistant/components/qnap_qsw/update.py index 5ea6e80f4bb8..ac7892352717 100644 --- a/homeassistant/components/qnap_qsw/update.py +++ b/homeassistant/components/qnap_qsw/update.py @@ -1,4 +1,5 @@ """Support for the QNAP QSW update.""" + from __future__ import annotations from typing import Any, Final diff --git a/homeassistant/components/qrcode/image_processing.py b/homeassistant/components/qrcode/image_processing.py index 06fe92e5b1d2..aacd3c0c38fd 100644 --- a/homeassistant/components/qrcode/image_processing.py +++ b/homeassistant/components/qrcode/image_processing.py @@ -1,4 +1,5 @@ """Support for the QR code image processing.""" + from __future__ import annotations import io diff --git a/homeassistant/components/quantum_gateway/device_tracker.py b/homeassistant/components/quantum_gateway/device_tracker.py index c8e23b684160..1c43cbb14a81 100644 --- a/homeassistant/components/quantum_gateway/device_tracker.py +++ b/homeassistant/components/quantum_gateway/device_tracker.py @@ -1,4 +1,5 @@ """Support for Verizon FiOS Quantum Gateways.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qvr_pro/camera.py b/homeassistant/components/qvr_pro/camera.py index f3caac864d9e..544ef808ca74 100644 --- a/homeassistant/components/qvr_pro/camera.py +++ b/homeassistant/components/qvr_pro/camera.py @@ -1,4 +1,5 @@ """Support for QVR Pro streams.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qwikswitch/__init__.py b/homeassistant/components/qwikswitch/__init__.py index d11b71a6dd4d..8c753da7cc27 100644 --- a/homeassistant/components/qwikswitch/__init__.py +++ b/homeassistant/components/qwikswitch/__init__.py @@ -1,4 +1,5 @@ """Support for Qwikswitch devices.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qwikswitch/binary_sensor.py b/homeassistant/components/qwikswitch/binary_sensor.py index a4ab193228c2..b35908da12cc 100644 --- a/homeassistant/components/qwikswitch/binary_sensor.py +++ b/homeassistant/components/qwikswitch/binary_sensor.py @@ -1,4 +1,5 @@ """Support for Qwikswitch Binary Sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qwikswitch/light.py b/homeassistant/components/qwikswitch/light.py index 2109b8d2c3b3..12c2763d3a48 100644 --- a/homeassistant/components/qwikswitch/light.py +++ b/homeassistant/components/qwikswitch/light.py @@ -1,4 +1,5 @@ """Support for Qwikswitch Relays and Dimmers.""" + from __future__ import annotations from homeassistant.components.light import ColorMode, LightEntity diff --git a/homeassistant/components/qwikswitch/sensor.py b/homeassistant/components/qwikswitch/sensor.py index 8a72ca7c8112..856949d89269 100644 --- a/homeassistant/components/qwikswitch/sensor.py +++ b/homeassistant/components/qwikswitch/sensor.py @@ -1,4 +1,5 @@ """Support for Qwikswitch Sensors.""" + from __future__ import annotations import logging diff --git a/homeassistant/components/qwikswitch/switch.py b/homeassistant/components/qwikswitch/switch.py index e36fc60d5895..1623bfb33614 100644 --- a/homeassistant/components/qwikswitch/switch.py +++ b/homeassistant/components/qwikswitch/switch.py @@ -1,4 +1,5 @@ """Support for Qwikswitch relays.""" + from __future__ import annotations from homeassistant.components.switch import SwitchEntity