homeassistant-stubs 2024.4.4__py3-none-any.whl → 2024.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- homeassistant-stubs/auth/__init__.pyi +3 -1
- homeassistant-stubs/auth/jwt_wrapper.pyi +1 -1
- homeassistant-stubs/auth/permissions/__init__.pyi +1 -2
- homeassistant-stubs/auth/permissions/events.pyi +3 -2
- homeassistant-stubs/auth/session.pyi +46 -0
- homeassistant-stubs/backports/enum.pyi +6 -2
- homeassistant-stubs/backports/functools.pyi +5 -15
- homeassistant-stubs/block_async_io.pyi +8 -1
- homeassistant-stubs/bootstrap.pyi +7 -1
- homeassistant-stubs/components/accuweather/__init__.pyi +9 -13
- homeassistant-stubs/components/accuweather/config_flow.pyi +2 -10
- homeassistant-stubs/components/accuweather/const.pyi +2 -2
- homeassistant-stubs/components/accuweather/coordinator.pyi +27 -0
- homeassistant-stubs/components/accuweather/diagnostics.pyi +1 -1
- homeassistant-stubs/components/accuweather/sensor.pyi +29 -8
- homeassistant-stubs/components/accuweather/weather.pyi +9 -5
- homeassistant-stubs/components/adax/climate.pyi +3 -1
- homeassistant-stubs/components/adguard/__init__.pyi +9 -1
- homeassistant-stubs/components/adguard/const.pyi +0 -2
- homeassistant-stubs/components/adguard/entity.pyi +4 -3
- homeassistant-stubs/components/adguard/sensor.pyi +3 -3
- homeassistant-stubs/components/adguard/switch.pyi +3 -3
- homeassistant-stubs/components/airtouch5/config_flow.pyi +3 -3
- homeassistant-stubs/components/airzone_cloud/entity.pyi +7 -0
- homeassistant-stubs/components/airzone_cloud/select.pyi +38 -0
- homeassistant-stubs/components/airzone_cloud/water_heater.pyi +35 -0
- homeassistant-stubs/components/alert/__init__.pyi +2 -2
- homeassistant-stubs/components/alexa/config.pyi +2 -0
- homeassistant-stubs/components/alexa/entities.pyi +0 -2
- homeassistant-stubs/components/alexa/intent.pyi +2 -1
- homeassistant-stubs/components/alexa/resources.pyi +3 -3
- homeassistant-stubs/components/alexa/state_report.pyi +3 -4
- homeassistant-stubs/components/ambient_network/__init__.pyi +10 -0
- homeassistant-stubs/components/ambient_network/config_flow.pyi +22 -0
- homeassistant-stubs/components/ambient_network/const.pyi +12 -0
- homeassistant-stubs/components/ambient_network/coordinator.pyi +18 -0
- homeassistant-stubs/components/ambient_network/entity.pyi +20 -0
- homeassistant-stubs/components/ambient_network/helper.pyi +4 -0
- homeassistant-stubs/components/ambient_network/sensor.pyi +46 -0
- homeassistant-stubs/components/ambient_station/sensor.pyi +3 -1
- homeassistant-stubs/components/apache_kafka/__init__.pyi +1 -2
- homeassistant-stubs/components/apcupsd/binary_sensor.pyi +1 -0
- homeassistant-stubs/components/apcupsd/sensor.pyi +1 -0
- homeassistant-stubs/components/api/__init__.pyi +2 -2
- homeassistant-stubs/components/apple_tv/remote.pyi +1 -1
- homeassistant-stubs/components/arris_tg2492lg/device_tracker.pyi +5 -4
- homeassistant-stubs/components/aseko_pool_live/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/assist_pipeline/__init__.pyi +2 -2
- homeassistant-stubs/components/assist_pipeline/const.pyi +1 -0
- homeassistant-stubs/components/assist_pipeline/pipeline.pyi +5 -3
- homeassistant-stubs/components/auth/__init__.pyi +9 -2
- homeassistant-stubs/components/auth/login_flow.pyi +2 -2
- homeassistant-stubs/components/auth/mfa_setup_flow.pyi +1 -1
- homeassistant-stubs/components/automation/__init__.pyi +7 -9
- homeassistant-stubs/components/automation/logbook.pyi +3 -1
- homeassistant-stubs/components/axis/hub/event_source.pyi +23 -0
- homeassistant-stubs/components/axis/hub/hub.pyi +4 -9
- homeassistant-stubs/components/baf/fan.pyi +1 -0
- homeassistant-stubs/components/bayesian/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/bluetooth/config_flow.pyi +6 -0
- homeassistant-stubs/components/bluetooth/diagnostics.pyi +1 -1
- homeassistant-stubs/components/bluetooth/util.pyi +2 -1
- homeassistant-stubs/components/bmw_connected_drive/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/bmw_connected_drive/const.pyi +1 -0
- homeassistant-stubs/components/bmw_connected_drive/sensor.pyi +4 -3
- homeassistant-stubs/components/camera/__init__.pyi +2 -2
- homeassistant-stubs/components/cloud/__init__.pyi +9 -4
- homeassistant-stubs/components/cloud/alexa_config.pyi +2 -2
- homeassistant-stubs/components/cloud/const.pyi +2 -1
- homeassistant-stubs/components/cloud/google_config.pyi +3 -3
- homeassistant-stubs/components/cloud/http_api.pyi +2 -2
- homeassistant-stubs/components/cloud/prefs.pyi +5 -3
- homeassistant-stubs/components/cloud/stt.pyi +1 -0
- homeassistant-stubs/components/cloud/tts.pyi +1 -0
- homeassistant-stubs/components/cloud/util.pyi +7 -0
- homeassistant-stubs/components/command_line/binary_sensor.pyi +4 -4
- homeassistant-stubs/components/command_line/const.pyi +4 -1
- homeassistant-stubs/components/command_line/cover.pyi +3 -3
- homeassistant-stubs/components/command_line/sensor.pyi +4 -5
- homeassistant-stubs/components/command_line/switch.pyi +3 -3
- homeassistant-stubs/components/config/__init__.pyi +1 -1
- homeassistant-stubs/components/deconz/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/demo/notify.pyi +12 -10
- homeassistant-stubs/components/demo/sensor.pyi +1 -1
- homeassistant-stubs/components/derivative/sensor.pyi +2 -2
- homeassistant-stubs/components/device_tracker/config_entry.pyi +1 -1
- homeassistant-stubs/components/device_tracker/legacy.pyi +2 -1
- homeassistant-stubs/components/dhcp/__init__.pyi +2 -2
- homeassistant-stubs/components/dlna_dms/dms.pyi +2 -1
- homeassistant-stubs/components/ecovacs/event.pyi +1 -0
- homeassistant-stubs/components/ecovacs/select.pyi +1 -1
- homeassistant-stubs/components/ecovacs/util.pyi +5 -1
- homeassistant-stubs/components/ecovacs/vacuum.pyi +1 -0
- homeassistant-stubs/components/emulated_hue/config.pyi +2 -2
- homeassistant-stubs/components/emulated_hue/hue_api.pyi +2 -2
- homeassistant-stubs/components/energenie_power_sockets/__init__.pyi +12 -0
- homeassistant-stubs/components/energenie_power_sockets/config_flow.pyi +6 -0
- homeassistant-stubs/components/energenie_power_sockets/const.pyi +5 -0
- homeassistant-stubs/components/energenie_power_sockets/switch.pyi +27 -0
- homeassistant-stubs/components/energy/data.pyi +1 -0
- homeassistant-stubs/components/energy/sensor.pyi +4 -4
- homeassistant-stubs/components/energy/websocket_api.pyi +1 -1
- homeassistant-stubs/components/enigma2/__init__.pyi +11 -0
- homeassistant-stubs/components/enigma2/config_flow.pyi +17 -0
- homeassistant-stubs/components/enigma2/const.pyi +1 -0
- homeassistant-stubs/components/enigma2/media_player.pyi +9 -6
- homeassistant-stubs/components/enphase_envoy/coordinator.pyi +1 -0
- homeassistant-stubs/components/eq3btsmart/__init__.pyi +18 -0
- homeassistant-stubs/components/eq3btsmart/climate.pyi +55 -0
- homeassistant-stubs/components/eq3btsmart/config_flow.pyi +17 -0
- homeassistant-stubs/components/eq3btsmart/const.pyi +38 -0
- homeassistant-stubs/components/eq3btsmart/entity.pyi +10 -0
- homeassistant-stubs/components/eq3btsmart/models.pyi +20 -0
- homeassistant-stubs/components/eq3btsmart/schemas.pyi +6 -0
- homeassistant-stubs/components/esphome/datetime.pyi +14 -0
- homeassistant-stubs/components/esphome/entry_data.pyi +4 -5
- homeassistant-stubs/components/esphome/event.pyi +16 -0
- homeassistant-stubs/components/esphome/manager.pyi +5 -4
- homeassistant-stubs/components/esphome/update.pyi +0 -1
- homeassistant-stubs/components/esphome/valve.pyi +30 -0
- homeassistant-stubs/components/esphome/voice_assistant.pyi +24 -8
- homeassistant-stubs/components/filter/sensor.pyi +2 -2
- homeassistant-stubs/components/fritz/__init__.pyi +2 -2
- homeassistant-stubs/components/fritz/button.pyi +16 -3
- homeassistant-stubs/components/fritz/common.pyi +6 -3
- homeassistant-stubs/components/fritz/config_flow.pyi +7 -2
- homeassistant-stubs/components/fritz/const.pyi +5 -1
- homeassistant-stubs/components/fritzbox/climate.pyi +1 -1
- homeassistant-stubs/components/fritzbox/config_flow.pyi +2 -0
- homeassistant-stubs/components/fritzbox/coordinator.pyi +4 -2
- homeassistant-stubs/components/generic_hygrostat/humidifier.pyi +4 -2
- homeassistant-stubs/components/generic_thermostat/climate.pyi +2 -2
- homeassistant-stubs/components/geo_location/trigger.pyi +2 -2
- homeassistant-stubs/components/glances/coordinator.pyi +1 -0
- homeassistant-stubs/components/glances/sensor.pyi +6 -5
- homeassistant-stubs/components/group/entity.pyi +6 -12
- homeassistant-stubs/components/group/event.pyi +2 -2
- homeassistant-stubs/components/group/media_player.pyi +2 -2
- homeassistant-stubs/components/group/notify.pyi +2 -1
- homeassistant-stubs/components/group/registry.pyi +6 -4
- homeassistant-stubs/components/history/websocket_api.pyi +6 -6
- homeassistant-stubs/components/history_stats/coordinator.pyi +2 -2
- homeassistant-stubs/components/history_stats/data.pyi +1 -2
- homeassistant-stubs/components/homeassistant/logbook.pyi +5 -3
- homeassistant-stubs/components/homeassistant/triggers/numeric_state.pyi +2 -2
- homeassistant-stubs/components/homeassistant/triggers/state.pyi +2 -2
- homeassistant-stubs/components/homeassistant/triggers/time.pyi +2 -2
- homeassistant-stubs/components/homeassistant_alerts/__init__.pyi +3 -1
- homeassistant-stubs/components/homeassistant_sky_connect/__init__.pyi +7 -9
- homeassistant-stubs/components/homeassistant_sky_connect/config_flow.pyi +61 -6
- homeassistant-stubs/components/homeassistant_sky_connect/const.pyi +8 -0
- homeassistant-stubs/components/homeassistant_sky_connect/util.pyi +23 -2
- homeassistant-stubs/components/homekit/accessories.pyi +2 -2
- homeassistant-stubs/components/homekit/type_cameras.pyi +3 -2
- homeassistant-stubs/components/homekit/type_covers.pyi +2 -2
- homeassistant-stubs/components/homekit/type_humidifiers.pyi +2 -2
- homeassistant-stubs/components/homekit/type_thermostats.pyi +2 -2
- homeassistant-stubs/components/homekit/util.pyi +3 -4
- homeassistant-stubs/components/homeworks/__init__.pyi +7 -2
- homeassistant-stubs/components/homeworks/button.pyi +1 -1
- homeassistant-stubs/components/http/__init__.pyi +9 -6
- homeassistant-stubs/components/http/auth.pyi +11 -3
- homeassistant-stubs/components/http/const.pyi +7 -0
- homeassistant-stubs/components/http/session.pyi +29 -0
- homeassistant-stubs/components/hydrawise/__init__.pyi +3 -6
- homeassistant-stubs/components/hydrawise/binary_sensor.pyi +1 -4
- homeassistant-stubs/components/hydrawise/config_flow.pyi +8 -9
- homeassistant-stubs/components/hydrawise/sensor.pyi +2 -4
- homeassistant-stubs/components/hydrawise/switch.pyi +2 -5
- homeassistant-stubs/components/image/__init__.pyi +2 -2
- homeassistant-stubs/components/imap/__init__.pyi +20 -4
- homeassistant-stubs/components/imap/config_flow.pyi +2 -1
- homeassistant-stubs/components/imap/const.pyi +5 -2
- homeassistant-stubs/components/imap/coordinator.pyi +5 -2
- homeassistant-stubs/components/integration/sensor.pyi +12 -13
- homeassistant-stubs/components/islamic_prayer_times/config_flow.pyi +1 -3
- homeassistant-stubs/components/islamic_prayer_times/coordinator.pyi +4 -4
- homeassistant-stubs/components/isy994/helpers.pyi +1 -1
- homeassistant-stubs/components/jvc_projector/select.pyi +30 -0
- homeassistant-stubs/components/knx/expose.pyi +2 -2
- homeassistant-stubs/components/knx/helpers/__init__.pyi +0 -0
- homeassistant-stubs/components/knx/notify.pyi +16 -3
- homeassistant-stubs/components/knx/repairs.pyi +7 -0
- homeassistant-stubs/components/local_todo/todo.pyi +1 -0
- homeassistant-stubs/components/logbook/__init__.pyi +1 -0
- homeassistant-stubs/components/logbook/helpers.pyi +5 -4
- homeassistant-stubs/components/logbook/models.pyi +4 -3
- homeassistant-stubs/components/logbook/processor.pyi +3 -2
- homeassistant-stubs/components/logger/helpers.pyi +4 -1
- homeassistant-stubs/components/matter/config_flow.pyi +4 -0
- homeassistant-stubs/components/matter/light.pyi +3 -0
- homeassistant-stubs/components/media_extractor/__init__.pyi +4 -4
- homeassistant-stubs/components/media_extractor/const.pyi +5 -0
- homeassistant-stubs/components/min_max/sensor.pyi +2 -2
- homeassistant-stubs/components/minecraft_server/sensor.pyi +2 -2
- homeassistant-stubs/components/modbus/__init__.pyi +2 -2
- homeassistant-stubs/components/modbus/base_platform.pyi +1 -1
- homeassistant-stubs/components/modbus/climate.pyi +9 -3
- homeassistant-stubs/components/modbus/const.pyi +7 -0
- homeassistant-stubs/components/modbus/modbus.pyi +1 -0
- homeassistant-stubs/components/modbus/validators.pyi +2 -1
- homeassistant-stubs/components/mqtt/__init__.pyi +1 -2
- homeassistant-stubs/components/mqtt/client.pyi +37 -12
- homeassistant-stubs/components/mqtt/config_flow.pyi +9 -1
- homeassistant-stubs/components/mqtt/mixins.pyi +7 -4
- homeassistant-stubs/components/mqtt/models.pyi +1 -1
- homeassistant-stubs/components/mqtt/notify.pyi +31 -0
- homeassistant-stubs/components/mysensors/gateway.pyi +1 -0
- homeassistant-stubs/components/netatmo/__init__.pyi +2 -0
- homeassistant-stubs/components/netatmo/binary_sensor.pyi +20 -0
- homeassistant-stubs/components/netatmo/camera.pyi +8 -11
- homeassistant-stubs/components/netatmo/climate.pyi +11 -19
- homeassistant-stubs/components/netatmo/cover.pyi +5 -7
- homeassistant-stubs/components/netatmo/entity.pyi +40 -10
- homeassistant-stubs/components/netatmo/fan.pyi +5 -8
- homeassistant-stubs/components/netatmo/light.pyi +11 -19
- homeassistant-stubs/components/netatmo/select.pyi +4 -7
- homeassistant-stubs/components/netatmo/sensor.pyi +36 -49
- homeassistant-stubs/components/netatmo/switch.pyi +5 -7
- homeassistant-stubs/components/nextdns/__init__.pyi +1 -38
- homeassistant-stubs/components/nextdns/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/nextdns/button.pyi +1 -1
- homeassistant-stubs/components/nextdns/coordinator.pyi +42 -0
- homeassistant-stubs/components/nextdns/sensor.pyi +1 -1
- homeassistant-stubs/components/nextdns/switch.pyi +1 -1
- homeassistant-stubs/components/nfandroidtv/notify.pyi +2 -1
- homeassistant-stubs/components/notify/__init__.pyi +31 -2
- homeassistant-stubs/components/notify/const.pyi +2 -0
- homeassistant-stubs/components/number/const.pyi +1 -0
- homeassistant-stubs/components/number/significant_change.pyi +1 -1
- homeassistant-stubs/components/oncue/__init__.pyi +2 -1
- homeassistant-stubs/components/oncue/config_flow.pyi +7 -1
- homeassistant-stubs/components/onewire/model.pyi +1 -1
- homeassistant-stubs/components/onewire/onewirehub.pyi +2 -2
- homeassistant-stubs/components/open_meteo/weather.pyi +2 -1
- homeassistant-stubs/components/prometheus/__init__.pyi +1 -2
- homeassistant-stubs/components/proximity/__init__.pyi +1 -1
- homeassistant-stubs/components/proximity/coordinator.pyi +2 -2
- homeassistant-stubs/components/purpleair/config_flow.pyi +2 -2
- homeassistant-stubs/components/rabbitair/config_flow.pyi +4 -4
- homeassistant-stubs/components/recorder/__init__.pyi +1 -0
- homeassistant-stubs/components/recorder/auto_repairs/states/__init__.pyi +0 -0
- homeassistant-stubs/components/recorder/core.pyi +6 -5
- homeassistant-stubs/components/recorder/db_schema.pyi +3 -3
- homeassistant-stubs/components/recorder/history/__init__.pyi +5 -6
- homeassistant-stubs/components/recorder/history/legacy.pyi +7 -7
- homeassistant-stubs/components/recorder/history/modern.pyi +7 -7
- homeassistant-stubs/components/recorder/models/event.pyi +4 -1
- homeassistant-stubs/components/recorder/pool.pyi +1 -1
- homeassistant-stubs/components/recorder/services.pyi +1 -0
- homeassistant-stubs/components/recorder/statistics.pyi +4 -4
- homeassistant-stubs/components/recorder/table_managers/__init__.pyi +4 -3
- homeassistant-stubs/components/recorder/table_managers/event_types.pyi +5 -3
- homeassistant-stubs/components/recorder/table_managers/state_attributes.pyi +3 -3
- homeassistant-stubs/components/recorder/table_managers/states_meta.pyi +2 -2
- homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi +3 -3
- homeassistant-stubs/components/recorder/tasks.pyi +2 -1
- homeassistant-stubs/components/recorder/websocket_api.pyi +1 -1
- homeassistant-stubs/components/rest/__init__.pyi +2 -2
- homeassistant-stubs/components/rest/const.pyi +1 -0
- homeassistant-stubs/components/rest/data.pyi +1 -0
- homeassistant-stubs/components/rest/schema.pyi +1 -1
- homeassistant-stubs/components/rfxtrx/__init__.pyi +1 -1
- homeassistant-stubs/components/rfxtrx/config_flow.pyi +2 -2
- homeassistant-stubs/components/rfxtrx/event.pyi +1 -0
- homeassistant-stubs/components/ring/__init__.pyi +25 -0
- homeassistant-stubs/components/ring/binary_sensor.pyi +35 -0
- homeassistant-stubs/components/ring/button.pyi +20 -0
- homeassistant-stubs/components/ring/camera.pyi +43 -0
- homeassistant-stubs/components/ring/config_flow.pyi +26 -0
- homeassistant-stubs/components/ring/const.pyi +12 -0
- homeassistant-stubs/components/ring/coordinator.pyi +25 -0
- homeassistant-stubs/components/ring/diagnostics.pyi +11 -0
- homeassistant-stubs/components/ring/entity.pyi +33 -0
- homeassistant-stubs/components/ring/light.pyi +34 -0
- homeassistant-stubs/components/ring/sensor.pyi +39 -0
- homeassistant-stubs/components/ring/siren.pyi +23 -0
- homeassistant-stubs/components/ring/switch.pyi +31 -0
- homeassistant-stubs/components/romy/binary_sensor.pyi +19 -0
- homeassistant-stubs/components/romy/config_flow.pyi +7 -7
- homeassistant-stubs/components/romy/sensor.pyi +20 -0
- homeassistant-stubs/components/sensor/__init__.pyi +1 -1
- homeassistant-stubs/components/sensor/significant_change.pyi +1 -1
- homeassistant-stubs/components/shelly/__init__.pyi +2 -4
- homeassistant-stubs/components/shelly/coordinator.pyi +8 -7
- homeassistant-stubs/components/shelly/switch.pyi +1 -1
- homeassistant-stubs/components/shelly/utils.pyi +1 -0
- homeassistant-stubs/components/starlink/coordinator.pyi +1 -0
- homeassistant-stubs/components/statistics/sensor.pyi +2 -2
- homeassistant-stubs/components/switch/light.pyi +2 -2
- homeassistant-stubs/components/synology_dsm/__init__.pyi +2 -2
- homeassistant-stubs/components/synology_dsm/camera.pyi +3 -2
- homeassistant-stubs/components/synology_dsm/common.pyi +6 -2
- homeassistant-stubs/components/synology_dsm/coordinator.pyi +4 -4
- homeassistant-stubs/components/synology_dsm/diagnostics.pyi +0 -1
- homeassistant-stubs/components/system_log/__init__.pyi +3 -3
- homeassistant-stubs/components/threshold/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/tibber/sensor.pyi +1 -0
- homeassistant-stubs/components/tplink/coordinator.pyi +2 -0
- homeassistant-stubs/components/tplink/entity.pyi +1 -0
- homeassistant-stubs/components/tplink/light.pyi +1 -1
- homeassistant-stubs/components/tplink/sensor.pyi +4 -3
- homeassistant-stubs/components/tplink_omada/switch.pyi +12 -14
- homeassistant-stubs/components/trend/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/unifi/__init__.pyi +2 -0
- homeassistant-stubs/components/unifi/button.pyi +2 -1
- homeassistant-stubs/components/unifi/hub/entity_helper.pyi +44 -0
- homeassistant-stubs/components/unifi/hub/hub.pyi +8 -13
- homeassistant-stubs/components/unifi/sensor.pyi +2 -1
- homeassistant-stubs/components/velbus/cover.pyi +2 -0
- homeassistant-stubs/components/weather/significant_change.pyi +1 -1
- homeassistant-stubs/components/websocket_api/commands.pyi +2 -2
- homeassistant-stubs/components/websocket_api/messages.pyi +1 -2
- homeassistant-stubs/components/websocket_api/sensor.pyi +3 -7
- homeassistant-stubs/components/withings/__init__.pyi +2 -8
- homeassistant-stubs/components/withings/config_flow.pyi +1 -1
- homeassistant-stubs/components/withings/const.pyi +0 -2
- homeassistant-stubs/components/withings/coordinator.pyi +1 -0
- homeassistant-stubs/components/zone/__init__.pyi +8 -10
- homeassistant-stubs/components/zone/trigger.pyi +2 -2
- homeassistant-stubs/components/zwave_js/config_flow.pyi +1 -1
- homeassistant-stubs/config.pyi +1 -1
- homeassistant-stubs/config_entries.pyi +32 -29
- homeassistant-stubs/const.pyi +11 -6
- homeassistant-stubs/core.pyi +57 -24
- homeassistant-stubs/data_entry_flow.pyi +3 -3
- homeassistant-stubs/exceptions.pyi +4 -2
- homeassistant-stubs/helpers/aiohttp_client.pyi +1 -0
- homeassistant-stubs/helpers/area_registry.pyi +28 -6
- homeassistant-stubs/helpers/backports/__init__.pyi +0 -0
- homeassistant-stubs/helpers/backports/aiohttp_resolver.pyi +21 -0
- homeassistant-stubs/helpers/category_registry.pyi +16 -6
- homeassistant-stubs/helpers/data_entry_flow.pyi +1 -1
- homeassistant-stubs/helpers/deprecation.pyi +5 -0
- homeassistant-stubs/helpers/device_registry.pyi +25 -12
- homeassistant-stubs/helpers/dispatcher.pyi +1 -1
- homeassistant-stubs/helpers/entity.pyi +6 -3
- homeassistant-stubs/helpers/entity_registry.pyi +24 -16
- homeassistant-stubs/helpers/event.pyi +10 -17
- homeassistant-stubs/helpers/floor_registry.pyi +14 -3
- homeassistant-stubs/helpers/frame.pyi +2 -2
- homeassistant-stubs/helpers/httpx_client.pyi +1 -1
- homeassistant-stubs/helpers/icon.pyi +3 -2
- homeassistant-stubs/helpers/intent.pyi +1 -2
- homeassistant-stubs/helpers/label_registry.pyi +14 -3
- homeassistant-stubs/helpers/network.pyi +2 -2
- homeassistant-stubs/helpers/normalized_name_base_registry.pyi +4 -6
- homeassistant-stubs/helpers/registry.pyi +19 -4
- homeassistant-stubs/helpers/reload.pyi +1 -1
- homeassistant-stubs/helpers/schema_config_entry_flow.pyi +2 -2
- homeassistant-stubs/helpers/script.pyi +1 -1
- homeassistant-stubs/helpers/service.pyi +4 -1
- homeassistant-stubs/helpers/significant_change.pyi +4 -4
- homeassistant-stubs/helpers/start.pyi +3 -1
- homeassistant-stubs/helpers/template.pyi +6 -3
- homeassistant-stubs/helpers/translation.pyi +5 -9
- homeassistant-stubs/helpers/typing.pyi +11 -7
- homeassistant-stubs/requirements.pyi +2 -0
- homeassistant-stubs/setup.pyi +1 -0
- homeassistant-stubs/util/async_.pyi +1 -6
- homeassistant-stubs/util/dt.pyi +5 -4
- homeassistant-stubs/util/event_type.pyi +14 -0
- homeassistant-stubs/util/logging.pyi +3 -4
- homeassistant-stubs/util/loop.pyi +15 -0
- homeassistant-stubs/util/signal_type.pyi +1 -1
- homeassistant-stubs/util/timeout.pyi +6 -6
- homeassistant-stubs/util/yaml/loader.pyi +3 -4
- homeassistant-stubs/util/yaml/objects.pyi +12 -2
- {homeassistant_stubs-2024.4.4.dist-info → homeassistant_stubs-2024.5.0.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.4.4.dist-info → homeassistant_stubs-2024.5.0.dist-info}/RECORD +372 -315
- {homeassistant_stubs-2024.4.4.dist-info → homeassistant_stubs-2024.5.0.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2024.4.4.dist-info → homeassistant_stubs-2024.5.0.dist-info}/WHEEL +0 -0
@@ -1,45 +1,40 @@
|
|
1
1
|
import aiounifi
|
2
2
|
from ..const import ATTR_MANUFACTURER as ATTR_MANUFACTURER, CONF_SITE_ID as CONF_SITE_ID, PLATFORMS as PLATFORMS
|
3
3
|
from .config import UnifiConfig as UnifiConfig
|
4
|
+
from .entity_helper import UnifiEntityHelper as UnifiEntityHelper
|
4
5
|
from .entity_loader import UnifiEntityLoader as UnifiEntityLoader
|
5
6
|
from .websocket import UnifiWebsocket as UnifiWebsocket
|
6
7
|
from _typeshed import Incomplete
|
7
8
|
from datetime import datetime
|
8
9
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
9
|
-
from homeassistant.core import
|
10
|
+
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
10
11
|
from homeassistant.helpers.device_registry import DeviceEntry as DeviceEntry, DeviceEntryType as DeviceEntryType, DeviceInfo as DeviceInfo
|
11
12
|
from homeassistant.helpers.dispatcher import async_dispatcher_send as async_dispatcher_send
|
12
|
-
from homeassistant.helpers.event import async_call_later as async_call_later, async_track_time_interval as async_track_time_interval
|
13
|
-
|
14
|
-
CHECK_HEARTBEAT_INTERVAL: Incomplete
|
15
13
|
|
16
14
|
class UnifiHub:
|
17
15
|
hass: Incomplete
|
18
16
|
api: Incomplete
|
19
17
|
config: Incomplete
|
20
18
|
entity_loader: Incomplete
|
19
|
+
_entity_helper: Incomplete
|
21
20
|
websocket: Incomplete
|
22
21
|
site: Incomplete
|
23
22
|
is_admin: bool
|
24
|
-
_cancel_heartbeat_check: Incomplete
|
25
|
-
_heartbeat_time: Incomplete
|
26
|
-
poe_command_queue: Incomplete
|
27
|
-
_cancel_poe_command: Incomplete
|
28
23
|
def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry, api: aiounifi.Controller) -> None: ...
|
29
24
|
@staticmethod
|
30
25
|
def get_hub(hass: HomeAssistant, config_entry: ConfigEntry) -> UnifiHub: ...
|
31
26
|
@property
|
32
27
|
def available(self) -> bool: ...
|
33
28
|
@property
|
29
|
+
def signal_heartbeat_missed(self) -> str: ...
|
30
|
+
def update_heartbeat(self, unique_id: str, heartbeat_expire_time: datetime) -> None: ...
|
31
|
+
def remove_heartbeat(self, unique_id: str) -> None: ...
|
32
|
+
def queue_poe_port_command(self, device_id: str, port_idx: int, poe_mode: str) -> None: ...
|
33
|
+
@property
|
34
34
|
def signal_reachable(self) -> str: ...
|
35
35
|
@property
|
36
36
|
def signal_options_update(self) -> str: ...
|
37
|
-
@property
|
38
|
-
def signal_heartbeat_missed(self) -> str: ...
|
39
37
|
async def initialize(self) -> None: ...
|
40
|
-
def async_heartbeat(self, unique_id: str, heartbeat_expire_time: datetime | None = None) -> None: ...
|
41
|
-
def _async_check_for_stale(self, *_: datetime) -> None: ...
|
42
|
-
def async_queue_poe_port_command(self, device_id: str, port_idx: int, poe_mode: str) -> None: ...
|
43
38
|
@property
|
44
39
|
def device_info(self) -> DeviceInfo: ...
|
45
40
|
def async_update_device_registry(self) -> DeviceEntry: ...
|
@@ -13,7 +13,7 @@ from datetime import date, datetime
|
|
13
13
|
from decimal import Decimal
|
14
14
|
from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass, UnitOfTemperature as UnitOfTemperature
|
15
15
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
16
|
-
from homeassistant.const import EntityCategory as EntityCategory, UnitOfDataRate as UnitOfDataRate, UnitOfPower as UnitOfPower
|
16
|
+
from homeassistant.const import EntityCategory as EntityCategory, PERCENTAGE as PERCENTAGE, UnitOfDataRate as UnitOfDataRate, UnitOfPower as UnitOfPower
|
17
17
|
from homeassistant.core import Event as core_Event, HomeAssistant as HomeAssistant, callback as callback
|
18
18
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
19
19
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
@@ -29,6 +29,7 @@ def async_device_uptime_value_fn(hub: UnifiHub, device: Device) -> datetime | No
|
|
29
29
|
def async_device_uptime_value_changed_fn(old: StateType | date | datetime | Decimal, new: datetime | float | str | None) -> bool: ...
|
30
30
|
def async_device_outlet_power_supported_fn(hub: UnifiHub, obj_id: str) -> bool: ...
|
31
31
|
def async_device_outlet_supported_fn(hub: UnifiHub, obj_id: str) -> bool: ...
|
32
|
+
def device_system_stats_supported_fn(stat_index: int, hub: UnifiHub, obj_id: str) -> bool: ...
|
32
33
|
def async_client_is_connected_fn(hub: UnifiHub, obj_id: str) -> bool: ...
|
33
34
|
def async_device_state_value_fn(hub: UnifiHub, device: Device) -> str: ...
|
34
35
|
|
@@ -12,7 +12,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
|
|
12
12
|
|
13
13
|
class VelbusCover(VelbusEntity, CoverEntity):
|
14
14
|
_channel: VelbusBlind
|
15
|
+
_assumed_closed: bool
|
15
16
|
_attr_supported_features: Incomplete
|
17
|
+
_attr_assumed_state: bool
|
16
18
|
def __init__(self, channel: VelbusBlind) -> None: ...
|
17
19
|
@property
|
18
20
|
def is_closed(self) -> bool | None: ...
|
@@ -7,5 +7,5 @@ from typing import Any
|
|
7
7
|
SIGNIFICANT_ATTRIBUTES: set[str]
|
8
8
|
VALID_CARDINAL_DIRECTIONS: list[str]
|
9
9
|
|
10
|
-
def _cardinal_to_degrees(value: str |
|
10
|
+
def _cardinal_to_degrees(value: str | float | None) -> int | float | None: ...
|
11
11
|
def async_check_significant_change(hass: HomeAssistant, old_state: str, old_attrs: dict, new_state: str, new_attrs: dict, **kwargs: Any) -> bool | None: ...
|
@@ -7,11 +7,11 @@ from homeassistant.auth.models import User as User
|
|
7
7
|
from homeassistant.auth.permissions.const import POLICY_READ as POLICY_READ
|
8
8
|
from homeassistant.auth.permissions.events import SUBSCRIBE_ALLOWLIST as SUBSCRIBE_ALLOWLIST
|
9
9
|
from homeassistant.const import EVENT_STATE_CHANGED as EVENT_STATE_CHANGED, MATCH_ALL as MATCH_ALL, SIGNAL_BOOTSTRAP_INTEGRATIONS as SIGNAL_BOOTSTRAP_INTEGRATIONS
|
10
|
-
from homeassistant.core import Context as Context, Event as Event, HomeAssistant as HomeAssistant, ServiceResponse as ServiceResponse, State as State, callback as callback
|
10
|
+
from homeassistant.core import Context as Context, Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant, ServiceResponse as ServiceResponse, State as State, callback as callback
|
11
11
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError, ServiceNotFound as ServiceNotFound, ServiceValidationError as ServiceValidationError, TemplateError as TemplateError, Unauthorized as Unauthorized
|
12
12
|
from homeassistant.helpers import entity as entity, template as template
|
13
13
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
14
|
-
from homeassistant.helpers.event import
|
14
|
+
from homeassistant.helpers.event import TrackTemplate as TrackTemplate, TrackTemplateResult as TrackTemplateResult, async_track_template_result as async_track_template_result
|
15
15
|
from homeassistant.helpers.json import ExtendedJSONEncoder as ExtendedJSONEncoder, JSON_DUMP as JSON_DUMP, find_paths_unserializable_data as find_paths_unserializable_data, json_bytes as json_bytes
|
16
16
|
from homeassistant.helpers.service import async_get_all_descriptions as async_get_all_descriptions
|
17
17
|
from homeassistant.loader import Integration as Integration, IntegrationNotFound as IntegrationNotFound, async_get_integration as async_get_integration, async_get_integration_descriptions as async_get_integration_descriptions, async_get_integrations as async_get_integrations
|
@@ -1,8 +1,7 @@
|
|
1
1
|
from . import const as const
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from homeassistant.const import COMPRESSED_STATE_ATTRIBUTES as COMPRESSED_STATE_ATTRIBUTES, COMPRESSED_STATE_CONTEXT as COMPRESSED_STATE_CONTEXT, COMPRESSED_STATE_LAST_CHANGED as COMPRESSED_STATE_LAST_CHANGED, COMPRESSED_STATE_LAST_UPDATED as COMPRESSED_STATE_LAST_UPDATED, COMPRESSED_STATE_STATE as COMPRESSED_STATE_STATE
|
4
|
-
from homeassistant.core import Event as Event, State as State
|
5
|
-
from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData
|
4
|
+
from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData, State as State
|
6
5
|
from homeassistant.helpers.json import JSON_DUMP as JSON_DUMP, find_paths_unserializable_data as find_paths_unserializable_data, json_bytes as json_bytes
|
7
6
|
from homeassistant.util.json import format_unserializable_data as format_unserializable_data
|
8
7
|
from typing import Any, Final
|
@@ -8,13 +8,9 @@ from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfo
|
|
8
8
|
async def async_setup_platform(hass: HomeAssistant, config: ConfigType, async_add_entities: AddEntitiesCallback, discovery_info: DiscoveryInfoType | None = None) -> None: ...
|
9
9
|
|
10
10
|
class APICount(SensorEntity):
|
11
|
-
|
11
|
+
_attr_name: str
|
12
|
+
_attr_native_unit_of_measurement: str
|
13
|
+
_attr_native_value: int
|
12
14
|
def __init__(self) -> None: ...
|
13
15
|
async def async_added_to_hass(self) -> None: ...
|
14
|
-
@property
|
15
|
-
def name(self) -> str: ...
|
16
|
-
@property
|
17
|
-
def native_value(self) -> int: ...
|
18
|
-
@property
|
19
|
-
def native_unit_of_measurement(self) -> str: ...
|
20
16
|
def _update_count(self) -> None: ...
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from .const import
|
1
|
+
from .const import DEFAULT_TITLE as DEFAULT_TITLE, DOMAIN as DOMAIN, LOGGER as LOGGER
|
2
2
|
from .coordinator import WithingsActivityDataUpdateCoordinator as WithingsActivityDataUpdateCoordinator, WithingsBedPresenceDataUpdateCoordinator as WithingsBedPresenceDataUpdateCoordinator, WithingsDataUpdateCoordinator as WithingsDataUpdateCoordinator, WithingsGoalsDataUpdateCoordinator as WithingsGoalsDataUpdateCoordinator, WithingsMeasurementDataUpdateCoordinator as WithingsMeasurementDataUpdateCoordinator, WithingsSleepDataUpdateCoordinator as WithingsSleepDataUpdateCoordinator, WithingsWorkoutDataUpdateCoordinator as WithingsWorkoutDataUpdateCoordinator
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from aiohttp.web import Request as Request, Response as Response
|
@@ -6,26 +6,20 @@ from aiowithings import WithingsClient
|
|
6
6
|
from collections.abc import Awaitable, Callable as Callable
|
7
7
|
from dataclasses import dataclass
|
8
8
|
from homeassistant.components import cloud as cloud
|
9
|
-
from homeassistant.components.application_credentials import ClientCredential as ClientCredential, async_import_client_credential as async_import_client_credential
|
10
9
|
from homeassistant.components.http import HomeAssistantView as HomeAssistantView
|
11
10
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
12
|
-
from homeassistant.const import CONF_ACCESS_TOKEN as CONF_ACCESS_TOKEN,
|
11
|
+
from homeassistant.const import CONF_ACCESS_TOKEN as CONF_ACCESS_TOKEN, CONF_TOKEN as CONF_TOKEN, CONF_WEBHOOK_ID as CONF_WEBHOOK_ID, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
|
13
12
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
14
13
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
15
14
|
from homeassistant.helpers.config_entry_oauth2_flow import OAuth2Session as OAuth2Session, async_get_config_entry_implementation as async_get_config_entry_implementation
|
16
15
|
from homeassistant.helpers.event import async_call_later as async_call_later
|
17
|
-
from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
|
18
|
-
from homeassistant.helpers.typing import ConfigType as ConfigType
|
19
16
|
from typing import Any
|
20
17
|
|
21
18
|
PLATFORMS: Incomplete
|
22
|
-
CONFIG_SCHEMA: Incomplete
|
23
19
|
SUBSCRIBE_DELAY: Incomplete
|
24
20
|
UNSUBSCRIBE_DELAY: Incomplete
|
25
21
|
CONF_CLOUDHOOK_URL: str
|
26
22
|
|
27
|
-
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
|
28
|
-
|
29
23
|
@dataclass(slots=True)
|
30
24
|
class WithingsData:
|
31
25
|
client: WithingsClient
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import logging
|
2
|
-
from .const import
|
2
|
+
from .const import DEFAULT_TITLE as DEFAULT_TITLE, DOMAIN as DOMAIN
|
3
3
|
from collections.abc import Mapping
|
4
4
|
from homeassistant.components.webhook import async_generate_id as async_generate_id
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigFlowResult as ConfigFlowResult
|
@@ -19,6 +19,7 @@ class WithingsDataUpdateCoordinator(DataUpdateCoordinator[_T], metaclass=abc.ABC
|
|
19
19
|
_last_valid_update: datetime | None
|
20
20
|
webhooks_connected: bool
|
21
21
|
coordinator_name: str
|
22
|
+
name: Incomplete
|
22
23
|
_client: Incomplete
|
23
24
|
notification_categories: Incomplete
|
24
25
|
def __init__(self, hass: HomeAssistant, client: WithingsClient) -> None: ...
|
@@ -3,7 +3,7 @@ from _typeshed import Incomplete
|
|
3
3
|
from collections.abc import Callable as Callable
|
4
4
|
from homeassistant import config_entries as config_entries
|
5
5
|
from homeassistant.const import ATTR_EDITABLE as ATTR_EDITABLE, ATTR_LATITUDE as ATTR_LATITUDE, ATTR_LONGITUDE as ATTR_LONGITUDE, ATTR_PERSONS as ATTR_PERSONS, CONF_ICON as CONF_ICON, CONF_ID as CONF_ID, CONF_LATITUDE as CONF_LATITUDE, CONF_LONGITUDE as CONF_LONGITUDE, CONF_NAME as CONF_NAME, CONF_RADIUS as CONF_RADIUS, EVENT_CORE_CONFIG_UPDATE as EVENT_CORE_CONFIG_UPDATE, SERVICE_RELOAD as SERVICE_RELOAD, STATE_HOME as STATE_HOME, STATE_NOT_HOME as STATE_NOT_HOME, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
6
|
-
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, State as State, callback as callback
|
6
|
+
from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, State as State, callback as callback
|
7
7
|
from homeassistant.helpers import collection as collection, entity_component as entity_component, event as event, service as service, storage as storage
|
8
8
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
9
9
|
from homeassistant.loader import bind_hass as bind_hass
|
@@ -47,27 +47,25 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: config_entries.C
|
|
47
47
|
|
48
48
|
class Zone(collection.CollectionEntity):
|
49
49
|
editable: bool
|
50
|
+
_attr_should_poll: bool
|
50
51
|
_config: Incomplete
|
51
52
|
_attrs: Incomplete
|
52
53
|
_remove_listener: Incomplete
|
53
54
|
_persons_in_zone: Incomplete
|
54
55
|
def __init__(self, config: ConfigType) -> None: ...
|
56
|
+
_attr_name: Incomplete
|
57
|
+
_case_folded_name: Incomplete
|
58
|
+
_attr_unique_id: Incomplete
|
59
|
+
_attr_icon: Incomplete
|
60
|
+
def _set_attrs_from_config(self) -> None: ...
|
55
61
|
@classmethod
|
56
62
|
def from_storage(cls, config: ConfigType) -> Self: ...
|
57
63
|
@classmethod
|
58
64
|
def from_yaml(cls, config: ConfigType) -> Self: ...
|
59
65
|
@property
|
60
66
|
def state(self) -> int: ...
|
61
|
-
@property
|
62
|
-
def name(self) -> str: ...
|
63
|
-
@property
|
64
|
-
def unique_id(self) -> str | None: ...
|
65
|
-
@property
|
66
|
-
def icon(self) -> str | None: ...
|
67
|
-
@property
|
68
|
-
def should_poll(self) -> bool: ...
|
69
67
|
async def async_update_config(self, config: ConfigType) -> None: ...
|
70
|
-
def _person_state_change_listener(self, evt: Event[
|
68
|
+
def _person_state_change_listener(self, evt: Event[EventStateChangedData]) -> None: ...
|
71
69
|
async def async_added_to_hass(self) -> None: ...
|
72
70
|
_attr_extra_state_attributes: Incomplete
|
73
71
|
def _generate_attrs(self) -> None: ...
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from _typeshed import Incomplete
|
2
2
|
from homeassistant.const import ATTR_FRIENDLY_NAME as ATTR_FRIENDLY_NAME, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_EVENT as CONF_EVENT, CONF_PLATFORM as CONF_PLATFORM, CONF_ZONE as CONF_ZONE
|
3
|
-
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, HassJob as HassJob, HomeAssistant as HomeAssistant, callback as callback
|
3
|
+
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, EventStateChangedData as EventStateChangedData, HassJob as HassJob, HomeAssistant as HomeAssistant, callback as callback
|
4
4
|
from homeassistant.helpers import condition as condition, location as location
|
5
|
-
from homeassistant.helpers.event import
|
5
|
+
from homeassistant.helpers.event import async_track_state_change_event as async_track_state_change_event
|
6
6
|
from homeassistant.helpers.trigger import TriggerActionType as TriggerActionType, TriggerInfo as TriggerInfo
|
7
7
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
8
8
|
|
@@ -51,7 +51,7 @@ class BaseZwaveJSFlow(ConfigEntryBaseFlow, ABC, metaclass=abc.ABCMeta):
|
|
51
51
|
def __init__(self) -> None: ...
|
52
52
|
@property
|
53
53
|
@abstractmethod
|
54
|
-
def flow_manager(self) -> FlowManager[ConfigFlowResult
|
54
|
+
def flow_manager(self) -> FlowManager[ConfigFlowResult]: ...
|
55
55
|
async def async_step_install_addon(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
56
56
|
async def async_step_install_failed(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
57
57
|
async def async_step_start_addon(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
homeassistant-stubs/config.pyi
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import voluptuous as vol
|
2
2
|
from . import auth as auth
|
3
|
-
from .const import ATTR_ASSUMED_STATE as ATTR_ASSUMED_STATE, ATTR_FRIENDLY_NAME as ATTR_FRIENDLY_NAME, ATTR_HIDDEN as ATTR_HIDDEN, CONF_ALLOWLIST_EXTERNAL_DIRS as CONF_ALLOWLIST_EXTERNAL_DIRS, CONF_ALLOWLIST_EXTERNAL_URLS as CONF_ALLOWLIST_EXTERNAL_URLS, CONF_AUTH_MFA_MODULES as CONF_AUTH_MFA_MODULES, CONF_AUTH_PROVIDERS as CONF_AUTH_PROVIDERS, CONF_COUNTRY as CONF_COUNTRY, CONF_CURRENCY as CONF_CURRENCY, CONF_CUSTOMIZE as CONF_CUSTOMIZE, CONF_CUSTOMIZE_DOMAIN as CONF_CUSTOMIZE_DOMAIN, CONF_CUSTOMIZE_GLOB as CONF_CUSTOMIZE_GLOB, CONF_ELEVATION as CONF_ELEVATION, CONF_EXTERNAL_URL as CONF_EXTERNAL_URL, CONF_ID as CONF_ID, CONF_INTERNAL_URL as CONF_INTERNAL_URL, CONF_LANGUAGE as CONF_LANGUAGE, CONF_LATITUDE as CONF_LATITUDE, CONF_LEGACY_TEMPLATES as CONF_LEGACY_TEMPLATES, CONF_LONGITUDE as CONF_LONGITUDE, CONF_MEDIA_DIRS as CONF_MEDIA_DIRS, CONF_NAME as CONF_NAME, CONF_PACKAGES as CONF_PACKAGES, CONF_PLATFORM as CONF_PLATFORM, CONF_TEMPERATURE_UNIT as CONF_TEMPERATURE_UNIT, CONF_TIME_ZONE as CONF_TIME_ZONE, CONF_TYPE as CONF_TYPE, CONF_UNIT_SYSTEM as CONF_UNIT_SYSTEM, LEGACY_CONF_WHITELIST_EXTERNAL_DIRS as LEGACY_CONF_WHITELIST_EXTERNAL_DIRS, __version__ as __version__
|
3
|
+
from .const import ATTR_ASSUMED_STATE as ATTR_ASSUMED_STATE, ATTR_FRIENDLY_NAME as ATTR_FRIENDLY_NAME, ATTR_HIDDEN as ATTR_HIDDEN, CONF_ALLOWLIST_EXTERNAL_DIRS as CONF_ALLOWLIST_EXTERNAL_DIRS, CONF_ALLOWLIST_EXTERNAL_URLS as CONF_ALLOWLIST_EXTERNAL_URLS, CONF_AUTH_MFA_MODULES as CONF_AUTH_MFA_MODULES, CONF_AUTH_PROVIDERS as CONF_AUTH_PROVIDERS, CONF_COUNTRY as CONF_COUNTRY, CONF_CURRENCY as CONF_CURRENCY, CONF_CUSTOMIZE as CONF_CUSTOMIZE, CONF_CUSTOMIZE_DOMAIN as CONF_CUSTOMIZE_DOMAIN, CONF_CUSTOMIZE_GLOB as CONF_CUSTOMIZE_GLOB, CONF_DEBUG as CONF_DEBUG, CONF_ELEVATION as CONF_ELEVATION, CONF_EXTERNAL_URL as CONF_EXTERNAL_URL, CONF_ID as CONF_ID, CONF_INTERNAL_URL as CONF_INTERNAL_URL, CONF_LANGUAGE as CONF_LANGUAGE, CONF_LATITUDE as CONF_LATITUDE, CONF_LEGACY_TEMPLATES as CONF_LEGACY_TEMPLATES, CONF_LONGITUDE as CONF_LONGITUDE, CONF_MEDIA_DIRS as CONF_MEDIA_DIRS, CONF_NAME as CONF_NAME, CONF_PACKAGES as CONF_PACKAGES, CONF_PLATFORM as CONF_PLATFORM, CONF_TEMPERATURE_UNIT as CONF_TEMPERATURE_UNIT, CONF_TIME_ZONE as CONF_TIME_ZONE, CONF_TYPE as CONF_TYPE, CONF_UNIT_SYSTEM as CONF_UNIT_SYSTEM, LEGACY_CONF_WHITELIST_EXTERNAL_DIRS as LEGACY_CONF_WHITELIST_EXTERNAL_DIRS, __version__ as __version__
|
4
4
|
from .core import ConfigSource as ConfigSource, HomeAssistant as HomeAssistant, callback as callback
|
5
5
|
from .exceptions import ConfigValidationError as ConfigValidationError, HomeAssistantError as HomeAssistantError
|
6
6
|
from .generated.currencies import HISTORIC_CURRENCIES as HISTORIC_CURRENCIES
|
@@ -118,25 +118,27 @@ class ConfigEntry:
|
|
118
118
|
unique_id: str | None
|
119
119
|
state: ConfigEntryState
|
120
120
|
reason: str | None
|
121
|
+
error_reason_translation_key: str | None
|
122
|
+
error_reason_translation_placeholders: dict[str, Any] | None
|
121
123
|
pref_disable_new_entities: bool
|
122
124
|
pref_disable_polling: bool
|
123
125
|
version: int
|
126
|
+
source: str
|
124
127
|
minor_version: int
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
_integration_for_domain: Incomplete
|
128
|
+
disabled_by: ConfigEntryDisabler | None
|
129
|
+
supports_unload: bool | None
|
130
|
+
supports_remove_device: bool | None
|
131
|
+
_supports_options: bool | None
|
132
|
+
_supports_reconfigure: bool | None
|
133
|
+
update_listeners: list[UpdateListenerType]
|
134
|
+
_async_cancel_retry_setup: Callable[[], Any] | None
|
135
|
+
_on_unload: list[Callable[[], Coroutine[Any, Any, None] | None]] | None
|
136
|
+
setup_lock: asyncio.Lock
|
137
|
+
_reauth_lock: asyncio.Lock
|
138
|
+
_reconfigure_lock: asyncio.Lock
|
139
|
+
_tasks: set[asyncio.Future[Any]]
|
140
|
+
_background_tasks: set[asyncio.Future[Any]]
|
141
|
+
_integration_for_domain: loader.Integration | None
|
140
142
|
_tries: int
|
141
143
|
def __init__(self, *, version: int, minor_version: int, domain: str, title: str, data: Mapping[str, Any], source: str, pref_disable_new_entities: bool | None = None, pref_disable_polling: bool | None = None, options: Mapping[str, Any] | None = None, unique_id: str | None = None, entry_id: str | None = None, state: ConfigEntryState = ..., disabled_by: ConfigEntryDisabler | None = None) -> None: ...
|
142
144
|
def __repr__(self) -> str: ...
|
@@ -150,11 +152,12 @@ class ConfigEntry:
|
|
150
152
|
def as_json_fragment(self) -> json_fragment: ...
|
151
153
|
async def async_setup(self, hass: HomeAssistant, *, integration: loader.Integration | None = None) -> None: ...
|
152
154
|
def _async_setup_again(self, hass: HomeAssistant, *_: Any) -> None: ...
|
155
|
+
async def async_setup_locked(self, hass: HomeAssistant, integration: loader.Integration | None = None) -> None: ...
|
153
156
|
def async_shutdown(self) -> None: ...
|
154
157
|
def async_cancel_retry_setup(self) -> None: ...
|
155
158
|
async def async_unload(self, hass: HomeAssistant, *, integration: loader.Integration | None = None) -> bool: ...
|
156
159
|
async def async_remove(self, hass: HomeAssistant) -> None: ...
|
157
|
-
def _async_set_state(self, hass: HomeAssistant, state: ConfigEntryState, reason: str | None) -> None: ...
|
160
|
+
def _async_set_state(self, hass: HomeAssistant, state: ConfigEntryState, reason: str | None, error_reason_translation_key: str | None = None, error_reason_translation_placeholders: dict[str, str] | None = None) -> None: ...
|
158
161
|
async def async_migrate(self, hass: HomeAssistant) -> bool: ...
|
159
162
|
def add_update_listener(self, listener: UpdateListenerType) -> CALLBACK_TYPE: ...
|
160
163
|
def as_dict(self) -> dict[str, Any]: ...
|
@@ -165,14 +168,14 @@ class ConfigEntry:
|
|
165
168
|
def async_start_reconfigure(self, hass: HomeAssistant, context: dict[str, Any] | None = None, data: dict[str, Any] | None = None) -> None: ...
|
166
169
|
async def _async_init_reconfigure(self, hass: HomeAssistant, context: dict[str, Any] | None = None, data: dict[str, Any] | None = None) -> None: ...
|
167
170
|
def async_get_active_flows(self, hass: HomeAssistant, sources: set[str]) -> Generator[ConfigFlowResult, None, None]: ...
|
168
|
-
def async_create_task(self, hass: HomeAssistant, target: Coroutine[Any, Any, _R], name: str | None = None, eager_start: bool =
|
169
|
-
def async_create_background_task(self, hass: HomeAssistant, target: Coroutine[Any, Any, _R], name: str, eager_start: bool =
|
171
|
+
def async_create_task(self, hass: HomeAssistant, target: Coroutine[Any, Any, _R], name: str | None = None, eager_start: bool = True) -> asyncio.Task[_R]: ...
|
172
|
+
def async_create_background_task(self, hass: HomeAssistant, target: Coroutine[Any, Any, _R], name: str, eager_start: bool = True) -> asyncio.Task[_R]: ...
|
170
173
|
|
171
174
|
current_entry: ContextVar[ConfigEntry | None]
|
172
175
|
|
173
176
|
class FlowCancelledError(Exception): ...
|
174
177
|
|
175
|
-
class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult
|
178
|
+
class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult]):
|
176
179
|
_flow_result = ConfigFlowResult
|
177
180
|
config_entries: Incomplete
|
178
181
|
_hass_config: Incomplete
|
@@ -185,9 +188,9 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str
|
|
185
188
|
async def async_init(self, handler: str, *, context: dict[str, Any] | None = None, data: Any = None) -> ConfigFlowResult: ...
|
186
189
|
async def _async_init(self, flow_id: str, handler: str, context: dict, data: Any) -> tuple[ConfigFlow, ConfigFlowResult]: ...
|
187
190
|
def async_shutdown(self) -> None: ...
|
188
|
-
async def async_finish_flow(self, flow: data_entry_flow.FlowHandler[ConfigFlowResult
|
191
|
+
async def async_finish_flow(self, flow: data_entry_flow.FlowHandler[ConfigFlowResult], result: ConfigFlowResult) -> ConfigFlowResult: ...
|
189
192
|
async def async_create_flow(self, handler_key: str, *, context: dict | None = None, data: Any = None) -> ConfigFlow: ...
|
190
|
-
async def async_post_init(self, flow: data_entry_flow.FlowHandler[ConfigFlowResult
|
193
|
+
async def async_post_init(self, flow: data_entry_flow.FlowHandler[ConfigFlowResult], result: ConfigFlowResult) -> None: ...
|
191
194
|
def _async_discovery(self) -> None: ...
|
192
195
|
|
193
196
|
class ConfigEntryItems(UserDict[str, ConfigEntry]):
|
@@ -240,7 +243,7 @@ class ConfigEntries:
|
|
240
243
|
async def _old_conf_migrator(old_config: dict[str, Any]) -> dict[str, Any]: ...
|
241
244
|
def _async_abort_entries_match(other_entries: list[ConfigEntry], match_dict: dict[str, Any] | None = None) -> None: ...
|
242
245
|
|
243
|
-
class ConfigEntryBaseFlow(data_entry_flow.FlowHandler[ConfigFlowResult
|
246
|
+
class ConfigEntryBaseFlow(data_entry_flow.FlowHandler[ConfigFlowResult]):
|
244
247
|
_flow_result = ConfigFlowResult
|
245
248
|
|
246
249
|
class ConfigFlow(ConfigEntryBaseFlow):
|
@@ -275,14 +278,14 @@ class ConfigFlow(ConfigEntryBaseFlow):
|
|
275
278
|
async def async_step_usb(self, discovery_info: UsbServiceInfo) -> ConfigFlowResult: ...
|
276
279
|
async def async_step_zeroconf(self, discovery_info: ZeroconfServiceInfo) -> ConfigFlowResult: ...
|
277
280
|
def async_create_entry(self, *, title: str, data: Mapping[str, Any], description: str | None = None, description_placeholders: Mapping[str, str] | None = None, options: Mapping[str, Any] | None = None) -> ConfigFlowResult: ...
|
278
|
-
def async_update_reload_and_abort(self, entry: ConfigEntry, *, unique_id: str | None | UndefinedType = ..., title: str | UndefinedType = ..., data: Mapping[str, Any] | UndefinedType = ..., options: Mapping[str, Any] | UndefinedType = ..., reason: str = 'reauth_successful') -> ConfigFlowResult: ...
|
281
|
+
def async_update_reload_and_abort(self, entry: ConfigEntry, *, unique_id: str | None | UndefinedType = ..., title: str | UndefinedType = ..., data: Mapping[str, Any] | UndefinedType = ..., options: Mapping[str, Any] | UndefinedType = ..., reason: str = 'reauth_successful', reload_even_if_entry_is_unchanged: bool = True) -> ConfigFlowResult: ...
|
279
282
|
|
280
|
-
class OptionsFlowManager(data_entry_flow.FlowManager[ConfigFlowResult
|
283
|
+
class OptionsFlowManager(data_entry_flow.FlowManager[ConfigFlowResult]):
|
281
284
|
_flow_result = ConfigFlowResult
|
282
285
|
def _async_get_config_entry(self, config_entry_id: str) -> ConfigEntry: ...
|
283
286
|
async def async_create_flow(self, handler_key: str, *, context: dict[str, Any] | None = None, data: dict[str, Any] | None = None) -> OptionsFlow: ...
|
284
|
-
async def async_finish_flow(self, flow: data_entry_flow.FlowHandler[ConfigFlowResult
|
285
|
-
async def _async_setup_preview(self, flow: data_entry_flow.FlowHandler[ConfigFlowResult
|
287
|
+
async def async_finish_flow(self, flow: data_entry_flow.FlowHandler[ConfigFlowResult], result: ConfigFlowResult) -> ConfigFlowResult: ...
|
288
|
+
async def _async_setup_preview(self, flow: data_entry_flow.FlowHandler[ConfigFlowResult]) -> None: ...
|
286
289
|
|
287
290
|
class OptionsFlow(ConfigEntryBaseFlow):
|
288
291
|
handler: str
|
@@ -304,10 +307,10 @@ class EntityRegistryDisabledHandler:
|
|
304
307
|
_remove_call_later: Incomplete
|
305
308
|
def __init__(self, hass: HomeAssistant) -> None: ...
|
306
309
|
def async_setup(self) -> None: ...
|
307
|
-
def _handle_entry_updated(self, event: Event) -> None: ...
|
308
|
-
|
310
|
+
def _handle_entry_updated(self, event: Event[entity_registry.EventEntityRegistryUpdatedData]) -> None: ...
|
311
|
+
def _async_handle_reload(self, _now: Any) -> None: ...
|
309
312
|
|
310
|
-
def _handle_entry_updated_filter(event_data:
|
313
|
+
def _handle_entry_updated_filter(event_data: entity_registry.EventEntityRegistryUpdatedData) -> bool: ...
|
311
314
|
async def support_entry_unload(hass: HomeAssistant, domain: str) -> bool: ...
|
312
315
|
async def support_remove_from_device(hass: HomeAssistant, domain: str) -> bool: ...
|
313
316
|
async def _support_single_config_entry_only(hass: HomeAssistant, domain: str) -> bool: ...
|
homeassistant-stubs/const.pyi
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
+
from .core import EventStateChangedData as EventStateChangedData
|
1
2
|
from .helpers.deprecation import DeprecatedConstant as DeprecatedConstant, DeprecatedConstantEnum as DeprecatedConstantEnum, all_with_deprecated_constants as all_with_deprecated_constants, check_if_deprecated_constant as check_if_deprecated_constant, dir_with_deprecated_constants as dir_with_deprecated_constants
|
3
|
+
from .helpers.typing import NoEventData as NoEventData
|
4
|
+
from .util.event_type import EventType as EventType
|
2
5
|
from .util.signal_type import SignalType as SignalType
|
3
6
|
from _typeshed import Incomplete
|
4
7
|
from enum import StrEnum
|
@@ -23,6 +26,7 @@ class Platform(StrEnum):
|
|
23
26
|
CALENDAR: str
|
24
27
|
CAMERA: str
|
25
28
|
CLIMATE: str
|
29
|
+
CONVERSATION: str
|
26
30
|
COVER: str
|
27
31
|
DATE: str
|
28
32
|
DATETIME: str
|
@@ -260,21 +264,22 @@ CONF_WHILE: Final[str]
|
|
260
264
|
CONF_WHITELIST: Final[str]
|
261
265
|
CONF_ALLOWLIST_EXTERNAL_DIRS: Final[str]
|
262
266
|
LEGACY_CONF_WHITELIST_EXTERNAL_DIRS: Final[str]
|
267
|
+
CONF_DEBUG: Final[str]
|
263
268
|
CONF_XY: Final[str]
|
264
269
|
CONF_ZONE: Final[str]
|
265
270
|
EVENT_CALL_SERVICE: Final[str]
|
266
271
|
EVENT_COMPONENT_LOADED: Final[str]
|
267
272
|
EVENT_CORE_CONFIG_UPDATE: Final[str]
|
268
|
-
EVENT_HOMEASSISTANT_CLOSE:
|
269
|
-
EVENT_HOMEASSISTANT_START:
|
270
|
-
EVENT_HOMEASSISTANT_STARTED:
|
271
|
-
EVENT_HOMEASSISTANT_STOP:
|
272
|
-
EVENT_HOMEASSISTANT_FINAL_WRITE:
|
273
|
+
EVENT_HOMEASSISTANT_CLOSE: EventType[NoEventData]
|
274
|
+
EVENT_HOMEASSISTANT_START: EventType[NoEventData]
|
275
|
+
EVENT_HOMEASSISTANT_STARTED: EventType[NoEventData]
|
276
|
+
EVENT_HOMEASSISTANT_STOP: EventType[NoEventData]
|
277
|
+
EVENT_HOMEASSISTANT_FINAL_WRITE: EventType[NoEventData]
|
273
278
|
EVENT_LOGBOOK_ENTRY: Final[str]
|
274
279
|
EVENT_LOGGING_CHANGED: Final[str]
|
275
280
|
EVENT_SERVICE_REGISTERED: Final[str]
|
276
281
|
EVENT_SERVICE_REMOVED: Final[str]
|
277
|
-
EVENT_STATE_CHANGED:
|
282
|
+
EVENT_STATE_CHANGED: EventType[EventStateChangedData]
|
278
283
|
EVENT_STATE_REPORTED: Final[str]
|
279
284
|
EVENT_THEMES_UPDATED: Final[str]
|
280
285
|
EVENT_PANELS_UPDATED: Final[str]
|