homeassistant-stubs 2025.1.0b9__py3-none-any.whl → 2025.1.1__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 +2 -2
- homeassistant-stubs/auth/auth_store.pyi +4 -4
- homeassistant-stubs/auth/mfa_modules/notify.pyi +5 -5
- homeassistant-stubs/auth/mfa_modules/totp.pyi +1 -1
- homeassistant-stubs/auth/models.pyi +3 -0
- homeassistant-stubs/auth/providers/__init__.pyi +4 -4
- homeassistant-stubs/auth/providers/command_line.pyi +1 -1
- homeassistant-stubs/auth/providers/homeassistant.pyi +2 -2
- homeassistant-stubs/bootstrap.pyi +2 -1
- homeassistant-stubs/components/abode/camera.pyi +2 -1
- homeassistant-stubs/components/abode/config_flow.pyi +3 -3
- homeassistant-stubs/components/acaia/config_flow.pyi +2 -2
- homeassistant-stubs/components/acmeda/config_flow.pyi +1 -2
- homeassistant-stubs/components/acmeda/hub.pyi +4 -3
- homeassistant-stubs/components/actiontec/device_tracker.pyi +4 -4
- homeassistant-stubs/components/aftership/sensor.pyi +2 -2
- homeassistant-stubs/components/airgradient/config_flow.pyi +3 -2
- homeassistant-stubs/components/airgradient/update.pyi +2 -0
- homeassistant-stubs/components/airq/sensor.pyi +1 -1
- homeassistant-stubs/components/airthings_ble/config_flow.pyi +2 -2
- homeassistant-stubs/components/airvisual/config_flow.pyi +2 -2
- homeassistant-stubs/components/alarm_control_panel/__init__.pyi +6 -1
- homeassistant-stubs/components/alert/entity.pyi +1 -1
- homeassistant-stubs/components/alexa/auth.pyi +3 -2
- homeassistant-stubs/components/alexa/config.pyi +3 -3
- homeassistant-stubs/components/alexa/intent.pyi +5 -5
- homeassistant-stubs/components/alexa/resources.pyi +5 -5
- homeassistant-stubs/components/alexa/state_report.pyi +6 -6
- homeassistant-stubs/components/amazon_polly/tts.pyi +2 -2
- homeassistant-stubs/components/amberelectric/config_flow.pyi +3 -4
- homeassistant-stubs/components/ambient_network/config_flow.pyi +1 -2
- homeassistant-stubs/components/ambient_station/__init__.pyi +1 -1
- homeassistant-stubs/components/amcrest/__init__.pyi +1 -1
- homeassistant-stubs/components/amcrest/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/amcrest/camera.pyi +9 -8
- homeassistant-stubs/components/analytics/analytics.pyi +1 -1
- homeassistant-stubs/components/androidtv/config_flow.pyi +4 -4
- homeassistant-stubs/components/androidtv/media_player.pyi +8 -7
- homeassistant-stubs/components/androidtv_remote/config_flow.pyi +2 -2
- homeassistant-stubs/components/androidtv_remote/entity.pyi +2 -1
- homeassistant-stubs/components/androidtv_remote/media_player.pyi +2 -1
- homeassistant-stubs/components/anova/coordinator.pyi +1 -1
- homeassistant-stubs/components/apple_tv/config_flow.pyi +2 -2
- homeassistant-stubs/components/apple_tv/media_player.pyi +2 -2
- homeassistant-stubs/components/aranet/config_flow.pyi +3 -3
- homeassistant-stubs/components/arris_tg2492lg/device_tracker.pyi +1 -1
- homeassistant-stubs/components/aruba/device_tracker.pyi +4 -4
- homeassistant-stubs/components/assist_pipeline/audio_enhancer.pyi +4 -2
- homeassistant-stubs/components/assist_pipeline/pipeline.pyi +4 -4
- homeassistant-stubs/components/assist_satellite/entity.pyi +0 -1
- homeassistant-stubs/components/asuswrt/bridge.pyi +6 -6
- homeassistant-stubs/components/asuswrt/config_flow.pyi +1 -1
- homeassistant-stubs/components/asuswrt/router.pyi +8 -8
- homeassistant-stubs/components/auth/indieauth.pyi +1 -1
- homeassistant-stubs/components/automation/__init__.pyi +15 -1
- homeassistant-stubs/components/automation/trace.pyi +1 -2
- homeassistant-stubs/components/axis/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/axis/config_flow.pyi +2 -2
- homeassistant-stubs/components/axis/hub/entity_loader.pyi +3 -3
- homeassistant-stubs/components/axis/hub/hub.pyi +2 -1
- homeassistant-stubs/components/backup/agent.pyi +2 -0
- homeassistant-stubs/components/backup/backup.pyi +1 -1
- homeassistant-stubs/components/backup/manager.pyi +11 -11
- homeassistant-stubs/components/backup/store.pyi +1 -1
- homeassistant-stubs/components/baf/config_flow.pyi +1 -1
- homeassistant-stubs/components/bang_olufsen/entity.pyi +10 -9
- homeassistant-stubs/components/bang_olufsen/media_player.pyi +13 -13
- homeassistant-stubs/components/bayesian/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/binary_sensor/__init__.pyi +4 -2
- homeassistant-stubs/components/blue_current/__init__.pyi +3 -2
- homeassistant-stubs/components/blueprint/models.pyi +1 -1
- homeassistant-stubs/components/bluesound/config_flow.pyi +2 -2
- homeassistant-stubs/components/bluesound/media_player.pyi +10 -9
- homeassistant-stubs/components/bluetooth/active_update_coordinator.pyi +3 -3
- homeassistant-stubs/components/bluetooth/active_update_processor.pyi +2 -2
- homeassistant-stubs/components/bluetooth/config_flow.pyi +4 -4
- homeassistant-stubs/components/bluetooth/manager.pyi +1 -1
- homeassistant-stubs/components/bluetooth/match.pyi +13 -11
- homeassistant-stubs/components/bluetooth/passive_update_coordinator.pyi +1 -2
- homeassistant-stubs/components/bluetooth/passive_update_processor.pyi +4 -4
- homeassistant-stubs/components/bluetooth/storage.pyi +2 -3
- homeassistant-stubs/components/bluetooth/update_coordinator.pyi +1 -1
- homeassistant-stubs/components/bmw_connected_drive/config_flow.pyi +2 -2
- homeassistant-stubs/components/bmw_connected_drive/coordinator.pyi +1 -1
- homeassistant-stubs/components/bond/config_flow.pyi +1 -1
- homeassistant-stubs/components/bond/entity.pyi +1 -1
- homeassistant-stubs/components/bond/fan.pyi +3 -3
- homeassistant-stubs/components/bond/utils.pyi +5 -5
- homeassistant-stubs/components/braviatv/config_flow.pyi +3 -3
- homeassistant-stubs/components/braviatv/coordinator.pyi +14 -13
- homeassistant-stubs/components/brother/config_flow.pyi +3 -2
- homeassistant-stubs/components/bthome/config_flow.pyi +3 -4
- homeassistant-stubs/components/button/__init__.pyi +4 -2
- homeassistant-stubs/components/calendar/__init__.pyi +0 -1
- homeassistant-stubs/components/calendar/trigger.pyi +3 -3
- homeassistant-stubs/components/cambridge_audio/config_flow.pyi +1 -1
- homeassistant-stubs/components/camera/__init__.pyi +24 -9
- homeassistant-stubs/components/camera/prefs.pyi +1 -1
- homeassistant-stubs/components/canary/alarm_control_panel.pyi +1 -1
- homeassistant-stubs/components/canary/camera.pyi +3 -3
- homeassistant-stubs/components/cert_expiry/config_flow.pyi +1 -1
- homeassistant-stubs/components/cert_expiry/coordinator.pyi +1 -1
- homeassistant-stubs/components/clickatell/notify.pyi +2 -2
- homeassistant-stubs/components/clicksend/notify.pyi +4 -4
- homeassistant-stubs/components/climate/__init__.pyi +26 -1
- homeassistant-stubs/components/cloud/alexa_config.pyi +3 -3
- homeassistant-stubs/components/cloud/client.pyi +4 -4
- homeassistant-stubs/components/cloud/prefs.pyi +2 -2
- homeassistant-stubs/components/command_line/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/command_line/cover.pyi +3 -2
- homeassistant-stubs/components/command_line/sensor.pyi +4 -3
- homeassistant-stubs/components/command_line/switch.pyi +2 -1
- homeassistant-stubs/components/configurator/__init__.pyi +1 -1
- homeassistant-stubs/components/counter/__init__.pyi +2 -2
- homeassistant-stubs/components/cover/__init__.pyi +8 -2
- homeassistant-stubs/components/crownstone/config_flow.pyi +4 -4
- homeassistant-stubs/components/crownstone/entry_manager.pyi +3 -2
- homeassistant-stubs/components/date/__init__.pyi +4 -1
- homeassistant-stubs/components/datetime/__init__.pyi +4 -1
- homeassistant-stubs/components/deconz/button.pyi +1 -1
- homeassistant-stubs/components/deconz/deconz_event.pyi +1 -1
- homeassistant-stubs/components/deconz/entity.pyi +1 -1
- homeassistant-stubs/components/deconz/hub/hub.pyi +6 -6
- homeassistant-stubs/components/deconz/light.pyi +2 -2
- homeassistant-stubs/components/demo/cover.pyi +4 -4
- homeassistant-stubs/components/demo/fan.pyi +4 -4
- homeassistant-stubs/components/demo/geo_location.pyi +1 -1
- homeassistant-stubs/components/demo/media_player.pyi +2 -2
- homeassistant-stubs/components/demo/remote.pyi +1 -1
- homeassistant-stubs/components/demo/vacuum.pyi +1 -1
- homeassistant-stubs/components/derivative/sensor.pyi +3 -2
- homeassistant-stubs/components/device_tracker/config_entry.pyi +10 -2
- homeassistant-stubs/components/device_tracker/legacy.pyi +6 -4
- homeassistant-stubs/components/devolo_home_control/entity.pyi +2 -2
- homeassistant-stubs/components/devolo_home_network/binary_sensor.pyi +1 -2
- homeassistant-stubs/components/devolo_home_network/image.pyi +1 -1
- homeassistant-stubs/components/devolo_home_network/update.pyi +1 -1
- homeassistant-stubs/components/dhcp/__init__.pyi +5 -3
- homeassistant-stubs/components/dlna_dmr/config_flow.pyi +7 -7
- homeassistant-stubs/components/dlna_dmr/media_player.pyi +1 -1
- homeassistant-stubs/components/dlna_dms/config_flow.pyi +4 -4
- homeassistant-stubs/components/dlna_dms/dms.pyi +2 -0
- homeassistant-stubs/components/doorbird/camera.pyi +1 -1
- homeassistant-stubs/components/doorbird/config_flow.pyi +1 -1
- homeassistant-stubs/components/doorbird/device.pyi +9 -3
- homeassistant-stubs/components/dormakaba_dkey/config_flow.pyi +4 -3
- homeassistant-stubs/components/dsmr/config_flow.pyi +1 -1
- homeassistant-stubs/components/dsmr/sensor.pyi +1 -1
- homeassistant-stubs/components/dunehd/media_player.pyi +2 -2
- homeassistant-stubs/components/ecovacs/controller.pyi +4 -4
- homeassistant-stubs/components/ecovacs/entity.pyi +3 -3
- homeassistant-stubs/components/ecovacs/vacuum.pyi +1 -1
- homeassistant-stubs/components/ecowitt/entity.pyi +1 -1
- homeassistant-stubs/components/eheimdigital/config_flow.pyi +1 -1
- homeassistant-stubs/components/eheimdigital/coordinator.pyi +2 -2
- homeassistant-stubs/components/electrasmart/config_flow.pyi +6 -5
- homeassistant-stubs/components/electric_kiwi/coordinator.pyi +1 -1
- homeassistant-stubs/components/elevenlabs/config_flow.pyi +5 -5
- homeassistant-stubs/components/elkm1/alarm_control_panel.pyi +5 -5
- homeassistant-stubs/components/elkm1/config_flow.pyi +2 -2
- homeassistant-stubs/components/elkm1/entity.pyi +1 -1
- homeassistant-stubs/components/emulated_hue/config.pyi +12 -12
- homeassistant-stubs/components/emulated_hue/upnp.pyi +1 -1
- homeassistant-stubs/components/energy/data.pyi +2 -2
- homeassistant-stubs/components/energy/sensor.pyi +3 -3
- homeassistant-stubs/components/enphase_envoy/config_flow.pyi +2 -2
- homeassistant-stubs/components/enphase_envoy/coordinator.pyi +1 -1
- homeassistant-stubs/components/esphome/assist_satellite.pyi +4 -4
- homeassistant-stubs/components/esphome/bluetooth.pyi +1 -2
- homeassistant-stubs/components/esphome/camera.pyi +2 -1
- homeassistant-stubs/components/esphome/config_flow.pyi +8 -8
- homeassistant-stubs/components/esphome/coordinator.pyi +1 -1
- homeassistant-stubs/components/esphome/dashboard.pyi +5 -4
- homeassistant-stubs/components/esphome/domain_data.pyi +1 -3
- homeassistant-stubs/components/esphome/entity.pyi +1 -1
- homeassistant-stubs/components/esphome/enum_mapper.pyi +1 -1
- homeassistant-stubs/components/esphome/manager.pyi +3 -3
- homeassistant-stubs/components/esphome/select.pyi +1 -1
- homeassistant-stubs/components/event/__init__.pyi +5 -3
- homeassistant-stubs/components/evohome/__init__.pyi +7 -5
- homeassistant-stubs/components/evohome/coordinator.pyi +1 -1
- homeassistant-stubs/components/evohome/entity.pyi +3 -3
- homeassistant-stubs/components/fan/__init__.pyi +8 -1
- homeassistant-stubs/components/feedreader/coordinator.pyi +6 -6
- homeassistant-stubs/components/filter/sensor.pyi +7 -6
- homeassistant-stubs/components/fitbit/api.pyi +1 -1
- homeassistant-stubs/components/flux_led/config_flow.pyi +2 -3
- homeassistant-stubs/components/flux_led/entity.pyi +2 -2
- homeassistant-stubs/components/flux_led/number.pyi +4 -2
- homeassistant-stubs/components/fritz/config_flow.pyi +1 -1
- homeassistant-stubs/components/fritz/coordinator.pyi +22 -19
- homeassistant-stubs/components/fritz/device_tracker.pyi +2 -1
- homeassistant-stubs/components/fritz/entity.pyi +3 -4
- homeassistant-stubs/components/fritz/image.pyi +1 -1
- homeassistant-stubs/components/fritz/switch.pyi +1 -1
- homeassistant-stubs/components/fritzbox/config_flow.pyi +3 -3
- homeassistant-stubs/components/fritzbox/coordinator.pyi +2 -2
- homeassistant-stubs/components/fritzbox/light.pyi +1 -1
- homeassistant-stubs/components/fritzbox_callmonitor/config_flow.pyi +1 -1
- homeassistant-stubs/components/fritzbox_callmonitor/sensor.pyi +4 -3
- homeassistant-stubs/components/fronius/__init__.pyi +8 -8
- homeassistant-stubs/components/fronius/config_flow.pyi +1 -1
- homeassistant-stubs/components/fronius/coordinator.pyi +1 -1
- homeassistant-stubs/components/frontend/__init__.pyi +4 -1
- homeassistant-stubs/components/fully_kiosk/config_flow.pyi +1 -2
- homeassistant-stubs/components/fully_kiosk/switch.pyi +2 -2
- homeassistant-stubs/components/fyta/coordinator.pyi +2 -2
- homeassistant-stubs/components/generic_hygrostat/humidifier.pyi +2 -2
- homeassistant-stubs/components/generic_thermostat/climate.pyi +1 -1
- homeassistant-stubs/components/geo_location/__init__.pyi +5 -0
- homeassistant-stubs/components/glances/coordinator.pyi +1 -1
- homeassistant-stubs/components/go2rtc/__init__.pyi +2 -2
- homeassistant-stubs/components/go2rtc/server.pyi +5 -4
- homeassistant-stubs/components/google/api.pyi +5 -5
- homeassistant-stubs/components/google/calendar.pyi +1 -1
- homeassistant-stubs/components/google/config_flow.pyi +1 -1
- homeassistant-stubs/components/google/coordinator.pyi +1 -1
- homeassistant-stubs/components/google/store.pyi +1 -1
- homeassistant-stubs/components/google_assistant_sdk/__init__.pyi +4 -3
- homeassistant-stubs/components/google_assistant_sdk/helpers.pyi +3 -3
- homeassistant-stubs/components/govee_ble/config_flow.pyi +4 -4
- homeassistant-stubs/components/govee_ble/coordinator.pyi +1 -1
- homeassistant-stubs/components/greeneye_monitor/sensor.pyi +5 -5
- homeassistant-stubs/components/group/cover.pyi +2 -2
- homeassistant-stubs/components/group/entity.pyi +5 -5
- homeassistant-stubs/components/group/fan.pyi +2 -2
- homeassistant-stubs/components/group/media_player.pyi +1 -1
- homeassistant-stubs/components/group/registry.pyi +4 -4
- homeassistant-stubs/components/group/sensor.pyi +4 -4
- homeassistant-stubs/components/guardian/__init__.pyi +2 -2
- homeassistant-stubs/components/guardian/config_flow.pyi +1 -1
- homeassistant-stubs/components/here_travel_time/config_flow.pyi +2 -2
- homeassistant-stubs/components/history_stats/coordinator.pyi +2 -2
- homeassistant-stubs/components/history_stats/data.pyi +2 -2
- homeassistant-stubs/components/holiday/config_flow.pyi +1 -1
- homeassistant-stubs/components/homeassistant/exposed_entities.pyi +2 -2
- homeassistant-stubs/components/homeassistant/repairs.pyi +1 -1
- homeassistant-stubs/components/homeassistant_hardware/firmware_config_flow.pyi +7 -5
- homeassistant-stubs/components/homeassistant_hardware/silabs_multiprotocol_addon.pyi +9 -9
- homeassistant-stubs/components/homeassistant_sky_connect/config_flow.pyi +2 -2
- homeassistant-stubs/components/homekit/__init__.pyi +7 -6
- homeassistant-stubs/components/homekit/accessories.pyi +2 -2
- homeassistant-stubs/components/homekit/aidmanager.pyi +3 -3
- homeassistant-stubs/components/homekit/config_flow.pyi +3 -3
- homeassistant-stubs/components/homekit/iidmanager.pyi +3 -3
- homeassistant-stubs/components/homekit/type_cameras.pyi +1 -1
- homeassistant-stubs/components/homekit/type_covers.pyi +1 -1
- homeassistant-stubs/components/homekit/type_fans.pyi +2 -2
- homeassistant-stubs/components/homekit/type_humidifiers.pyi +1 -1
- homeassistant-stubs/components/homekit/type_lights.pyi +2 -2
- homeassistant-stubs/components/homekit/type_media_players.pyi +2 -2
- homeassistant-stubs/components/homekit/type_remotes.pyi +2 -2
- homeassistant-stubs/components/homekit/type_switches.pyi +1 -1
- homeassistant-stubs/components/homekit/type_thermostats.pyi +3 -3
- homeassistant-stubs/components/homekit/type_triggers.pyi +1 -1
- homeassistant-stubs/components/homekit_controller/config_flow.pyi +7 -7
- homeassistant-stubs/components/homekit_controller/storage.pyi +1 -1
- homeassistant-stubs/components/http/__init__.pyi +3 -3
- homeassistant-stubs/components/http/ban.pyi +1 -1
- homeassistant-stubs/components/huawei_lte/device_tracker.pyi +1 -1
- homeassistant-stubs/components/huawei_lte/entity.pyi +1 -1
- homeassistant-stubs/components/humidifier/__init__.pyi +11 -2
- homeassistant-stubs/components/husqvarna_automower/api.pyi +1 -1
- homeassistant-stubs/components/husqvarna_automower/calendar.pyi +1 -1
- homeassistant-stubs/components/hyperion/camera.pyi +1 -1
- homeassistant-stubs/components/hyperion/config_flow.pyi +5 -4
- homeassistant-stubs/components/hyperion/light.pyi +6 -6
- homeassistant-stubs/components/hyperion/sensor.pyi +1 -1
- homeassistant-stubs/components/ibeacon/coordinator.pyi +14 -14
- homeassistant-stubs/components/idasen_desk/config_flow.pyi +2 -2
- homeassistant-stubs/components/image/__init__.pyi +6 -2
- homeassistant-stubs/components/image_processing/__init__.pyi +4 -5
- homeassistant-stubs/components/imap/coordinator.pyi +8 -7
- homeassistant-stubs/components/integration/sensor.pyi +7 -7
- homeassistant-stubs/components/intent/timers.pyi +6 -3
- homeassistant-stubs/components/ipp/config_flow.pyi +1 -1
- homeassistant-stubs/components/iron_os/config_flow.pyi +2 -3
- homeassistant-stubs/components/islamic_prayer_times/coordinator.pyi +1 -1
- homeassistant-stubs/components/isy994/binary_sensor.pyi +4 -4
- homeassistant-stubs/components/isy994/button.pyi +1 -1
- homeassistant-stubs/components/isy994/config_flow.pyi +2 -2
- homeassistant-stubs/components/isy994/entity.pyi +5 -5
- homeassistant-stubs/components/isy994/light.pyi +1 -1
- homeassistant-stubs/components/isy994/number.pyi +2 -2
- homeassistant-stubs/components/isy994/select.pyi +1 -1
- homeassistant-stubs/components/isy994/sensor.pyi +2 -2
- homeassistant-stubs/components/isy994/switch.pyi +1 -1
- homeassistant-stubs/components/jellyfin/config_flow.pyi +1 -1
- homeassistant-stubs/components/jellyfin/coordinator.pyi +8 -8
- homeassistant-stubs/components/jellyfin/entity.pyi +5 -5
- homeassistant-stubs/components/jellyfin/media_player.pyi +2 -2
- homeassistant-stubs/components/jewish_calendar/sensor.pyi +1 -1
- homeassistant-stubs/components/knocki/coordinator.pyi +1 -1
- homeassistant-stubs/components/knx/__init__.pyi +7 -6
- homeassistant-stubs/components/knx/climate.pyi +3 -3
- homeassistant-stubs/components/knx/config_flow.pyi +10 -9
- homeassistant-stubs/components/knx/cover.pyi +1 -1
- homeassistant-stubs/components/knx/device.pyi +1 -1
- homeassistant-stubs/components/knx/expose.pyi +7 -6
- homeassistant-stubs/components/knx/fan.pyi +1 -1
- homeassistant-stubs/components/knx/light.pyi +6 -4
- homeassistant-stubs/components/knx/select.pyi +1 -1
- homeassistant-stubs/components/knx/sensor.pyi +1 -1
- homeassistant-stubs/components/knx/storage/config_store.pyi +1 -1
- homeassistant-stubs/components/knx/telegrams.pyi +3 -2
- homeassistant-stubs/components/kraken/__init__.pyi +2 -2
- homeassistant-stubs/components/lacrosse/sensor.pyi +1 -1
- homeassistant-stubs/components/lacrosse_view/config_flow.pyi +2 -2
- homeassistant-stubs/components/lamarzocco/config_flow.pyi +3 -3
- homeassistant-stubs/components/lamarzocco/coordinator.pyi +1 -1
- homeassistant-stubs/components/lawn_mower/__init__.pyi +3 -1
- homeassistant-stubs/components/lcn/entity.pyi +3 -3
- homeassistant-stubs/components/ld2410_ble/config_flow.pyi +2 -2
- homeassistant-stubs/components/ld2410_ble/coordinator.pyi +1 -1
- homeassistant-stubs/components/led_ble/config_flow.pyi +2 -2
- homeassistant-stubs/components/lektrico/coordinator.pyi +3 -3
- homeassistant-stubs/components/lifx/__init__.pyi +1 -1
- homeassistant-stubs/components/lifx/config_flow.pyi +2 -3
- homeassistant-stubs/components/lifx/coordinator.pyi +7 -1
- homeassistant-stubs/components/lifx/light.pyi +3 -2
- homeassistant-stubs/components/lifx/manager.pyi +1 -1
- homeassistant-stubs/components/light/__init__.pyi +19 -2
- homeassistant-stubs/components/linear_garage_door/config_flow.pyi +1 -1
- homeassistant-stubs/components/linkplay/config_flow.pyi +1 -1
- homeassistant-stubs/components/lock/__init__.pyi +10 -1
- homeassistant-stubs/components/logbook/models.pyi +7 -0
- homeassistant-stubs/components/logbook/processor.pyi +3 -3
- homeassistant-stubs/components/logger/helpers.pyi +1 -1
- homeassistant-stubs/components/lookin/__init__.pyi +2 -2
- homeassistant-stubs/components/lookin/config_flow.pyi +2 -2
- homeassistant-stubs/components/lookin/entity.pyi +2 -2
- homeassistant-stubs/components/lookin/media_player.pyi +1 -1
- homeassistant-stubs/components/madvr/sensor.pyi +1 -1
- homeassistant-stubs/components/manual/alarm_control_panel.pyi +6 -6
- homeassistant-stubs/components/matrix/__init__.pyi +4 -4
- homeassistant-stubs/components/matter/adapter.pyi +2 -2
- homeassistant-stubs/components/matter/climate.pyi +1 -1
- homeassistant-stubs/components/matter/config_flow.pyi +4 -3
- homeassistant-stubs/components/matter/entity.pyi +4 -2
- homeassistant-stubs/components/media_player/__init__.pyi +37 -3
- homeassistant-stubs/components/met_eireann/__init__.pyi +3 -3
- homeassistant-stubs/components/mikrotik/coordinator.pyi +4 -4
- homeassistant-stubs/components/mikrotik/device.pyi +3 -3
- homeassistant-stubs/components/min_max/sensor.pyi +11 -11
- homeassistant-stubs/components/modbus/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/modbus/climate.pyi +4 -4
- homeassistant-stubs/components/modbus/entity.pyi +5 -5
- homeassistant-stubs/components/modbus/modbus.pyi +4 -3
- homeassistant-stubs/components/modbus/sensor.pyi +1 -1
- homeassistant-stubs/components/modem_callerid/config_flow.pyi +1 -1
- homeassistant-stubs/components/mold_indicator/sensor.pyi +6 -6
- homeassistant-stubs/components/mopeka/config_flow.pyi +4 -3
- homeassistant-stubs/components/motionmount/config_flow.pyi +1 -1
- homeassistant-stubs/components/motionmount/select.pyi +1 -1
- homeassistant-stubs/components/mqtt/client.pyi +13 -12
- homeassistant-stubs/components/mqtt/config_flow.pyi +4 -3
- homeassistant-stubs/components/mqtt/entity.pyi +10 -10
- homeassistant-stubs/components/mqtt/models.pyi +3 -3
- homeassistant-stubs/components/mqtt/tag.pyi +1 -1
- homeassistant-stubs/components/mqtt/util.pyi +2 -2
- homeassistant-stubs/components/mqtt/vacuum.pyi +1 -1
- homeassistant-stubs/components/music_assistant/config_flow.pyi +1 -2
- homeassistant-stubs/components/music_assistant/media_player.pyi +1 -1
- homeassistant-stubs/components/mysensors/config_flow.pyi +1 -1
- homeassistant-stubs/components/mysensors/entity.pyi +7 -7
- homeassistant-stubs/components/mysensors/light.pyi +1 -1
- homeassistant-stubs/components/nasweb/coordinator.pyi +4 -4
- homeassistant-stubs/components/neato/camera.pyi +4 -4
- homeassistant-stubs/components/neato/entity.pyi +1 -1
- homeassistant-stubs/components/neato/hub.pyi +1 -1
- homeassistant-stubs/components/neato/sensor.pyi +3 -2
- homeassistant-stubs/components/neato/switch.pyi +2 -2
- homeassistant-stubs/components/neato/vacuum.pyi +18 -18
- homeassistant-stubs/components/nest/camera.pyi +4 -4
- homeassistant-stubs/components/nest/config_flow.pyi +5 -5
- homeassistant-stubs/components/nest/media_source.pyi +2 -2
- homeassistant-stubs/components/netatmo/data_handler.pyi +3 -2
- homeassistant-stubs/components/netatmo/entity.pyi +2 -1
- homeassistant-stubs/components/network/network.pyi +2 -2
- homeassistant-stubs/components/nextdns/config_flow.pyi +2 -2
- homeassistant-stubs/components/nextdns/sensor.pyi +1 -1
- homeassistant-stubs/components/nightscout/sensor.pyi +2 -1
- homeassistant-stubs/components/nissan_leaf/__init__.pyi +6 -6
- homeassistant-stubs/components/nordpool/coordinator.pyi +1 -1
- homeassistant-stubs/components/notify/__init__.pyi +2 -1
- homeassistant-stubs/components/number/__init__.pyi +18 -11
- homeassistant-stubs/components/nut/__init__.pyi +3 -3
- homeassistant-stubs/components/nut/config_flow.pyi +4 -4
- homeassistant-stubs/components/onewire/config_flow.pyi +1 -1
- homeassistant-stubs/components/onewire/entity.pyi +2 -2
- homeassistant-stubs/components/onewire/onewirehub.pyi +3 -2
- homeassistant-stubs/components/openai_conversation/conversation.pyi +1 -1
- homeassistant-stubs/components/openexchangerates/config_flow.pyi +1 -2
- homeassistant-stubs/components/opensky/coordinator.pyi +1 -1
- homeassistant-stubs/components/openuv/config_flow.pyi +1 -1
- homeassistant-stubs/components/oralb/config_flow.pyi +4 -4
- homeassistant-stubs/components/overkiz/climate/atlantic_pass_apc_zone_control_zone.pyi +4 -1
- homeassistant-stubs/components/overkiz/coordinator.pyi +2 -2
- homeassistant-stubs/components/overkiz/light.pyi +1 -1
- homeassistant-stubs/components/overkiz/water_heater/domestic_hot_water_production.pyi +1 -1
- homeassistant-stubs/components/pi_hole/config_flow.pyi +1 -1
- homeassistant-stubs/components/plugwise/coordinator.pyi +2 -2
- homeassistant-stubs/components/powerwall/config_flow.pyi +2 -2
- homeassistant-stubs/components/private_ble_device/coordinator.pyi +8 -8
- homeassistant-stubs/components/private_ble_device/entity.pyi +1 -1
- homeassistant-stubs/components/prometheus/__init__.pyi +3 -3
- homeassistant-stubs/components/proximity/coordinator.pyi +8 -8
- homeassistant-stubs/components/purpleair/config_flow.pyi +2 -2
- homeassistant-stubs/components/pushbullet/api.pyi +1 -1
- homeassistant-stubs/components/radarr/coordinator.pyi +2 -2
- homeassistant-stubs/components/rainforest_raven/config_flow.pyi +2 -3
- homeassistant-stubs/components/rainmachine/coordinator.pyi +1 -1
- homeassistant-stubs/components/rainmachine/sensor.pyi +2 -2
- homeassistant-stubs/components/recollect_waste/calendar.pyi +1 -1
- homeassistant-stubs/components/recorder/core.pyi +26 -22
- homeassistant-stubs/components/recorder/executor.pyi +1 -1
- homeassistant-stubs/components/recorder/models/legacy.pyi +5 -5
- homeassistant-stubs/components/recorder/models/state.pyi +12 -2
- homeassistant-stubs/components/recorder/table_managers/__init__.pyi +1 -1
- homeassistant-stubs/components/recorder/table_managers/event_types.pyi +2 -2
- homeassistant-stubs/components/recorder/table_managers/recorder_runs.pyi +2 -2
- homeassistant-stubs/components/recorder/table_managers/states.pyi +4 -5
- homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi +2 -1
- homeassistant-stubs/components/remote/__init__.pyi +4 -1
- homeassistant-stubs/components/renault/config_flow.pyi +1 -1
- homeassistant-stubs/components/renault/renault_hub.pyi +2 -2
- homeassistant-stubs/components/renault/renault_vehicle.pyi +1 -1
- homeassistant-stubs/components/reolink/config_flow.pyi +2 -2
- homeassistant-stubs/components/reolink/host.pyi +12 -10
- homeassistant-stubs/components/reolink/update.pyi +3 -3
- homeassistant-stubs/components/rest/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/rest/data.pyi +4 -4
- homeassistant-stubs/components/rest/switch.pyi +10 -10
- homeassistant-stubs/components/rfxtrx/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/rfxtrx/config_flow.pyi +5 -5
- homeassistant-stubs/components/rfxtrx/cover.pyi +1 -1
- homeassistant-stubs/components/rfxtrx/entity.pyi +1 -1
- homeassistant-stubs/components/ridwell/calendar.pyi +1 -1
- homeassistant-stubs/components/ridwell/config_flow.pyi +2 -2
- homeassistant-stubs/components/ridwell/coordinator.pyi +1 -1
- homeassistant-stubs/components/ring/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/ring/camera.pyi +4 -4
- homeassistant-stubs/components/ring/coordinator.pyi +5 -5
- homeassistant-stubs/components/roborock/config_flow.pyi +2 -2
- homeassistant-stubs/components/roborock/coordinator.pyi +10 -4
- homeassistant-stubs/components/ruuvi_gateway/coordinator.pyi +1 -1
- homeassistant-stubs/components/ruuvitag_ble/config_flow.pyi +4 -4
- homeassistant-stubs/components/samsungtv/__init__.pyi +2 -1
- homeassistant-stubs/components/samsungtv/bridge.pyi +16 -14
- homeassistant-stubs/components/samsungtv/config_flow.pyi +15 -14
- homeassistant-stubs/components/samsungtv/coordinator.pyi +4 -3
- homeassistant-stubs/components/samsungtv/entity.pyi +2 -2
- homeassistant-stubs/components/samsungtv/media_player.pyi +8 -5
- homeassistant-stubs/components/schlage/coordinator.pyi +1 -1
- homeassistant-stubs/components/script/__init__.pyi +16 -0
- homeassistant-stubs/components/search/__init__.pyi +2 -1
- homeassistant-stubs/components/select/__init__.pyi +4 -2
- homeassistant-stubs/components/sensirion_ble/config_flow.pyi +4 -4
- homeassistant-stubs/components/sensor/__init__.pyi +17 -9
- homeassistant-stubs/components/sensoterra/coordinator.pyi +1 -1
- homeassistant-stubs/components/shelly/climate.pyi +8 -7
- homeassistant-stubs/components/shelly/coordinator.pyi +19 -15
- homeassistant-stubs/components/shelly/cover.pyi +1 -1
- homeassistant-stubs/components/shelly/entity.pyi +6 -6
- homeassistant-stubs/components/shelly/light.pyi +1 -1
- homeassistant-stubs/components/shelly/number.pyi +1 -1
- homeassistant-stubs/components/shelly/sensor.pyi +2 -2
- homeassistant-stubs/components/shelly/switch.pyi +2 -2
- homeassistant-stubs/components/shelly/update.pyi +2 -2
- homeassistant-stubs/components/shelly/valve.pyi +1 -1
- homeassistant-stubs/components/shopping_list/__init__.pyi +2 -2
- homeassistant-stubs/components/simplepush/notify.pyi +4 -4
- homeassistant-stubs/components/simplisafe/__init__.pyi +8 -6
- homeassistant-stubs/components/simplisafe/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/simplisafe/config_flow.pyi +1 -1
- homeassistant-stubs/components/simplisafe/sensor.pyi +1 -1
- homeassistant-stubs/components/siren/__init__.pyi +4 -2
- homeassistant-stubs/components/skybell/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/smhi/weather.pyi +2 -2
- homeassistant-stubs/components/smlight/config_flow.pyi +2 -1
- homeassistant-stubs/components/smlight/coordinator.pyi +1 -1
- homeassistant-stubs/components/smlight/sensor.pyi +1 -1
- homeassistant-stubs/components/smlight/update.pyi +2 -2
- homeassistant-stubs/components/snooz/config_flow.pyi +4 -4
- homeassistant-stubs/components/solarlog/config_flow.pyi +2 -3
- homeassistant-stubs/components/solarlog/coordinator.pyi +2 -2
- homeassistant-stubs/components/sonarr/coordinator.pyi +1 -1
- homeassistant-stubs/components/speedtestdotnet/config_flow.pyi +1 -2
- homeassistant-stubs/components/speedtestdotnet/coordinator.pyi +1 -1
- homeassistant-stubs/components/speedtestdotnet/sensor.pyi +2 -2
- homeassistant-stubs/components/spotify/coordinator.pyi +2 -2
- homeassistant-stubs/components/squeezebox/config_flow.pyi +1 -1
- homeassistant-stubs/components/squeezebox/coordinator.pyi +1 -1
- homeassistant-stubs/components/squeezebox/media_player.pyi +2 -2
- homeassistant-stubs/components/ssdp/__init__.pyi +9 -8
- homeassistant-stubs/components/statistics/sensor.pyi +15 -15
- homeassistant-stubs/components/steamist/config_flow.pyi +2 -2
- homeassistant-stubs/components/stream/__init__.pyi +5 -4
- homeassistant-stubs/components/stream/core.pyi +7 -6
- homeassistant-stubs/components/stream/diagnostics.pyi +3 -3
- homeassistant-stubs/components/stream/recorder.pyi +1 -1
- homeassistant-stubs/components/stream/worker.pyi +6 -4
- homeassistant-stubs/components/sun/entity.pyi +4 -4
- homeassistant-stubs/components/switch/__init__.pyi +3 -2
- homeassistant-stubs/components/switchbee/climate.pyi +1 -1
- homeassistant-stubs/components/switchbee/coordinator.pyi +1 -1
- homeassistant-stubs/components/switcher_kis/light.pyi +2 -2
- homeassistant-stubs/components/switcher_kis/switch.pyi +1 -1
- homeassistant-stubs/components/synology_dsm/common.pyi +19 -11
- homeassistant-stubs/components/synology_dsm/config_flow.pyi +4 -4
- homeassistant-stubs/components/synology_dsm/coordinator.pyi +1 -1
- homeassistant-stubs/components/synology_dsm/entity.pyi +5 -5
- homeassistant-stubs/components/synology_dsm/sensor.pyi +2 -3
- homeassistant-stubs/components/system_log/__init__.pyi +1 -1
- homeassistant-stubs/components/systemmonitor/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/systemmonitor/coordinator.pyi +2 -2
- homeassistant-stubs/components/systemmonitor/sensor.pyi +3 -3
- homeassistant-stubs/components/tag/__init__.pyi +1 -1
- homeassistant-stubs/components/tautulli/coordinator.pyi +3 -3
- homeassistant-stubs/components/tcp/entity.pyi +4 -3
- homeassistant-stubs/components/tedee/coordinator.pyi +3 -3
- homeassistant-stubs/components/text/__init__.pyi +10 -5
- homeassistant-stubs/components/threshold/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/tibber/sensor.pyi +5 -4
- homeassistant-stubs/components/tile/config_flow.pyi +2 -2
- homeassistant-stubs/components/tilt_ble/config_flow.pyi +4 -4
- homeassistant-stubs/components/time/__init__.pyi +4 -1
- homeassistant-stubs/components/timer/__init__.pyi +7 -7
- homeassistant-stubs/components/tod/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/todo/__init__.pyi +2 -0
- homeassistant-stubs/components/tplink/camera.pyi +2 -2
- homeassistant-stubs/components/tplink/config_flow.pyi +2 -2
- homeassistant-stubs/components/tplink/siren.pyi +1 -1
- homeassistant-stubs/components/tplink_omada/config_flow.pyi +2 -2
- homeassistant-stubs/components/tplink_omada/controller.pyi +1 -1
- homeassistant-stubs/components/trace/models.pyi +10 -9
- homeassistant-stubs/components/tractive/__init__.pyi +2 -1
- homeassistant-stubs/components/tractive/device_tracker.pyi +3 -3
- homeassistant-stubs/components/tradfri/config_flow.pyi +1 -1
- homeassistant-stubs/components/tradfri/coordinator.pyi +1 -1
- homeassistant-stubs/components/tradfri/entity.pyi +1 -1
- homeassistant-stubs/components/trafikverket_ferry/coordinator.pyi +5 -5
- homeassistant-stubs/components/trafikverket_train/coordinator.pyi +4 -4
- homeassistant-stubs/components/transmission/coordinator.pyi +5 -5
- homeassistant-stubs/components/trend/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/tts/__init__.pyi +10 -5
- homeassistant-stubs/components/tts/notify.pyi +2 -2
- homeassistant-stubs/components/twentemilieu/calendar.pyi +1 -1
- homeassistant-stubs/components/unifi/__init__.pyi +3 -3
- homeassistant-stubs/components/unifi/config_flow.pyi +3 -2
- homeassistant-stubs/components/unifi/device_tracker.pyi +3 -0
- homeassistant-stubs/components/unifi/hub/entity_helper.pyi +4 -4
- homeassistant-stubs/components/unifi/hub/entity_loader.pyi +2 -2
- homeassistant-stubs/components/unifi/hub/websocket.pyi +3 -2
- homeassistant-stubs/components/unifiprotect/camera.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/config_flow.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/data.pyi +4 -3
- homeassistant-stubs/components/update/__init__.pyi +15 -4
- homeassistant-stubs/components/usb/__init__.pyi +7 -4
- homeassistant-stubs/components/uvc/camera.pyi +2 -2
- homeassistant-stubs/components/vacuum/__init__.pyi +8 -1
- homeassistant-stubs/components/velbus/config_flow.pyi +1 -2
- homeassistant-stubs/components/velbus/sensor.pyi +1 -1
- homeassistant-stubs/components/waqi/config_flow.pyi +1 -1
- homeassistant-stubs/components/water_heater/__init__.pyi +9 -2
- homeassistant-stubs/components/watttime/config_flow.pyi +3 -2
- homeassistant-stubs/components/weather/__init__.pyi +20 -2
- homeassistant-stubs/components/webostv/config_flow.pyi +1 -1
- homeassistant-stubs/components/webostv/media_player.pyi +1 -1
- homeassistant-stubs/components/websocket_api/connection.pyi +7 -6
- homeassistant-stubs/components/websocket_api/http.pyi +9 -7
- homeassistant-stubs/components/wemo/__init__.pyi +6 -6
- homeassistant-stubs/components/wemo/coordinator.pyi +1 -1
- homeassistant-stubs/components/withings/coordinator.pyi +2 -2
- homeassistant-stubs/components/wiz/config_flow.pyi +1 -1
- homeassistant-stubs/components/wled/coordinator.pyi +1 -1
- homeassistant-stubs/components/workday/repairs.pyi +3 -3
- homeassistant-stubs/components/xiaomi_ble/config_flow.pyi +3 -3
- homeassistant-stubs/components/yale_smart_alarm/coordinator.pyi +2 -2
- homeassistant-stubs/components/yale_smart_alarm/entity.pyi +3 -3
- homeassistant-stubs/components/yalexs_ble/config_flow.pyi +4 -3
- homeassistant-stubs/components/zeroconf/__init__.pyi +2 -2
- homeassistant-stubs/components/zone/__init__.pyi +3 -3
- homeassistant-stubs/components/zwave_js/__init__.pyi +3 -3
- homeassistant-stubs/components/zwave_js/climate.pyi +6 -6
- homeassistant-stubs/components/zwave_js/config_flow.pyi +14 -13
- homeassistant-stubs/components/zwave_js/event.pyi +1 -1
- homeassistant-stubs/components/zwave_js/light.pyi +8 -8
- homeassistant-stubs/components/zwave_js/number.pyi +1 -1
- homeassistant-stubs/components/zwave_js/repairs.pyi +2 -3
- homeassistant-stubs/components/zwave_js/switch.pyi +1 -1
- homeassistant-stubs/components/zwave_js/update.pyi +8 -8
- homeassistant-stubs/config_entries.pyi +11 -8
- homeassistant-stubs/core.pyi +50 -28
- homeassistant-stubs/core_config.pyi +18 -18
- homeassistant-stubs/data_entry_flow.pyi +6 -5
- homeassistant-stubs/helpers/area_registry.pyi +4 -2
- homeassistant-stubs/helpers/category_registry.pyi +1 -1
- homeassistant-stubs/helpers/check_config.pyi +2 -3
- homeassistant-stubs/helpers/collection.pyi +6 -6
- homeassistant-stubs/helpers/config_entry_oauth2_flow.pyi +2 -2
- homeassistant-stubs/helpers/debounce.pyi +3 -2
- homeassistant-stubs/helpers/device_registry.pyi +9 -5
- homeassistant-stubs/helpers/discovery_flow.pyi +1 -1
- homeassistant-stubs/helpers/dispatcher.pyi +8 -8
- homeassistant-stubs/helpers/entity.pyi +43 -14
- homeassistant-stubs/helpers/entity_component.pyi +3 -3
- homeassistant-stubs/helpers/entity_platform.pyi +12 -12
- homeassistant-stubs/helpers/entity_registry.pyi +13 -6
- homeassistant-stubs/helpers/entityfilter.pyi +1 -1
- homeassistant-stubs/helpers/event.pyi +6 -6
- homeassistant-stubs/helpers/frame.pyi +4 -0
- homeassistant-stubs/helpers/icon.pyi +2 -2
- homeassistant-stubs/helpers/intent.pyi +15 -12
- homeassistant-stubs/helpers/issue_registry.pyi +1 -1
- homeassistant-stubs/helpers/normalized_name_base_registry.pyi +1 -2
- homeassistant-stubs/helpers/ratelimit.pyi +4 -3
- homeassistant-stubs/helpers/restore_state.pyi +3 -3
- homeassistant-stubs/helpers/schema_config_entry_flow.pyi +1 -1
- homeassistant-stubs/helpers/script.pyi +16 -10
- homeassistant-stubs/helpers/script_variables.pyi +1 -1
- homeassistant-stubs/helpers/service.pyi +1 -1
- homeassistant-stubs/helpers/significant_change.pyi +1 -1
- homeassistant-stubs/helpers/storage.pyi +12 -9
- homeassistant-stubs/helpers/template.pyi +22 -18
- homeassistant-stubs/helpers/trace.pyi +6 -6
- homeassistant-stubs/helpers/trigger_template_entity.pyi +2 -2
- homeassistant-stubs/helpers/update_coordinator.pyi +10 -7
- homeassistant-stubs/loader.pyi +23 -4
- homeassistant-stubs/requirements.pyi +4 -3
- homeassistant-stubs/util/aiohttp.pyi +2 -2
- homeassistant-stubs/util/async_.pyi +1 -1
- homeassistant-stubs/util/frozen_dataclass_compat.pyi +3 -1
- homeassistant-stubs/util/logging.pyi +7 -7
- homeassistant-stubs/util/signal_type.pyi +1 -1
- homeassistant-stubs/util/timeout.pyi +29 -30
- homeassistant-stubs/util/yaml/loader.pyi +4 -1
- {homeassistant_stubs-2025.1.0b9.dist-info → homeassistant_stubs-2025.1.1.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2025.1.0b9.dist-info → homeassistant_stubs-2025.1.1.dist-info}/RECORD +641 -641
- {homeassistant_stubs-2025.1.0b9.dist-info → homeassistant_stubs-2025.1.1.dist-info}/WHEEL +0 -0
- {homeassistant_stubs-2025.1.0b9.dist-info → homeassistant_stubs-2025.1.1.dist-info}/licenses/LICENSE +0 -0
@@ -25,6 +25,7 @@ from homeassistant.util.async_ import create_eager_task as create_eager_task
|
|
25
25
|
from homeassistant.util.dt import utcnow as utcnow
|
26
26
|
from homeassistant.util.hass_dict import HassKey as HassKey
|
27
27
|
from homeassistant.util.signal_type import SignalType as SignalType, SignalTypeFormat as SignalTypeFormat
|
28
|
+
from propcache import cached_property
|
28
29
|
from types import MappingProxyType
|
29
30
|
from typing import Any, Literal, TypedDict, overload
|
30
31
|
|
@@ -93,7 +94,7 @@ class _ScriptRun:
|
|
93
94
|
_started: bool
|
94
95
|
_stop: Incomplete
|
95
96
|
_stopped: Incomplete
|
96
|
-
_conversation_response:
|
97
|
+
_conversation_response: str | None | UndefinedType
|
97
98
|
def __init__(self, hass: HomeAssistant, script: Script, variables: dict[str, Any], context: Context | None, log_exceptions: bool) -> None: ...
|
98
99
|
def _changed(self) -> None: ...
|
99
100
|
async def _async_get_condition(self, config: ConfigType) -> ConditionCheckerType: ...
|
@@ -173,18 +174,18 @@ class Script:
|
|
173
174
|
_change_listener_job: Incomplete
|
174
175
|
script_mode: Incomplete
|
175
176
|
_log_exceptions: Incomplete
|
176
|
-
last_action:
|
177
|
-
last_triggered:
|
178
|
-
_runs:
|
177
|
+
last_action: str | None
|
178
|
+
last_triggered: datetime | None
|
179
|
+
_runs: list[_ScriptRun]
|
179
180
|
max_runs: Incomplete
|
180
181
|
_max_exceeded: Incomplete
|
181
182
|
_queue_lck: Incomplete
|
182
|
-
_config_cache:
|
183
|
-
_repeat_script:
|
184
|
-
_choose_data:
|
185
|
-
_if_data:
|
186
|
-
_parallel_scripts:
|
187
|
-
_sequence_scripts:
|
183
|
+
_config_cache: dict[frozenset[tuple[str, str]], ConditionCheckerType]
|
184
|
+
_repeat_script: dict[int, Script]
|
185
|
+
_choose_data: dict[int, _ChooseData]
|
186
|
+
_if_data: dict[int, _IfData]
|
187
|
+
_parallel_scripts: dict[int, list[Script]]
|
188
|
+
_sequence_scripts: dict[int, Script]
|
188
189
|
variables: Incomplete
|
189
190
|
_variables_dynamic: Incomplete
|
190
191
|
_copy_variables_on_run: Incomplete
|
@@ -204,14 +205,19 @@ class Script:
|
|
204
205
|
def runs(self) -> int: ...
|
205
206
|
@property
|
206
207
|
def supports_max(self) -> bool: ...
|
208
|
+
@cached_property
|
207
209
|
def referenced_labels(self) -> set[str]: ...
|
210
|
+
@cached_property
|
208
211
|
def referenced_floors(self) -> set[str]: ...
|
212
|
+
@cached_property
|
209
213
|
def referenced_areas(self) -> set[str]: ...
|
210
214
|
@staticmethod
|
211
215
|
def _find_referenced_target(target: Literal['area_id', 'floor_id', 'label_id'], referenced: set[str], sequence: Sequence[dict[str, Any]]) -> None: ...
|
216
|
+
@cached_property
|
212
217
|
def referenced_devices(self) -> set[str]: ...
|
213
218
|
@staticmethod
|
214
219
|
def _find_referenced_devices(referenced: set[str], sequence: Sequence[dict[str, Any]]) -> None: ...
|
220
|
+
@cached_property
|
215
221
|
def referenced_entities(self) -> set[str]: ...
|
216
222
|
@staticmethod
|
217
223
|
def _find_referenced_entities(referenced: set[str], sequence: Sequence[dict[str, Any]]) -> None: ...
|
@@ -6,7 +6,7 @@ from typing import Any
|
|
6
6
|
|
7
7
|
class ScriptVariables:
|
8
8
|
variables: Incomplete
|
9
|
-
_has_template:
|
9
|
+
_has_template: bool | None
|
10
10
|
def __init__(self, variables: dict[str, Any]) -> None: ...
|
11
11
|
def async_render(self, hass: HomeAssistant, run_variables: Mapping[str, Any] | None, *, render_as_defaults: bool = True, limited: bool = False) -> dict[str, Any]: ...
|
12
12
|
def as_dict(self) -> dict[str, Any]: ...
|
@@ -92,7 +92,7 @@ class ReloadServiceHelper[_T]:
|
|
92
92
|
_service_func: Incomplete
|
93
93
|
_service_running: bool
|
94
94
|
_service_condition: Incomplete
|
95
|
-
_pending_reload_targets:
|
95
|
+
_pending_reload_targets: set[_T]
|
96
96
|
_reload_targets_func: Incomplete
|
97
97
|
def __init__(self, service_func: Callable[[ServiceCall], Coroutine[Any, Any, Any]], reload_targets_func: Callable[[ServiceCall], set[_T]]) -> None: ...
|
98
98
|
async def execute_service(self, service_call: ServiceCall) -> None: ...
|
@@ -25,7 +25,7 @@ def check_valid_float(value: str | float) -> bool: ...
|
|
25
25
|
|
26
26
|
class SignificantlyChangedChecker:
|
27
27
|
hass: Incomplete
|
28
|
-
last_approved_entities:
|
28
|
+
last_approved_entities: dict[str, tuple[State, Any]]
|
29
29
|
extra_significant_check: Incomplete
|
30
30
|
def __init__(self, hass: HomeAssistant, extra_significant_check: ExtraCheckTypeFunc | None = None) -> None: ...
|
31
31
|
def async_is_significant_change(self, new_state: State, *, extra_arg: Any | None = None) -> bool: ...
|
@@ -9,6 +9,8 @@ from homeassistant.util import json as json_util
|
|
9
9
|
from homeassistant.util.file import WriteError as WriteError
|
10
10
|
from homeassistant.util.hass_dict import HassKey as HassKey
|
11
11
|
from json import JSONEncoder
|
12
|
+
from pathlib import Path
|
13
|
+
from propcache import cached_property
|
12
14
|
from typing import Any
|
13
15
|
|
14
16
|
MAX_LOAD_CONCURRENTLY: int
|
@@ -23,11 +25,11 @@ def get_internal_store_manager(hass: HomeAssistant) -> _StoreManager: ...
|
|
23
25
|
|
24
26
|
class _StoreManager:
|
25
27
|
_hass: Incomplete
|
26
|
-
_invalidated:
|
27
|
-
_files:
|
28
|
-
_data_preload:
|
29
|
-
_storage_path:
|
30
|
-
_cancel_cleanup:
|
28
|
+
_invalidated: set[str]
|
29
|
+
_files: set[str] | None
|
30
|
+
_data_preload: dict[str, json_util.JsonValueType]
|
31
|
+
_storage_path: Path
|
32
|
+
_cancel_cleanup: asyncio.TimerHandle | None
|
31
33
|
def __init__(self, hass: HomeAssistant) -> None: ...
|
32
34
|
async def async_initialize(self) -> None: ...
|
33
35
|
def async_invalidate(self, key: str) -> None: ...
|
@@ -45,17 +47,18 @@ class Store[_T: Mapping[str, Any] | Sequence[Any]]:
|
|
45
47
|
key: Incomplete
|
46
48
|
hass: Incomplete
|
47
49
|
_private: Incomplete
|
48
|
-
_data:
|
49
|
-
_delay_handle:
|
50
|
-
_unsub_final_write_listener:
|
50
|
+
_data: dict[str, Any] | None
|
51
|
+
_delay_handle: asyncio.TimerHandle | None
|
52
|
+
_unsub_final_write_listener: CALLBACK_TYPE | None
|
51
53
|
_write_lock: Incomplete
|
52
|
-
_load_future:
|
54
|
+
_load_future: asyncio.Future[_T | None] | None
|
53
55
|
_encoder: Incomplete
|
54
56
|
_atomic_writes: Incomplete
|
55
57
|
_read_only: Incomplete
|
56
58
|
_next_write_time: float
|
57
59
|
_manager: Incomplete
|
58
60
|
def __init__(self, hass: HomeAssistant, version: int, key: str, private: bool = False, *, atomic_writes: bool = False, encoder: type[JSONEncoder] | None = None, minor_version: int = 1, read_only: bool = False) -> None: ...
|
61
|
+
@cached_property
|
59
62
|
def path(self): ...
|
60
63
|
def make_read_only(self) -> None: ...
|
61
64
|
async def async_load(self) -> _T | None: ...
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import collections.abc
|
1
2
|
import jinja2
|
3
|
+
import weakref
|
2
4
|
from . import area_registry as area_registry, device_registry as device_registry, entity_registry as entity_registry, issue_registry as issue_registry, label_registry as label_registry
|
3
5
|
from .deprecation import deprecated_function as deprecated_function
|
4
6
|
from .singleton import singleton as singleton
|
@@ -21,6 +23,7 @@ from homeassistant.util.read_only_dict import ReadOnlyDict as ReadOnlyDict
|
|
21
23
|
from homeassistant.util.thread import ThreadWithException as ThreadWithException
|
22
24
|
from jinja2.sandbox import ImmutableSandboxedEnvironment
|
23
25
|
from lru import LRU
|
26
|
+
from propcache import under_cached_property
|
24
27
|
from types import CodeType, TracebackType
|
25
28
|
from typing import Any, Literal, NoReturn, Self, overload
|
26
29
|
|
@@ -78,17 +81,17 @@ def _cached_parse_result(render_result: str) -> Any: ...
|
|
78
81
|
class RenderInfo:
|
79
82
|
__slots__: Incomplete
|
80
83
|
template: Incomplete
|
81
|
-
filter_lifecycle:
|
82
|
-
filter:
|
83
|
-
_result:
|
84
|
+
filter_lifecycle: Callable[[str], bool]
|
85
|
+
filter: Callable[[str], bool]
|
86
|
+
_result: str | None
|
84
87
|
is_static: bool
|
85
|
-
exception:
|
88
|
+
exception: TemplateError | None
|
86
89
|
all_states: bool
|
87
90
|
all_states_lifecycle: bool
|
88
|
-
domains:
|
89
|
-
domains_lifecycle:
|
90
|
-
entities:
|
91
|
-
rate_limit:
|
91
|
+
domains: collections.abc.Set[str]
|
92
|
+
domains_lifecycle: collections.abc.Set[str]
|
93
|
+
entities: collections.abc.Set[str]
|
94
|
+
rate_limit: float | None
|
92
95
|
has_time: bool
|
93
96
|
def __init__(self, template: Template) -> None: ...
|
94
97
|
def __repr__(self) -> str: ...
|
@@ -102,16 +105,16 @@ class RenderInfo:
|
|
102
105
|
|
103
106
|
class Template:
|
104
107
|
__slots__: Incomplete
|
105
|
-
template:
|
106
|
-
_compiled_code:
|
107
|
-
_compiled:
|
108
|
+
template: str
|
109
|
+
_compiled_code: CodeType | None
|
110
|
+
_compiled: jinja2.Template | None
|
108
111
|
hass: Incomplete
|
109
112
|
is_static: Incomplete
|
110
|
-
_exc_info:
|
111
|
-
_limited:
|
112
|
-
_strict:
|
113
|
-
_log_fn:
|
114
|
-
_hash_cache:
|
113
|
+
_exc_info: OptExcInfo | None
|
114
|
+
_limited: bool | None
|
115
|
+
_strict: bool | None
|
116
|
+
_log_fn: Callable[[int, str], None] | None
|
117
|
+
_hash_cache: int
|
115
118
|
_renders: int
|
116
119
|
def __init__(self, template: str, hass: HomeAssistant | None = None) -> None: ...
|
117
120
|
@property
|
@@ -176,10 +179,11 @@ class TemplateStateBase(State):
|
|
176
179
|
_hass: Incomplete
|
177
180
|
_collect: Incomplete
|
178
181
|
_entity_id: Incomplete
|
179
|
-
_cache:
|
182
|
+
_cache: dict[str, Any]
|
180
183
|
def __init__(self, hass: HomeAssistant, collect: bool, entity_id: str) -> None: ...
|
181
184
|
def _collect_state(self) -> None: ...
|
182
185
|
def __getitem__(self, item: str) -> Any: ...
|
186
|
+
@under_cached_property
|
183
187
|
def entity_id(self) -> str: ...
|
184
188
|
@property
|
185
189
|
def state(self) -> str: ...
|
@@ -358,7 +362,7 @@ class HassLoader(jinja2.BaseLoader):
|
|
358
362
|
|
359
363
|
class TemplateEnvironment(ImmutableSandboxedEnvironment):
|
360
364
|
hass: Incomplete
|
361
|
-
template_cache:
|
365
|
+
template_cache: weakref.WeakValueDictionary[str | jinja2.nodes.Template, CodeType | None]
|
362
366
|
loader: Incomplete
|
363
367
|
def __init__(self, hass: HomeAssistant | None, limited: bool | None = False, strict: bool | None = False, log_fn: Callable[[int, str], None] | None = None) -> None: ...
|
364
368
|
def is_safe_callable(self, obj): ...
|
@@ -8,11 +8,11 @@ from typing import Any
|
|
8
8
|
|
9
9
|
class TraceElement:
|
10
10
|
__slots__: Incomplete
|
11
|
-
_child_key:
|
12
|
-
_child_run_id:
|
13
|
-
_error:
|
14
|
-
path:
|
15
|
-
_result:
|
11
|
+
_child_key: str | None
|
12
|
+
_child_run_id: str | None
|
13
|
+
_error: BaseException | None
|
14
|
+
path: str
|
15
|
+
_result: dict[str, Any] | None
|
16
16
|
reuse_by_child: bool
|
17
17
|
_timestamp: Incomplete
|
18
18
|
_last_variables: Incomplete
|
@@ -55,4 +55,4 @@ class StopReason:
|
|
55
55
|
def script_execution_set(reason: str, response: ServiceResponse = None) -> None: ...
|
56
56
|
def script_execution_get() -> str | None: ...
|
57
57
|
def trace_path(suffix: str | list[str]) -> Generator[None]: ...
|
58
|
-
def async_trace_path[*_Ts](suffix: str | list[str]) -> Callable[[Callable[[
|
58
|
+
def async_trace_path[*_Ts](suffix: str | list[str]) -> Callable[[Callable[[*_Ts], Coroutine[Any, Any, None]]], Callable[[*_Ts], Coroutine[Any, Any, None]]]: ...
|
@@ -28,8 +28,8 @@ class TriggerBaseEntity(Entity):
|
|
28
28
|
hass: Incomplete
|
29
29
|
_config: Incomplete
|
30
30
|
_static_rendered: Incomplete
|
31
|
-
_to_render_simple:
|
32
|
-
_to_render_complex:
|
31
|
+
_to_render_simple: list[str]
|
32
|
+
_to_render_complex: list[str]
|
33
33
|
_rendered: Incomplete
|
34
34
|
_parse_result: Incomplete
|
35
35
|
_attr_device_class: Incomplete
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import abc
|
2
|
+
import asyncio
|
2
3
|
import logging
|
3
4
|
from . import entity as entity, event as event
|
4
5
|
from .debounce import Debouncer as Debouncer
|
@@ -13,6 +14,7 @@ from homeassistant.const import EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_
|
|
13
14
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
14
15
|
from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed, ConfigEntryError as ConfigEntryError, ConfigEntryNotReady as ConfigEntryNotReady, HomeAssistantError as HomeAssistantError
|
15
16
|
from homeassistant.util.dt import utcnow as utcnow
|
17
|
+
from propcache import cached_property
|
16
18
|
from typing import Any, Generic, Protocol
|
17
19
|
from typing_extensions import TypeVar
|
18
20
|
|
@@ -32,18 +34,18 @@ class DataUpdateCoordinator(BaseDataUpdateCoordinatorProtocol, Generic[_DataT]):
|
|
32
34
|
name: Incomplete
|
33
35
|
update_method: Incomplete
|
34
36
|
setup_method: Incomplete
|
35
|
-
_update_interval_seconds:
|
37
|
+
_update_interval_seconds: float | None
|
36
38
|
_shutdown_requested: bool
|
37
39
|
config_entry: Incomplete
|
38
40
|
always_update: Incomplete
|
39
|
-
data:
|
41
|
+
data: _DataT
|
40
42
|
_microsecond: Incomplete
|
41
|
-
_listeners:
|
42
|
-
_unsub_refresh:
|
43
|
-
_unsub_shutdown:
|
44
|
-
_request_refresh_task:
|
43
|
+
_listeners: dict[CALLBACK_TYPE, tuple[CALLBACK_TYPE, object | None]]
|
44
|
+
_unsub_refresh: CALLBACK_TYPE | None
|
45
|
+
_unsub_shutdown: CALLBACK_TYPE | None
|
46
|
+
_request_refresh_task: asyncio.TimerHandle | None
|
45
47
|
last_update_success: bool
|
46
|
-
last_exception:
|
48
|
+
last_exception: Exception | None
|
47
49
|
_debounced_refresh: Incomplete
|
48
50
|
def __init__(self, hass: HomeAssistant, logger: logging.Logger, *, config_entry: config_entries.ConfigEntry | None | UndefinedType = ..., name: str, update_interval: timedelta | None = None, update_method: Callable[[], Awaitable[_DataT]] | None = None, setup_method: Callable[[], Awaitable[None]] | None = None, request_refresh_debouncer: Debouncer[Coroutine[Any, Any, None]] | None = None, always_update: bool = True) -> None: ...
|
49
51
|
async def async_register_shutdown(self) -> None: ...
|
@@ -81,6 +83,7 @@ class BaseCoordinatorEntity[_BaseDataUpdateCoordinatorT: BaseDataUpdateCoordinat
|
|
81
83
|
coordinator: Incomplete
|
82
84
|
coordinator_context: Incomplete
|
83
85
|
def __init__(self, coordinator: _BaseDataUpdateCoordinatorT, context: Any = None) -> None: ...
|
86
|
+
@cached_property
|
84
87
|
def should_poll(self) -> bool: ...
|
85
88
|
async def async_added_to_hass(self) -> None: ...
|
86
89
|
def _handle_coordinator_update(self) -> None: ...
|
homeassistant-stubs/loader.pyi
CHANGED
@@ -22,6 +22,7 @@ from _typeshed import Incomplete
|
|
22
22
|
from awesomeversion import AwesomeVersion
|
23
23
|
from collections.abc import Callable as Callable, Iterable
|
24
24
|
from dataclasses import dataclass
|
25
|
+
from propcache import cached_property
|
25
26
|
from types import ModuleType
|
26
27
|
from typing import Any, Literal, Protocol, TypedDict
|
27
28
|
|
@@ -158,31 +159,48 @@ class Integration:
|
|
158
159
|
pkg_path: Incomplete
|
159
160
|
file_path: Incomplete
|
160
161
|
manifest: Incomplete
|
161
|
-
_all_dependencies_resolved:
|
162
|
-
_all_dependencies:
|
162
|
+
_all_dependencies_resolved: bool | None
|
163
|
+
_all_dependencies: set[str] | None
|
163
164
|
_platforms_to_preload: Incomplete
|
164
|
-
_component_future:
|
165
|
-
_import_futures:
|
165
|
+
_component_future: asyncio.Future[ComponentProtocol] | None
|
166
|
+
_import_futures: dict[str, asyncio.Future[ModuleType]]
|
166
167
|
_cache: Incomplete
|
167
168
|
_missing_platforms_cache: Incomplete
|
168
169
|
_top_level_files: Incomplete
|
169
170
|
def __init__(self, hass: HomeAssistant, pkg_path: str, file_path: pathlib.Path, manifest: Manifest, top_level_files: set[str] | None = None) -> None: ...
|
171
|
+
@cached_property
|
170
172
|
def manifest_json_fragment(self) -> json_fragment: ...
|
173
|
+
@cached_property
|
171
174
|
def name(self) -> str: ...
|
175
|
+
@cached_property
|
172
176
|
def disabled(self) -> str | None: ...
|
177
|
+
@cached_property
|
173
178
|
def domain(self) -> str: ...
|
179
|
+
@cached_property
|
174
180
|
def dependencies(self) -> list[str]: ...
|
181
|
+
@cached_property
|
175
182
|
def after_dependencies(self) -> list[str]: ...
|
183
|
+
@cached_property
|
176
184
|
def requirements(self) -> list[str]: ...
|
185
|
+
@cached_property
|
177
186
|
def config_flow(self) -> bool: ...
|
187
|
+
@cached_property
|
178
188
|
def documentation(self) -> str | None: ...
|
189
|
+
@cached_property
|
179
190
|
def issue_tracker(self) -> str | None: ...
|
191
|
+
@cached_property
|
180
192
|
def loggers(self) -> list[str] | None: ...
|
193
|
+
@cached_property
|
181
194
|
def quality_scale(self) -> str | None: ...
|
195
|
+
@cached_property
|
182
196
|
def iot_class(self) -> str | None: ...
|
197
|
+
@cached_property
|
183
198
|
def integration_type(self) -> Literal['entity', 'device', 'hardware', 'helper', 'hub', 'service', 'system', 'virtual']: ...
|
199
|
+
@cached_property
|
184
200
|
def import_executor(self) -> bool: ...
|
201
|
+
@cached_property
|
185
202
|
def has_translations(self) -> bool: ...
|
203
|
+
@cached_property
|
186
204
|
def has_services(self) -> bool: ...
|
187
205
|
@property
|
188
206
|
def mqtt(self) -> list[str] | None: ...
|
@@ -204,6 +222,7 @@ class Integration:
|
|
204
222
|
def overwrites_built_in(self) -> bool: ...
|
205
223
|
@property
|
206
224
|
def version(self) -> AwesomeVersion | None: ...
|
225
|
+
@cached_property
|
207
226
|
def single_config_entry(self) -> bool: ...
|
208
227
|
@property
|
209
228
|
def all_dependencies(self) -> set[str]: ...
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import asyncio
|
1
2
|
from .core import HomeAssistant as HomeAssistant, callback as callback
|
2
3
|
from .exceptions import HomeAssistantError as HomeAssistantError
|
3
4
|
from .helpers import singleton as singleton
|
@@ -30,9 +31,9 @@ def _install_requirements_if_missing(requirements: list[str], kwargs: dict[str,
|
|
30
31
|
class RequirementsManager:
|
31
32
|
hass: Incomplete
|
32
33
|
pip_lock: Incomplete
|
33
|
-
integrations_with_reqs:
|
34
|
-
install_failure_history:
|
35
|
-
is_installed_cache:
|
34
|
+
integrations_with_reqs: dict[str, Integration | asyncio.Future[Integration]]
|
35
|
+
install_failure_history: set[str]
|
36
|
+
is_installed_cache: set[str]
|
36
37
|
def __init__(self, hass: HomeAssistant) -> None: ...
|
37
38
|
async def async_get_integration_with_requirements(self, domain: str, done: set[str] | None = None) -> Integration: ...
|
38
39
|
async def _async_process_integration(self, integration: Integration, done: set[str]) -> None: ...
|
@@ -2,7 +2,7 @@ from .json import json_loads as json_loads
|
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from aiohttp import web as web
|
4
4
|
from aiohttp.typedefs import JSONDecoder as JSONDecoder
|
5
|
-
from multidict import MultiDict
|
5
|
+
from multidict import CIMultiDict, MultiDict
|
6
6
|
from typing import Any
|
7
7
|
|
8
8
|
class MockStreamReader:
|
@@ -21,7 +21,7 @@ class MockRequest:
|
|
21
21
|
method: Incomplete
|
22
22
|
url: Incomplete
|
23
23
|
status: Incomplete
|
24
|
-
headers:
|
24
|
+
headers: CIMultiDict[str]
|
25
25
|
query_string: Incomplete
|
26
26
|
keep_alive: bool
|
27
27
|
version: Incomplete
|
@@ -9,7 +9,7 @@ _SHUTDOWN_RUN_CALLBACK_THREADSAFE: str
|
|
9
9
|
|
10
10
|
def create_eager_task[_T](coro: Coroutine[Any, Any, _T], *, name: str | None = None, loop: AbstractEventLoop | None = None) -> Task[_T]: ...
|
11
11
|
def cancelling(task: Future[Any]) -> bool: ...
|
12
|
-
def run_callback_threadsafe[_T, *_Ts](loop: AbstractEventLoop, callback: Callable[[
|
12
|
+
def run_callback_threadsafe[_T, *_Ts](loop: AbstractEventLoop, callback: Callable[[*_Ts], _T], *args: *_Ts) -> concurrent.futures.Future[_T]: ...
|
13
13
|
async def gather_with_limited_concurrency(limit: int, *tasks: Any, return_exceptions: bool = False) -> Any: ...
|
14
14
|
def shutdown_run_callback_threadsafe(loop: AbstractEventLoop) -> None: ...
|
15
15
|
def get_scheduled_timer_handles(loop: AbstractEventLoop) -> list[TimerHandle]: ...
|
@@ -1,7 +1,9 @@
|
|
1
|
-
|
1
|
+
import dataclasses
|
2
|
+
from typing import Any, dataclass_transform
|
2
3
|
|
3
4
|
def _class_fields(cls, kw_only: bool) -> list[tuple[str, Any, Any]]: ...
|
4
5
|
|
6
|
+
@dataclass_transform(field_specifiers=(dataclasses.field, dataclasses.Field), frozen_default=True, kw_only_default=True)
|
5
7
|
class FrozenOrThawed(type):
|
6
8
|
def _make_dataclass(cls, name: str, bases: tuple[type, ...], kw_only: bool) -> None: ...
|
7
9
|
def __new__(mcs, name: str, bases: tuple[type, ...], namespace: dict[Any, Any], frozen_or_thawed: bool = False, **kwargs: Any) -> Any: ...
|
@@ -10,13 +10,13 @@ class HomeAssistantQueueHandler(logging.handlers.QueueHandler):
|
|
10
10
|
def close(self) -> None: ...
|
11
11
|
|
12
12
|
def async_activate_log_queue_handler(hass: HomeAssistant) -> None: ...
|
13
|
-
def log_exception[*_Ts](format_err: Callable[[
|
14
|
-
async def _async_wrapper[*_Ts](async_func: Callable[[
|
15
|
-
def _sync_wrapper[*_Ts](func: Callable[[
|
16
|
-
def _callback_wrapper[*_Ts](func: Callable[[
|
13
|
+
def log_exception[*_Ts](format_err: Callable[[*_Ts], Any], *args: *_Ts) -> None: ...
|
14
|
+
async def _async_wrapper[*_Ts](async_func: Callable[[*_Ts], Coroutine[Any, Any, None]], format_err: Callable[[*_Ts], Any], *args: *_Ts) -> None: ...
|
15
|
+
def _sync_wrapper[*_Ts](func: Callable[[*_Ts], Any], format_err: Callable[[*_Ts], Any], *args: *_Ts) -> None: ...
|
16
|
+
def _callback_wrapper[*_Ts](func: Callable[[*_Ts], Any], format_err: Callable[[*_Ts], Any], *args: *_Ts) -> None: ...
|
17
17
|
@overload
|
18
|
-
def catch_log_exception[*_Ts](func: Callable[[
|
18
|
+
def catch_log_exception[*_Ts](func: Callable[[*_Ts], Coroutine[Any, Any, Any]], format_err: Callable[[*_Ts], Any], job_type: HassJobType | None = None) -> Callable[[*_Ts], Coroutine[Any, Any, None]]: ...
|
19
19
|
@overload
|
20
|
-
def catch_log_exception[*_Ts](func: Callable[[
|
21
|
-
def catch_log_coro_exception[_T, *_Ts](target: Coroutine[Any, Any, _T], format_err: Callable[[
|
20
|
+
def catch_log_exception[*_Ts](func: Callable[[*_Ts], Any], format_err: Callable[[*_Ts], Any], job_type: HassJobType | None = None) -> Callable[[*_Ts], None] | Callable[[*_Ts], Coroutine[Any, Any, None]]: ...
|
21
|
+
def catch_log_coro_exception[_T, *_Ts](target: Coroutine[Any, Any, _T], format_err: Callable[[*_Ts], Any], *args: *_Ts) -> Coroutine[Any, Any, _T | None]: ...
|
22
22
|
def async_create_catching_coro[_T](target: Coroutine[Any, Any, _T]) -> Coroutine[Any, Any, _T | None]: ...
|
@@ -10,4 +10,4 @@ class _SignalTypeBase[*_Ts]:
|
|
10
10
|
class SignalType[*_Ts](_SignalTypeBase[*_Ts]): ...
|
11
11
|
|
12
12
|
class SignalTypeFormat[*_Ts](_SignalTypeBase[*_Ts]):
|
13
|
-
def format(self, *args: Any, **kwargs: Any) -> SignalType[
|
13
|
+
def format(self, *args: Any, **kwargs: Any) -> SignalType[*_Ts]: ...
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import asyncio
|
2
2
|
import enum
|
3
3
|
from .async_ import run_callback_threadsafe as run_callback_threadsafe
|
4
|
-
from _typeshed import Incomplete
|
5
4
|
from types import TracebackType
|
6
5
|
from typing import Any, Self
|
7
6
|
|
@@ -14,8 +13,8 @@ class _State(enum.Enum):
|
|
14
13
|
EXIT = 'EXIT'
|
15
14
|
|
16
15
|
class _GlobalFreezeContext:
|
17
|
-
_loop:
|
18
|
-
_manager:
|
16
|
+
_loop: asyncio.AbstractEventLoop
|
17
|
+
_manager: TimeoutManager
|
19
18
|
def __init__(self, manager: TimeoutManager) -> None: ...
|
20
19
|
async def __aenter__(self) -> Self: ...
|
21
20
|
async def __aexit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> bool | None: ...
|
@@ -25,8 +24,8 @@ class _GlobalFreezeContext:
|
|
25
24
|
def _exit(self) -> None: ...
|
26
25
|
|
27
26
|
class _ZoneFreezeContext:
|
28
|
-
_loop:
|
29
|
-
_zone:
|
27
|
+
_loop: asyncio.AbstractEventLoop
|
28
|
+
_zone: _ZoneTimeoutManager
|
30
29
|
def __init__(self, zone: _ZoneTimeoutManager) -> None: ...
|
31
30
|
async def __aenter__(self) -> Self: ...
|
32
31
|
async def __aexit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> bool | None: ...
|
@@ -36,16 +35,16 @@ class _ZoneFreezeContext:
|
|
36
35
|
def _exit(self) -> None: ...
|
37
36
|
|
38
37
|
class _GlobalTaskContext:
|
39
|
-
_loop:
|
40
|
-
_manager:
|
41
|
-
_task:
|
42
|
-
_time_left:
|
43
|
-
_expiration_time:
|
44
|
-
_timeout_handler:
|
45
|
-
_on_wait_task:
|
46
|
-
_wait_zone:
|
47
|
-
_state:
|
48
|
-
_cool_down:
|
38
|
+
_loop: asyncio.AbstractEventLoop
|
39
|
+
_manager: TimeoutManager
|
40
|
+
_task: asyncio.Task[Any]
|
41
|
+
_time_left: float
|
42
|
+
_expiration_time: float | None
|
43
|
+
_timeout_handler: asyncio.Handle | None
|
44
|
+
_on_wait_task: asyncio.Task | None
|
45
|
+
_wait_zone: asyncio.Event
|
46
|
+
_state: _State
|
47
|
+
_cool_down: float
|
49
48
|
_cancelling: int
|
50
49
|
def __init__(self, manager: TimeoutManager, task: asyncio.Task[Any], timeout: float, cool_down: float) -> None: ...
|
51
50
|
async def __aenter__(self) -> Self: ...
|
@@ -62,13 +61,13 @@ class _GlobalTaskContext:
|
|
62
61
|
async def _on_wait(self) -> None: ...
|
63
62
|
|
64
63
|
class _ZoneTaskContext:
|
65
|
-
_loop:
|
66
|
-
_zone:
|
67
|
-
_task:
|
68
|
-
_state:
|
69
|
-
_time_left:
|
70
|
-
_expiration_time:
|
71
|
-
_timeout_handler:
|
64
|
+
_loop: asyncio.AbstractEventLoop
|
65
|
+
_zone: _ZoneTimeoutManager
|
66
|
+
_task: asyncio.Task[Any]
|
67
|
+
_state: _State
|
68
|
+
_time_left: float
|
69
|
+
_expiration_time: float | None
|
70
|
+
_timeout_handler: asyncio.Handle | None
|
72
71
|
_cancelling: int
|
73
72
|
def __init__(self, zone: _ZoneTimeoutManager, task: asyncio.Task[Any], timeout: float) -> None: ...
|
74
73
|
@property
|
@@ -82,10 +81,10 @@ class _ZoneTaskContext:
|
|
82
81
|
def reset(self) -> None: ...
|
83
82
|
|
84
83
|
class _ZoneTimeoutManager:
|
85
|
-
_manager:
|
86
|
-
_zone:
|
87
|
-
_tasks:
|
88
|
-
_freezes:
|
84
|
+
_manager: TimeoutManager
|
85
|
+
_zone: str
|
86
|
+
_tasks: list[_ZoneTaskContext]
|
87
|
+
_freezes: list[_ZoneFreezeContext]
|
89
88
|
def __init__(self, manager: TimeoutManager, zone: str) -> None: ...
|
90
89
|
def __repr__(self) -> str: ...
|
91
90
|
@property
|
@@ -102,10 +101,10 @@ class _ZoneTimeoutManager:
|
|
102
101
|
def reset(self) -> None: ...
|
103
102
|
|
104
103
|
class TimeoutManager:
|
105
|
-
_loop:
|
106
|
-
_zones:
|
107
|
-
_globals:
|
108
|
-
_freezes:
|
104
|
+
_loop: asyncio.AbstractEventLoop
|
105
|
+
_zones: dict[str, _ZoneTimeoutManager]
|
106
|
+
_globals: list[_GlobalTaskContext]
|
107
|
+
_freezes: list[_GlobalFreezeContext]
|
109
108
|
def __init__(self) -> None: ...
|
110
109
|
@property
|
111
110
|
def zones_done(self) -> bool: ...
|
@@ -7,6 +7,7 @@ from collections.abc import Callable as Callable, Iterator
|
|
7
7
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
8
8
|
from io import StringIO
|
9
9
|
from pathlib import Path
|
10
|
+
from propcache import cached_property
|
10
11
|
from typing import Any, TextIO, overload
|
11
12
|
from yaml import SafeLoader as FastestAvailableSafeLoader
|
12
13
|
|
@@ -18,7 +19,7 @@ class YamlTypeError(HomeAssistantError): ...
|
|
18
19
|
|
19
20
|
class Secrets:
|
20
21
|
config_dir: Incomplete
|
21
|
-
_cache:
|
22
|
+
_cache: dict[Path, dict[str, str]]
|
22
23
|
def __init__(self, config_dir: Path) -> None: ...
|
23
24
|
def get(self, requester_path: str, secret: str) -> str: ...
|
24
25
|
def _load_secret_yaml(self, secret_dir: Path) -> dict[str, str]: ...
|
@@ -26,7 +27,9 @@ class Secrets:
|
|
26
27
|
class _LoaderMixin:
|
27
28
|
name: str
|
28
29
|
stream: Any
|
30
|
+
@cached_property
|
29
31
|
def get_name(self) -> str: ...
|
32
|
+
@cached_property
|
30
33
|
def get_stream_name(self) -> str: ...
|
31
34
|
|
32
35
|
class FastSafeLoader(FastestAvailableSafeLoader, _LoaderMixin):
|
{homeassistant_stubs-2025.1.0b9.dist-info → homeassistant_stubs-2025.1.1.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2025.1.
|
3
|
+
Version: 2025.1.1
|
4
4
|
Summary: PEP 484 typing stubs for Home Assistant Core
|
5
5
|
Project-URL: Homepage, https://github.com/KapJI/homeassistant-stubs
|
6
6
|
Project-URL: Bug Tracker, https://github.com/KapJI/homeassistant-stubs/issues
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Home Automation
|
|
18
18
|
Classifier: Topic :: Software Development
|
19
19
|
Classifier: Typing :: Typed
|
20
20
|
Requires-Python: <3.14,>=3.12
|
21
|
-
Requires-Dist: homeassistant==2025.1.
|
21
|
+
Requires-Dist: homeassistant==2025.1.1
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
24
|
[](https://github.com/KapJI/homeassistant-stubs/actions/workflows/ci.yaml)
|