homeassistant-stubs 2024.5.4__py3-none-any.whl → 2024.6.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 +1 -2
- homeassistant-stubs/auth/auth_store.pyi +3 -0
- homeassistant-stubs/auth/mfa_modules/__init__.pyi +2 -1
- homeassistant-stubs/auth/providers/__init__.pyi +2 -1
- homeassistant-stubs/block_async_io.pyi +2 -0
- homeassistant-stubs/bootstrap.pyi +6 -4
- homeassistant-stubs/components/abode/__init__.pyi +3 -37
- homeassistant-stubs/components/abode/alarm_control_panel.pyi +2 -1
- homeassistant-stubs/components/abode/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/abode/camera.pyi +2 -1
- homeassistant-stubs/components/abode/cover.pyi +2 -1
- homeassistant-stubs/components/abode/entity.pyi +39 -0
- homeassistant-stubs/components/abode/light.pyi +2 -1
- homeassistant-stubs/components/abode/lock.pyi +2 -1
- homeassistant-stubs/components/abode/sensor.pyi +2 -1
- homeassistant-stubs/components/abode/switch.pyi +2 -1
- homeassistant-stubs/components/accuweather/__init__.pyi +3 -3
- homeassistant-stubs/components/accuweather/diagnostics.pyi +2 -4
- homeassistant-stubs/components/accuweather/sensor.pyi +3 -4
- homeassistant-stubs/components/accuweather/system_health.pyi +1 -0
- homeassistant-stubs/components/accuweather/weather.pyi +4 -6
- homeassistant-stubs/components/acmeda/__init__.pyi +3 -3
- homeassistant-stubs/components/acmeda/cover.pyi +3 -4
- homeassistant-stubs/components/acmeda/helpers.pyi +2 -1
- homeassistant-stubs/components/acmeda/sensor.pyi +3 -4
- homeassistant-stubs/components/adguard/__init__.pyi +4 -3
- homeassistant-stubs/components/adguard/entity.pyi +3 -3
- homeassistant-stubs/components/adguard/sensor.pyi +3 -4
- homeassistant-stubs/components/adguard/switch.pyi +3 -4
- homeassistant-stubs/components/aftership/__init__.pyi +3 -2
- homeassistant-stubs/components/aftership/sensor.pyi +2 -2
- homeassistant-stubs/components/air_quality/__init__.pyi +1 -1
- homeassistant-stubs/components/air_quality/const.pyi +3 -0
- homeassistant-stubs/components/air_quality/group.pyi +1 -0
- homeassistant-stubs/components/airgradient/__init__.pyi +11 -0
- homeassistant-stubs/components/airgradient/config_flow.pyi +18 -0
- homeassistant-stubs/components/airgradient/const.pyi +4 -0
- homeassistant-stubs/components/airgradient/coordinator.pyi +24 -0
- homeassistant-stubs/components/airgradient/entity.pyi +10 -0
- homeassistant-stubs/components/airgradient/select.pyi +37 -0
- homeassistant-stubs/components/airgradient/sensor.pyi +30 -0
- homeassistant-stubs/components/airly/__init__.pyi +3 -2
- homeassistant-stubs/components/airly/coordinator.pyi +1 -1
- homeassistant-stubs/components/airly/diagnostics.pyi +2 -4
- homeassistant-stubs/components/airly/sensor.pyi +2 -3
- homeassistant-stubs/components/airly/system_health.pyi +1 -0
- homeassistant-stubs/components/airnow/__init__.pyi +3 -2
- homeassistant-stubs/components/airnow/const.pyi +1 -0
- homeassistant-stubs/components/airnow/diagnostics.pyi +2 -4
- homeassistant-stubs/components/airnow/sensor.pyi +3 -4
- homeassistant-stubs/components/airq/__init__.pyi +5 -3
- homeassistant-stubs/components/airq/config_flow.pyi +8 -2
- homeassistant-stubs/components/airq/const.pyi +2 -0
- homeassistant-stubs/components/airq/coordinator.pyi +3 -1
- homeassistant-stubs/components/airq/sensor.pyi +3 -4
- homeassistant-stubs/components/airthings/__init__.pyi +3 -2
- homeassistant-stubs/components/airthings/sensor.pyi +2 -3
- homeassistant-stubs/components/airthings_ble/__init__.pyi +5 -3
- homeassistant-stubs/components/airthings_ble/sensor.pyi +6 -6
- homeassistant-stubs/components/airtouch5/__init__.pyi +4 -2
- homeassistant-stubs/components/airtouch5/climate.pyi +2 -2
- homeassistant-stubs/components/airvisual_pro/__init__.pyi +3 -2
- homeassistant-stubs/components/airvisual_pro/diagnostics.pyi +2 -4
- homeassistant-stubs/components/airvisual_pro/sensor.pyi +2 -4
- homeassistant-stubs/components/airzone_cloud/climate.pyi +6 -9
- homeassistant-stubs/components/aladdin_connect/__init__.pyi +10 -8
- homeassistant-stubs/components/aladdin_connect/api.pyi +12 -0
- homeassistant-stubs/components/aladdin_connect/application_credentials.pyi +5 -0
- homeassistant-stubs/components/aladdin_connect/config_flow.pyi +14 -19
- homeassistant-stubs/components/aladdin_connect/const.pyi +2 -10
- homeassistant-stubs/components/aladdin_connect/coordinator.pyi +15 -0
- homeassistant-stubs/components/aladdin_connect/cover.pyi +11 -28
- homeassistant-stubs/components/aladdin_connect/entity.pyi +12 -0
- homeassistant-stubs/components/aladdin_connect/sensor.pyi +9 -16
- homeassistant-stubs/components/alarm_control_panel/__init__.pyi +15 -1
- homeassistant-stubs/components/alarm_control_panel/group.pyi +2 -1
- homeassistant-stubs/components/ambient_station/__init__.pyi +3 -2
- homeassistant-stubs/components/ambient_station/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/ambient_station/diagnostics.pyi +3 -4
- homeassistant-stubs/components/ambient_station/sensor.pyi +3 -4
- homeassistant-stubs/components/analytics_insights/__init__.pyi +5 -4
- homeassistant-stubs/components/analytics_insights/coordinator.pyi +2 -2
- homeassistant-stubs/components/analytics_insights/sensor.pyi +2 -3
- homeassistant-stubs/components/androidtv/__init__.pyi +12 -4
- homeassistant-stubs/components/androidtv/const.pyi +0 -2
- homeassistant-stubs/components/androidtv/diagnostics.pyi +3 -3
- homeassistant-stubs/components/androidtv/entity.pyi +3 -9
- homeassistant-stubs/components/androidtv/media_player.pyi +4 -4
- homeassistant-stubs/components/androidtv_remote/__init__.pyi +4 -4
- homeassistant-stubs/components/androidtv_remote/config_flow.pyi +1 -0
- homeassistant-stubs/components/androidtv_remote/diagnostics.pyi +2 -4
- homeassistant-stubs/components/androidtv_remote/media_player.pyi +3 -4
- homeassistant-stubs/components/androidtv_remote/remote.pyi +2 -4
- homeassistant-stubs/components/anova/__init__.pyi +3 -2
- homeassistant-stubs/components/anova/config_flow.pyi +0 -1
- homeassistant-stubs/components/anova/coordinator.pyi +7 -6
- homeassistant-stubs/components/anova/entity.pyi +2 -0
- homeassistant-stubs/components/anova/models.pyi +3 -3
- homeassistant-stubs/components/anova/sensor.pyi +7 -9
- homeassistant-stubs/components/apple_tv/__init__.pyi +2 -1
- homeassistant-stubs/components/apple_tv/media_player.pyi +2 -4
- homeassistant-stubs/components/apple_tv/remote.pyi +2 -4
- homeassistant-stubs/components/aprs/device_tracker.pyi +1 -0
- homeassistant-stubs/components/apsystems/__init__.pyi +10 -0
- homeassistant-stubs/components/{poolsense → apsystems}/config_flow.pyi +4 -5
- homeassistant-stubs/components/apsystems/const.pyi +4 -0
- homeassistant-stubs/components/apsystems/coordinator.pyi +10 -0
- homeassistant-stubs/components/apsystems/sensor.pyi +31 -0
- homeassistant-stubs/components/aquostv/media_player.pyi +1 -3
- homeassistant-stubs/components/aranet/const.pyi +1 -0
- homeassistant-stubs/components/aranet/sensor.pyi +8 -6
- homeassistant-stubs/components/arcam_fmj/media_player.pyi +1 -3
- homeassistant-stubs/components/asuswrt/__init__.pyi +4 -4
- homeassistant-stubs/components/asuswrt/bridge.pyi +3 -4
- homeassistant-stubs/components/asuswrt/const.pyi +0 -1
- homeassistant-stubs/components/asuswrt/device_tracker.pyi +2 -3
- homeassistant-stubs/components/asuswrt/diagnostics.pyi +2 -4
- homeassistant-stubs/components/asuswrt/router.pyi +2 -1
- homeassistant-stubs/components/asuswrt/sensor.pyi +3 -3
- homeassistant-stubs/components/auth/__init__.pyi +2 -7
- homeassistant-stubs/components/axis/__init__.pyi +2 -1
- homeassistant-stubs/components/axis/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/axis/camera.pyi +2 -2
- homeassistant-stubs/components/axis/config_flow.pyi +2 -0
- homeassistant-stubs/components/axis/diagnostics.pyi +2 -3
- homeassistant-stubs/components/axis/hub/hub.pyi +3 -5
- homeassistant-stubs/components/axis/light.pyi +2 -2
- homeassistant-stubs/components/axis/switch.pyi +2 -2
- homeassistant-stubs/components/baf/__init__.pyi +6 -5
- homeassistant-stubs/components/baf/binary_sensor.pyi +2 -4
- homeassistant-stubs/components/baf/climate.pyi +2 -4
- homeassistant-stubs/components/baf/fan.pyi +3 -4
- homeassistant-stubs/components/baf/light.pyi +2 -4
- homeassistant-stubs/components/baf/models.pyi +0 -8
- homeassistant-stubs/components/baf/number.pyi +3 -4
- homeassistant-stubs/components/baf/sensor.pyi +2 -4
- homeassistant-stubs/components/baf/switch.pyi +2 -4
- homeassistant-stubs/components/bang_olufsen/entity.pyi +2 -1
- homeassistant-stubs/components/bang_olufsen/media_player.pyi +7 -7
- homeassistant-stubs/components/blue_current/sensor.pyi +7 -1
- homeassistant-stubs/components/blueprint/const.pyi +1 -0
- homeassistant-stubs/components/blueprint/schemas.pyi +4 -2
- homeassistant-stubs/components/bluetooth/active_update_coordinator.pyi +2 -3
- homeassistant-stubs/components/bluetooth/active_update_processor.pyi +4 -5
- homeassistant-stubs/components/bluetooth/api.pyi +1 -0
- homeassistant-stubs/components/bluetooth/config_flow.pyi +0 -1
- homeassistant-stubs/components/bluetooth/match.pyi +2 -3
- homeassistant-stubs/components/bluetooth/models.pyi +0 -2
- homeassistant-stubs/components/bluetooth/passive_update_coordinator.pyi +2 -0
- homeassistant-stubs/components/bluetooth/passive_update_processor.pyi +15 -17
- homeassistant-stubs/components/bluetooth/update_coordinator.pyi +0 -2
- homeassistant-stubs/components/bmw_connected_drive/coordinator.pyi +1 -0
- homeassistant-stubs/components/bmw_connected_drive/sensor.pyi +3 -10
- homeassistant-stubs/components/bond/__init__.pyi +4 -3
- homeassistant-stubs/components/bond/button.pyi +2 -4
- homeassistant-stubs/components/bond/cover.pyi +2 -4
- homeassistant-stubs/components/bond/diagnostics.pyi +2 -4
- homeassistant-stubs/components/bond/fan.pyi +3 -4
- homeassistant-stubs/components/bond/light.pyi +3 -4
- homeassistant-stubs/components/bond/switch.pyi +3 -4
- homeassistant-stubs/components/braviatv/__init__.pyi +4 -4
- homeassistant-stubs/components/braviatv/button.pyi +2 -3
- homeassistant-stubs/components/braviatv/coordinator.pyi +2 -4
- homeassistant-stubs/components/braviatv/diagnostics.pyi +2 -4
- homeassistant-stubs/components/braviatv/media_player.pyi +3 -3
- homeassistant-stubs/components/braviatv/remote.pyi +2 -3
- homeassistant-stubs/components/brother/__init__.pyi +5 -13
- homeassistant-stubs/components/brother/config_flow.pyi +1 -1
- homeassistant-stubs/components/brother/const.pyi +1 -2
- homeassistant-stubs/components/brother/coordinator.pyi +12 -0
- homeassistant-stubs/components/brother/diagnostics.pyi +2 -4
- homeassistant-stubs/components/brother/sensor.pyi +3 -4
- homeassistant-stubs/components/bthome/__init__.pyi +1 -1
- homeassistant-stubs/components/bthome/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/bthome/coordinator.pyi +4 -5
- homeassistant-stubs/components/bthome/logbook.pyi +0 -1
- homeassistant-stubs/components/bthome/sensor.pyi +2 -2
- homeassistant-stubs/components/canary/alarm_control_panel.pyi +1 -0
- homeassistant-stubs/components/cert_expiry/__init__.pyi +2 -2
- homeassistant-stubs/components/cert_expiry/sensor.pyi +3 -3
- homeassistant-stubs/components/climate/group.pyi +2 -2
- homeassistant-stubs/components/climate/intent.pyi +2 -0
- homeassistant-stubs/components/cloud/__init__.pyi +3 -6
- homeassistant-stubs/components/cloud/const.pyi +0 -1
- homeassistant-stubs/components/cloud/http_api.pyi +4 -7
- homeassistant-stubs/components/cloud/prefs.pyi +3 -5
- homeassistant-stubs/components/co2signal/__init__.pyi +3 -2
- homeassistant-stubs/components/co2signal/diagnostics.pyi +2 -4
- homeassistant-stubs/components/co2signal/sensor.pyi +2 -2
- homeassistant-stubs/components/config/area_registry.pyi +0 -2
- homeassistant-stubs/components/config/device_registry.pyi +1 -1
- homeassistant-stubs/components/config/floor_registry.pyi +1 -1
- homeassistant-stubs/components/config/label_registry.pyi +1 -1
- homeassistant-stubs/components/config/view.pyi +2 -4
- homeassistant-stubs/components/counter/__init__.pyi +1 -2
- homeassistant-stubs/components/cover/__init__.pyi +2 -4
- homeassistant-stubs/components/cover/const.pyi +1 -0
- homeassistant-stubs/components/cover/group.pyi +1 -0
- homeassistant-stubs/components/deconz/__init__.pyi +6 -1
- homeassistant-stubs/components/deconz/binary_sensor.pyi +3 -14
- homeassistant-stubs/components/deconz/deconz_device.pyi +2 -6
- homeassistant-stubs/components/deconz/device_trigger.pyi +2 -1
- homeassistant-stubs/components/deconz/light.pyi +1 -2
- homeassistant-stubs/components/deconz/number.pyi +4 -8
- homeassistant-stubs/components/deconz/sensor.pyi +3 -1
- homeassistant-stubs/components/deconz/services.pyi +0 -2
- homeassistant-stubs/components/demo/alarm_control_panel.pyi +3 -0
- homeassistant-stubs/components/demo/lock.pyi +5 -1
- homeassistant-stubs/components/demo/notify.pyi +3 -2
- homeassistant-stubs/components/device_automation/__init__.pyi +2 -2
- homeassistant-stubs/components/device_tracker/group.pyi +1 -0
- homeassistant-stubs/components/devolo_home_control/__init__.pyi +6 -3
- homeassistant-stubs/components/devolo_home_control/binary_sensor.pyi +2 -3
- homeassistant-stubs/components/devolo_home_control/climate.pyi +2 -3
- homeassistant-stubs/components/devolo_home_control/cover.pyi +2 -3
- homeassistant-stubs/components/devolo_home_control/diagnostics.pyi +2 -4
- homeassistant-stubs/components/devolo_home_control/light.pyi +2 -3
- homeassistant-stubs/components/devolo_home_control/sensor.pyi +2 -3
- homeassistant-stubs/components/devolo_home_control/siren.pyi +2 -3
- homeassistant-stubs/components/devolo_home_control/switch.pyi +2 -3
- homeassistant-stubs/components/devolo_home_network/__init__.pyi +11 -2
- homeassistant-stubs/components/devolo_home_network/binary_sensor.pyi +4 -5
- homeassistant-stubs/components/devolo_home_network/button.pyi +3 -3
- homeassistant-stubs/components/devolo_home_network/device_tracker.pyi +2 -2
- homeassistant-stubs/components/devolo_home_network/diagnostics.pyi +2 -4
- homeassistant-stubs/components/devolo_home_network/entity.pyi +4 -8
- homeassistant-stubs/components/devolo_home_network/image.pyi +4 -5
- homeassistant-stubs/components/devolo_home_network/sensor.pyi +5 -6
- homeassistant-stubs/components/devolo_home_network/switch.pyi +3 -3
- homeassistant-stubs/components/devolo_home_network/update.pyi +3 -3
- homeassistant-stubs/components/dhcp/__init__.pyi +1 -1
- homeassistant-stubs/components/diagnostics/util.pyi +1 -3
- homeassistant-stubs/components/discovergy/__init__.pyi +2 -2
- homeassistant-stubs/components/discovergy/diagnostics.pyi +2 -4
- homeassistant-stubs/components/discovergy/sensor.pyi +2 -2
- homeassistant-stubs/components/dlna_dmr/media_player.pyi +2 -5
- homeassistant-stubs/components/dlna_dms/dms.pyi +1 -4
- homeassistant-stubs/components/dnsip/sensor.pyi +2 -0
- homeassistant-stubs/components/duotecno/entity.pyi +2 -4
- homeassistant-stubs/components/ecovacs/__init__.pyi +3 -2
- homeassistant-stubs/components/ecovacs/binary_sensor.pyi +2 -4
- homeassistant-stubs/components/ecovacs/button.pyi +3 -4
- homeassistant-stubs/components/ecovacs/controller.pyi +4 -1
- homeassistant-stubs/components/ecovacs/diagnostics.pyi +3 -4
- homeassistant-stubs/components/ecovacs/event.pyi +2 -4
- homeassistant-stubs/components/ecovacs/image.pyi +2 -4
- homeassistant-stubs/components/ecovacs/lawn_mower.pyi +2 -4
- homeassistant-stubs/components/ecovacs/number.pyi +2 -4
- homeassistant-stubs/components/ecovacs/select.pyi +2 -4
- homeassistant-stubs/components/ecovacs/sensor.pyi +3 -4
- homeassistant-stubs/components/ecovacs/switch.pyi +2 -4
- homeassistant-stubs/components/ecovacs/vacuum.pyi +2 -3
- homeassistant-stubs/components/elgato/__init__.pyi +3 -3
- homeassistant-stubs/components/elgato/button.pyi +2 -3
- homeassistant-stubs/components/elgato/diagnostics.pyi +2 -4
- homeassistant-stubs/components/elgato/light.pyi +3 -3
- homeassistant-stubs/components/elgato/sensor.pyi +2 -3
- homeassistant-stubs/components/elgato/switch.pyi +2 -3
- homeassistant-stubs/components/elkm1/__init__.pyi +3 -2
- homeassistant-stubs/components/elkm1/alarm_control_panel.pyi +3 -4
- homeassistant-stubs/components/elkm1/binary_sensor.pyi +2 -5
- homeassistant-stubs/components/elkm1/climate.pyi +2 -5
- homeassistant-stubs/components/elkm1/light.pyi +2 -4
- homeassistant-stubs/components/elkm1/scene.pyi +2 -5
- homeassistant-stubs/components/elkm1/sensor.pyi +3 -5
- homeassistant-stubs/components/elkm1/switch.pyi +2 -5
- homeassistant-stubs/components/energy/validate.pyi +3 -3
- homeassistant-stubs/components/energy/websocket_api.pyi +3 -3
- homeassistant-stubs/components/enphase_envoy/config_flow.pyi +1 -0
- homeassistant-stubs/components/eq3btsmart/climate.pyi +1 -1
- homeassistant-stubs/components/esphome/config_flow.pyi +3 -0
- homeassistant-stubs/components/esphome/coordinator.pyi +16 -0
- homeassistant-stubs/components/esphome/dashboard.pyi +3 -14
- homeassistant-stubs/components/esphome/enum_mapper.pyi +3 -6
- homeassistant-stubs/components/esphome/manager.pyi +2 -1
- homeassistant-stubs/components/esphome/media_player.pyi +1 -1
- homeassistant-stubs/components/esphome/update.pyi +4 -3
- homeassistant-stubs/components/esphome/voice_assistant.pyi +5 -1
- homeassistant-stubs/components/evil_genius_labs/__init__.pyi +2 -13
- homeassistant-stubs/components/evil_genius_labs/coordinator.pyi +17 -0
- homeassistant-stubs/components/evil_genius_labs/diagnostics.pyi +1 -1
- homeassistant-stubs/components/evil_genius_labs/light.pyi +2 -1
- homeassistant-stubs/components/evil_genius_labs/util.pyi +2 -6
- homeassistant-stubs/components/evohome/__init__.pyi +1 -1
- homeassistant-stubs/components/feedreader/__init__.pyi +4 -46
- homeassistant-stubs/components/feedreader/const.pyi +1 -0
- homeassistant-stubs/components/feedreader/coordinator.pyi +39 -0
- homeassistant-stubs/components/filesize/__init__.pyi +3 -1
- homeassistant-stubs/components/filesize/coordinator.pyi +1 -1
- homeassistant-stubs/components/filesize/sensor.pyi +4 -4
- homeassistant-stubs/components/fitbit/api.pyi +1 -2
- homeassistant-stubs/components/fitbit/coordinator.pyi +1 -1
- homeassistant-stubs/components/forecast_solar/__init__.pyi +3 -2
- homeassistant-stubs/components/forecast_solar/diagnostics.pyi +2 -5
- homeassistant-stubs/components/forecast_solar/energy.pyi +1 -1
- homeassistant-stubs/components/forecast_solar/sensor.pyi +2 -2
- homeassistant-stubs/components/fritz/__init__.pyi +1 -1
- homeassistant-stubs/components/fritz/binary_sensor.pyi +4 -3
- homeassistant-stubs/components/fritz/button.pyi +4 -3
- homeassistant-stubs/components/fritz/const.pyi +0 -3
- homeassistant-stubs/components/fritz/{common.pyi → coordinator.pyi} +7 -53
- homeassistant-stubs/components/fritz/device_tracker.pyi +2 -1
- homeassistant-stubs/components/fritz/diagnostics.pyi +1 -1
- homeassistant-stubs/components/fritz/entity.pyi +50 -0
- homeassistant-stubs/components/fritz/image.pyi +2 -1
- homeassistant-stubs/components/fritz/sensor.pyi +4 -3
- homeassistant-stubs/components/fritz/services.pyi +2 -2
- homeassistant-stubs/components/fritz/switch.pyi +2 -1
- homeassistant-stubs/components/fritz/update.pyi +4 -3
- homeassistant-stubs/components/fritzbox/__init__.pyi +6 -8
- homeassistant-stubs/components/fritzbox/binary_sensor.pyi +2 -3
- homeassistant-stubs/components/fritzbox/button.pyi +2 -3
- homeassistant-stubs/components/fritzbox/climate.pyi +2 -3
- homeassistant-stubs/components/fritzbox/const.pyi +0 -2
- homeassistant-stubs/components/fritzbox/coordinator.pyi +10 -7
- homeassistant-stubs/components/fritzbox/cover.pyi +2 -3
- homeassistant-stubs/components/fritzbox/diagnostics.pyi +2 -4
- homeassistant-stubs/components/fritzbox/light.pyi +2 -3
- homeassistant-stubs/components/fritzbox/sensor.pyi +2 -3
- homeassistant-stubs/components/fritzbox/switch.pyi +2 -3
- homeassistant-stubs/components/fritzbox_callmonitor/__init__.pyi +5 -4
- homeassistant-stubs/components/fritzbox_callmonitor/const.pyi +0 -2
- homeassistant-stubs/components/fritzbox_callmonitor/sensor.pyi +3 -3
- homeassistant-stubs/components/fronius/__init__.pyi +4 -6
- homeassistant-stubs/components/fronius/coordinator.pyi +1 -3
- homeassistant-stubs/components/{aladdin_connect → fronius}/diagnostics.pyi +2 -4
- homeassistant-stubs/components/fronius/sensor.pyi +2 -3
- homeassistant-stubs/components/gios/__init__.pyi +10 -10
- homeassistant-stubs/components/gios/coordinator.pyi +13 -0
- homeassistant-stubs/components/gios/diagnostics.pyi +2 -4
- homeassistant-stubs/components/gios/sensor.pyi +3 -3
- homeassistant-stubs/components/google/calendar.pyi +2 -29
- homeassistant-stubs/components/google/coordinator.pyi +38 -0
- homeassistant-stubs/components/group/entity.pyi +5 -2
- homeassistant-stubs/components/group/lock.pyi +3 -1
- homeassistant-stubs/components/group/registry.pyi +12 -6
- homeassistant-stubs/components/group/sensor.pyi +2 -0
- homeassistant-stubs/components/guardian/coordinator.pyi +1 -1
- homeassistant-stubs/components/guardian/util.pyi +1 -3
- homeassistant-stubs/components/history_stats/sensor.pyi +0 -2
- homeassistant-stubs/components/holiday/calendar.pyi +11 -1
- homeassistant-stubs/components/homeassistant/__init__.pyi +1 -0
- homeassistant-stubs/components/homeassistant/triggers/numeric_state.pyi +0 -3
- homeassistant-stubs/components/homeassistant_alerts/__init__.pyi +3 -24
- homeassistant-stubs/components/homeassistant_alerts/const.pyi +6 -0
- homeassistant-stubs/components/homeassistant_alerts/coordinator.pyi +26 -0
- homeassistant-stubs/components/homeassistant_sky_connect/config_flow.pyi +1 -0
- homeassistant-stubs/components/homeassistant_sky_connect/util.pyi +1 -1
- homeassistant-stubs/components/homekit/const.pyi +2 -0
- homeassistant-stubs/components/homekit/type_sensors.pyi +3 -1
- homeassistant-stubs/components/homekit/util.pyi +2 -1
- homeassistant-stubs/components/homewizard/helpers.pyi +1 -4
- homeassistant-stubs/components/http/__init__.pyi +6 -7
- homeassistant-stubs/components/http/auth.pyi +2 -10
- homeassistant-stubs/components/http/ban.pyi +1 -3
- homeassistant-stubs/components/http/const.pyi +0 -6
- homeassistant-stubs/components/http/data_validator.pyi +2 -4
- homeassistant-stubs/components/http/decorators.pyi +2 -5
- homeassistant-stubs/components/http/web_runner.pyi +1 -1
- homeassistant-stubs/components/humidifier/intent.pyi +4 -0
- homeassistant-stubs/components/{poolsense → husqvarna_automower}/__init__.pyi +6 -4
- homeassistant-stubs/components/husqvarna_automower/api.pyi +11 -0
- homeassistant-stubs/components/husqvarna_automower/application_credentials.pyi +5 -0
- homeassistant-stubs/components/husqvarna_automower/binary_sensor.pyi +29 -0
- homeassistant-stubs/components/husqvarna_automower/config_flow.pyi +23 -0
- homeassistant-stubs/components/husqvarna_automower/const.pyi +5 -0
- homeassistant-stubs/components/husqvarna_automower/coordinator.pyi +20 -0
- homeassistant-stubs/components/husqvarna_automower/device_tracker.pyi +21 -0
- homeassistant-stubs/components/husqvarna_automower/diagnostics.pyi +17 -0
- homeassistant-stubs/components/husqvarna_automower/entity.pyi +20 -0
- homeassistant-stubs/components/husqvarna_automower/lawn_mower.pyi +28 -0
- homeassistant-stubs/components/husqvarna_automower/number.pyi +67 -0
- homeassistant-stubs/components/husqvarna_automower/select.pyi +25 -0
- homeassistant-stubs/components/husqvarna_automower/sensor.pyi +35 -0
- homeassistant-stubs/components/husqvarna_automower/switch.pyi +49 -0
- homeassistant-stubs/components/hydrawise/binary_sensor.pyi +14 -4
- homeassistant-stubs/components/hydrawise/coordinator.pyi +8 -5
- homeassistant-stubs/components/hydrawise/entity.pyi +10 -3
- homeassistant-stubs/components/hydrawise/sensor.pyi +24 -7
- homeassistant-stubs/components/hydrawise/switch.pyi +12 -2
- homeassistant-stubs/components/ibeacon/__init__.pyi +5 -3
- homeassistant-stubs/components/ibeacon/device_tracker.pyi +3 -3
- homeassistant-stubs/components/ibeacon/sensor.pyi +3 -3
- homeassistant-stubs/components/idasen_desk/__init__.pyi +2 -12
- homeassistant-stubs/components/idasen_desk/coordinator.pyi +19 -0
- homeassistant-stubs/components/imgw_pib/__init__.pyi +21 -0
- homeassistant-stubs/components/imgw_pib/binary_sensor.pyi +28 -0
- homeassistant-stubs/components/imgw_pib/config_flow.pyi +12 -0
- homeassistant-stubs/components/imgw_pib/const.pyi +6 -0
- homeassistant-stubs/components/imgw_pib/coordinator.pyi +15 -0
- homeassistant-stubs/components/imgw_pib/diagnostics.pyi +5 -0
- homeassistant-stubs/components/imgw_pib/entity.pyi +10 -0
- homeassistant-stubs/components/imgw_pib/sensor.pyi +30 -0
- homeassistant-stubs/components/integration/config_flow.pyi +11 -4
- homeassistant-stubs/components/integration/sensor.pyi +2 -1
- homeassistant-stubs/components/intent/__init__.pyi +8 -16
- homeassistant-stubs/components/intent/const.pyi +3 -0
- homeassistant-stubs/components/intent/timers.pyi +133 -0
- homeassistant-stubs/components/intent_script/__init__.pyi +4 -1
- homeassistant-stubs/components/ipp/__init__.pyi +3 -2
- homeassistant-stubs/components/ipp/diagnostics.pyi +2 -4
- homeassistant-stubs/components/ipp/sensor.pyi +3 -4
- homeassistant-stubs/components/jellyfin/config_flow.pyi +11 -2
- homeassistant-stubs/components/jellyfin/const.pyi +2 -0
- homeassistant-stubs/components/jellyfin/media_source.pyi +4 -2
- homeassistant-stubs/components/jewish_calendar/__init__.pyi +11 -10
- homeassistant-stubs/components/jewish_calendar/binary_sensor.pyi +7 -5
- homeassistant-stubs/components/jewish_calendar/config_flow.pyi +25 -0
- homeassistant-stubs/components/jewish_calendar/const.pyi +9 -0
- homeassistant-stubs/components/jewish_calendar/sensor.pyi +7 -7
- homeassistant-stubs/components/knx/climate.pyi +3 -0
- homeassistant-stubs/components/knx/const.pyi +0 -1
- homeassistant-stubs/components/knx/device_trigger.pyi +6 -8
- homeassistant-stubs/components/knx/expose.pyi +4 -1
- homeassistant-stubs/components/knx/notify.pyi +2 -3
- homeassistant-stubs/components/knx/schema.pyi +1 -1
- homeassistant-stubs/components/knx/telegrams.pyi +14 -7
- homeassistant-stubs/components/knx/trigger.pyi +27 -0
- homeassistant-stubs/components/lamarzocco/coordinator.pyi +1 -2
- homeassistant-stubs/components/lametric/helpers.pyi +1 -4
- homeassistant-stubs/components/lcn/helpers.pyi +1 -2
- homeassistant-stubs/components/light/intent.pyi +2 -7
- homeassistant-stubs/components/linear_garage_door/coordinator.pyi +15 -9
- homeassistant-stubs/components/linear_garage_door/cover.pyi +2 -14
- homeassistant-stubs/components/linear_garage_door/entity.pyi +17 -0
- homeassistant-stubs/components/linear_garage_door/light.pyi +25 -0
- homeassistant-stubs/components/local_todo/__init__.pyi +3 -2
- homeassistant-stubs/components/local_todo/todo.pyi +3 -3
- homeassistant-stubs/components/lock/__init__.pyi +8 -2
- homeassistant-stubs/components/lock/const.pyi +1 -0
- homeassistant-stubs/components/lock/device_condition.pyi +1 -1
- homeassistant-stubs/components/lock/device_trigger.pyi +1 -1
- homeassistant-stubs/components/lock/group.pyi +2 -1
- homeassistant-stubs/components/lock/reproduce_state.pyi +1 -1
- homeassistant-stubs/components/lookin/coordinator.pyi +0 -2
- homeassistant-stubs/components/mastodon/notify.pyi +8 -1
- homeassistant-stubs/components/matter/api.pyi +1 -2
- homeassistant-stubs/components/matter/climate.pyi +3 -2
- homeassistant-stubs/components/matter/entity.pyi +1 -9
- homeassistant-stubs/components/matter/fan.pyi +44 -0
- homeassistant-stubs/components/matter/models.pyi +1 -2
- homeassistant-stubs/components/matter/sensor.pyi +2 -0
- homeassistant-stubs/components/media_extractor/__init__.pyi +3 -0
- homeassistant-stubs/components/media_extractor/config_flow.pyi +8 -0
- homeassistant-stubs/components/media_player/__init__.pyi +3 -0
- homeassistant-stubs/components/media_player/group.pyi +1 -0
- homeassistant-stubs/components/media_player/intent.pyi +27 -1
- homeassistant-stubs/components/media_source/__init__.pyi +4 -0
- homeassistant-stubs/components/metoffice/weather.pyi +1 -1
- homeassistant-stubs/components/mikrotik/__init__.pyi +1 -1
- homeassistant-stubs/components/mikrotik/config_flow.pyi +1 -1
- homeassistant-stubs/components/mikrotik/device_tracker.pyi +1 -1
- homeassistant-stubs/components/monzo/__init__.pyi +13 -0
- homeassistant-stubs/components/monzo/api.pyi +9 -0
- homeassistant-stubs/components/monzo/application_credentials.pyi +7 -0
- homeassistant-stubs/components/monzo/config_flow.pyi +14 -0
- homeassistant-stubs/components/monzo/const.pyi +1 -0
- homeassistant-stubs/components/monzo/coordinator.pyi +20 -0
- homeassistant-stubs/components/monzo/entity.pyi +17 -0
- homeassistant-stubs/components/monzo/sensor.pyi +31 -0
- homeassistant-stubs/components/mopeka/sensor.pyi +2 -2
- homeassistant-stubs/components/motionmount/entity.pyi +3 -0
- homeassistant-stubs/components/mqtt/__init__.pyi +10 -10
- homeassistant-stubs/components/mqtt/alarm_control_panel.pyi +4 -4
- homeassistant-stubs/components/mqtt/binary_sensor.pyi +6 -4
- homeassistant-stubs/components/mqtt/button.pyi +4 -3
- homeassistant-stubs/components/mqtt/camera.pyi +4 -4
- homeassistant-stubs/components/mqtt/client.pyi +29 -21
- homeassistant-stubs/components/mqtt/climate.pyi +8 -7
- homeassistant-stubs/components/mqtt/config_flow.pyi +0 -1
- homeassistant-stubs/components/mqtt/const.pyi +14 -4
- homeassistant-stubs/components/mqtt/cover.pyi +7 -5
- homeassistant-stubs/components/mqtt/debug_info.pyi +4 -9
- homeassistant-stubs/components/mqtt/device_tracker.pyi +6 -5
- homeassistant-stubs/components/mqtt/device_trigger.pyi +12 -16
- homeassistant-stubs/components/mqtt/diagnostics.pyi +1 -1
- homeassistant-stubs/components/mqtt/discovery.pyi +14 -9
- homeassistant-stubs/components/mqtt/event.pyi +5 -6
- homeassistant-stubs/components/mqtt/fan.pyi +9 -5
- homeassistant-stubs/components/mqtt/humidifier.pyi +8 -5
- homeassistant-stubs/components/mqtt/image.pyi +6 -6
- homeassistant-stubs/components/mqtt/lawn_mower.pyi +4 -4
- homeassistant-stubs/components/mqtt/light/schema_basic.pyi +15 -5
- homeassistant-stubs/components/mqtt/light/schema_json.pyi +4 -4
- homeassistant-stubs/components/mqtt/light/schema_template.pyi +4 -4
- homeassistant-stubs/components/mqtt/lock.pyi +9 -4
- homeassistant-stubs/components/mqtt/mixins.pyi +35 -41
- homeassistant-stubs/components/mqtt/models.pyi +8 -6
- homeassistant-stubs/components/mqtt/notify.pyi +5 -4
- homeassistant-stubs/components/mqtt/number.pyi +4 -4
- homeassistant-stubs/components/mqtt/scene.pyi +4 -3
- homeassistant-stubs/components/mqtt/schemas.pyi +16 -0
- homeassistant-stubs/components/mqtt/select.pyi +4 -4
- homeassistant-stubs/components/mqtt/sensor.pyi +9 -7
- homeassistant-stubs/components/mqtt/siren.pyi +4 -4
- homeassistant-stubs/components/mqtt/subscription.pyi +17 -13
- homeassistant-stubs/components/mqtt/switch.pyi +6 -7
- homeassistant-stubs/components/mqtt/tag.pyi +7 -5
- homeassistant-stubs/components/mqtt/text.pyi +6 -5
- homeassistant-stubs/components/mqtt/trigger.pyi +1 -1
- homeassistant-stubs/components/mqtt/update.pyi +6 -5
- homeassistant-stubs/components/mqtt/util.pyi +5 -4
- homeassistant-stubs/components/mqtt/vacuum.pyi +4 -4
- homeassistant-stubs/components/mqtt/valve.pyi +5 -5
- homeassistant-stubs/components/mqtt/water_heater.pyi +4 -3
- homeassistant-stubs/components/mysensors/__init__.pyi +1 -1
- homeassistant-stubs/components/myuplink/application_credentials.pyi +2 -1
- homeassistant-stubs/components/myuplink/binary_sensor.pyi +18 -2
- homeassistant-stubs/components/myuplink/entity.pyi +5 -0
- homeassistant-stubs/components/nam/__init__.pyi +5 -16
- homeassistant-stubs/components/nam/button.pyi +2 -4
- homeassistant-stubs/components/nam/config_flow.pyi +2 -0
- homeassistant-stubs/components/nam/coordinator.pyi +15 -0
- homeassistant-stubs/components/nam/diagnostics.pyi +2 -4
- homeassistant-stubs/components/nam/sensor.pyi +2 -3
- homeassistant-stubs/components/nest/__init__.pyi +2 -2
- homeassistant-stubs/components/nest/climate.pyi +2 -2
- homeassistant-stubs/components/netatmo/sensor.pyi +1 -1
- homeassistant-stubs/components/network/util.pyi +1 -1
- homeassistant-stubs/components/nextdns/__init__.pyi +18 -3
- homeassistant-stubs/components/nextdns/binary_sensor.pyi +10 -15
- homeassistant-stubs/components/nextdns/button.pyi +6 -6
- homeassistant-stubs/components/nextdns/diagnostics.pyi +3 -3
- homeassistant-stubs/components/nextdns/sensor.pyi +6 -10
- homeassistant-stubs/components/nextdns/switch.pyi +11 -15
- homeassistant-stubs/components/notify/__init__.pyi +8 -2
- homeassistant-stubs/components/notify/repairs.pyi +7 -0
- homeassistant-stubs/components/nut/__init__.pyi +11 -2
- homeassistant-stubs/components/nut/const.pyi +0 -4
- homeassistant-stubs/components/nut/device_action.pyi +4 -3
- homeassistant-stubs/components/nut/diagnostics.pyi +3 -4
- homeassistant-stubs/components/nut/sensor.pyi +3 -4
- homeassistant-stubs/components/onewire/__init__.pyi +5 -4
- homeassistant-stubs/components/onewire/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/onewire/diagnostics.pyi +2 -4
- homeassistant-stubs/components/onewire/sensor.pyi +3 -3
- homeassistant-stubs/components/onewire/switch.pyi +3 -3
- homeassistant-stubs/components/oralb/sensor.pyi +2 -2
- homeassistant-stubs/components/otbr/util.pyi +1 -3
- homeassistant-stubs/components/p1_monitor/__init__.pyi +3 -19
- homeassistant-stubs/components/p1_monitor/coordinator.pyi +22 -0
- homeassistant-stubs/components/p1_monitor/diagnostics.pyi +1 -1
- homeassistant-stubs/components/p1_monitor/sensor.pyi +1 -1
- homeassistant-stubs/components/pi_hole/__init__.pyi +12 -4
- homeassistant-stubs/components/pi_hole/binary_sensor.pyi +3 -5
- homeassistant-stubs/components/pi_hole/const.pyi +0 -2
- homeassistant-stubs/components/pi_hole/diagnostics.pyi +2 -4
- homeassistant-stubs/components/pi_hole/sensor.pyi +3 -5
- homeassistant-stubs/components/pi_hole/switch.pyi +3 -4
- homeassistant-stubs/components/pi_hole/update.pyi +3 -5
- homeassistant-stubs/components/ping/__init__.pyi +6 -6
- homeassistant-stubs/components/ping/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/ping/device_tracker.pyi +2 -2
- homeassistant-stubs/components/ping/sensor.pyi +2 -3
- homeassistant-stubs/components/plugwise/__init__.pyi +4 -2
- homeassistant-stubs/components/plugwise/binary_sensor.pyi +3 -4
- homeassistant-stubs/components/plugwise/climate.pyi +3 -3
- homeassistant-stubs/components/plugwise/coordinator.pyi +5 -3
- homeassistant-stubs/components/plugwise/diagnostics.pyi +2 -4
- homeassistant-stubs/components/plugwise/number.pyi +4 -4
- homeassistant-stubs/components/plugwise/select.pyi +6 -5
- homeassistant-stubs/components/plugwise/sensor.pyi +3 -4
- homeassistant-stubs/components/plugwise/switch.pyi +3 -4
- homeassistant-stubs/components/plugwise/util.pyi +2 -6
- homeassistant-stubs/components/powerwall/sensor.pyi +10 -9
- homeassistant-stubs/components/prometheus/__init__.pyi +2 -3
- homeassistant-stubs/components/proximity/__init__.pyi +3 -3
- homeassistant-stubs/components/proximity/coordinator.pyi +2 -1
- homeassistant-stubs/components/proximity/diagnostics.pyi +2 -4
- homeassistant-stubs/components/proximity/sensor.pyi +2 -3
- homeassistant-stubs/components/prusalink/__init__.pyi +3 -31
- homeassistant-stubs/components/prusalink/button.pyi +3 -1
- homeassistant-stubs/components/prusalink/camera.pyi +3 -1
- homeassistant-stubs/components/prusalink/coordinator.pyi +34 -0
- homeassistant-stubs/components/prusalink/sensor.pyi +3 -1
- homeassistant-stubs/components/pure_energie/__init__.pyi +3 -16
- homeassistant-stubs/components/pure_energie/coordinator.pyi +19 -0
- homeassistant-stubs/components/pure_energie/diagnostics.pyi +1 -1
- homeassistant-stubs/components/pure_energie/sensor.pyi +1 -1
- homeassistant-stubs/components/rainmachine/__init__.pyi +1 -1
- homeassistant-stubs/components/rainmachine/coordinator.pyi +22 -0
- homeassistant-stubs/components/rainmachine/switch.pyi +8 -6
- homeassistant-stubs/components/rainmachine/util.pyi +1 -17
- homeassistant-stubs/components/recorder/core.pyi +5 -4
- homeassistant-stubs/components/recorder/executor.pyi +3 -2
- homeassistant-stubs/components/recorder/pool.pyi +4 -5
- homeassistant-stubs/components/recorder/purge.pyi +2 -1
- homeassistant-stubs/components/recorder/table_managers/__init__.pyi +2 -4
- homeassistant-stubs/components/recorder/table_managers/event_data.pyi +2 -1
- homeassistant-stubs/components/recorder/table_managers/event_types.pyi +2 -1
- homeassistant-stubs/components/recorder/table_managers/state_attributes.pyi +2 -1
- homeassistant-stubs/components/recorder/table_managers/states_meta.pyi +2 -1
- homeassistant-stubs/components/recorder/util.pyi +4 -12
- homeassistant-stubs/components/renault/__init__.pyi +11 -3
- homeassistant-stubs/components/renault/binary_sensor.pyi +2 -4
- homeassistant-stubs/components/renault/button.pyi +2 -4
- homeassistant-stubs/components/renault/device_tracker.pyi +2 -4
- homeassistant-stubs/components/renault/diagnostics.pyi +4 -5
- homeassistant-stubs/components/renault/renault_vehicle.pyi +2 -4
- homeassistant-stubs/components/renault/select.pyi +2 -4
- homeassistant-stubs/components/renault/sensor.pyi +2 -4
- homeassistant-stubs/components/renault/services.pyi +2 -2
- homeassistant-stubs/components/repairs/issue_handler.pyi +0 -1
- homeassistant-stubs/components/repairs/websocket_api.pyi +0 -1
- homeassistant-stubs/components/rfxtrx/__init__.pyi +1 -2
- homeassistant-stubs/components/ring/coordinator.pyi +0 -3
- homeassistant-stubs/components/ring/entity.pyi +1 -4
- homeassistant-stubs/components/roku/helpers.pyi +0 -3
- homeassistant-stubs/components/ruuvitag_ble/sensor.pyi +2 -2
- homeassistant-stubs/components/samsungtv/__init__.pyi +5 -3
- homeassistant-stubs/components/samsungtv/bridge.pyi +6 -4
- homeassistant-stubs/components/samsungtv/config_flow.pyi +1 -0
- homeassistant-stubs/components/samsungtv/coordinator.pyi +17 -0
- homeassistant-stubs/components/samsungtv/device_trigger.pyi +0 -1
- homeassistant-stubs/components/samsungtv/diagnostics.pyi +3 -4
- homeassistant-stubs/components/samsungtv/entity.pyi +17 -6
- homeassistant-stubs/components/samsungtv/helpers.pyi +2 -0
- homeassistant-stubs/components/samsungtv/media_player.pyi +10 -19
- homeassistant-stubs/components/samsungtv/remote.pyi +7 -5
- homeassistant-stubs/components/scrape/__init__.pyi +2 -1
- homeassistant-stubs/components/scrape/sensor.pyi +2 -2
- homeassistant-stubs/components/sensibo/__init__.pyi +3 -1
- homeassistant-stubs/components/sensibo/binary_sensor.pyi +2 -3
- homeassistant-stubs/components/sensibo/button.pyi +2 -3
- homeassistant-stubs/components/sensibo/climate.pyi +2 -2
- homeassistant-stubs/components/sensibo/coordinator.pyi +3 -2
- homeassistant-stubs/components/sensibo/diagnostics.pyi +2 -4
- homeassistant-stubs/components/sensibo/entity.pyi +1 -4
- homeassistant-stubs/components/sensibo/number.pyi +2 -3
- homeassistant-stubs/components/sensibo/select.pyi +2 -2
- homeassistant-stubs/components/sensibo/sensor.pyi +2 -3
- homeassistant-stubs/components/sensibo/switch.pyi +2 -2
- homeassistant-stubs/components/sensibo/update.pyi +2 -3
- homeassistant-stubs/components/sensirion_ble/sensor.pyi +2 -2
- homeassistant-stubs/components/sensor/__init__.pyi +1 -2
- homeassistant-stubs/components/sensor/group.pyi +1 -0
- homeassistant-stubs/components/sfr_box/binary_sensor.pyi +1 -4
- homeassistant-stubs/components/sfr_box/button.pyi +3 -6
- homeassistant-stubs/components/sfr_box/coordinator.pyi +4 -5
- homeassistant-stubs/components/sfr_box/sensor.pyi +1 -4
- homeassistant-stubs/components/shelly/__init__.pyi +7 -8
- homeassistant-stubs/components/shelly/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/shelly/button.pyi +4 -7
- homeassistant-stubs/components/shelly/climate.pyi +5 -6
- homeassistant-stubs/components/shelly/config_flow.pyi +2 -0
- homeassistant-stubs/components/shelly/const.pyi +1 -1
- homeassistant-stubs/components/shelly/coordinator.pyi +15 -19
- homeassistant-stubs/components/shelly/cover.pyi +4 -5
- homeassistant-stubs/components/shelly/diagnostics.pyi +2 -3
- homeassistant-stubs/components/shelly/entity.pyi +8 -9
- homeassistant-stubs/components/shelly/event.pyi +2 -3
- homeassistant-stubs/components/shelly/light.pyi +4 -5
- homeassistant-stubs/components/shelly/number.pyi +2 -3
- homeassistant-stubs/components/shelly/sensor.pyi +2 -3
- homeassistant-stubs/components/shelly/switch.pyi +22 -8
- homeassistant-stubs/components/shelly/update.pyi +2 -3
- homeassistant-stubs/components/shelly/utils.pyi +3 -4
- homeassistant-stubs/components/shelly/valve.pyi +3 -4
- homeassistant-stubs/components/shopping_list/intent.pyi +4 -0
- homeassistant-stubs/components/sleepiq/entity.pyi +1 -2
- homeassistant-stubs/components/smhi/weather.pyi +2 -2
- homeassistant-stubs/components/speedtestdotnet/__init__.pyi +2 -2
- homeassistant-stubs/components/speedtestdotnet/config_flow.pyi +4 -3
- homeassistant-stubs/components/speedtestdotnet/sensor.pyi +2 -2
- homeassistant-stubs/components/ssdp/__init__.pyi +2 -2
- homeassistant-stubs/components/sun/__init__.pyi +4 -4
- homeassistant-stubs/components/sun/entity.pyi +2 -0
- homeassistant-stubs/components/sun/sensor.pyi +2 -3
- homeassistant-stubs/components/surepetcare/__init__.pyi +4 -15
- homeassistant-stubs/components/surepetcare/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/surepetcare/coordinator.pyi +21 -0
- homeassistant-stubs/components/surepetcare/entity.pyi +1 -1
- homeassistant-stubs/components/surepetcare/lock.pyi +1 -1
- homeassistant-stubs/components/surepetcare/sensor.pyi +1 -1
- homeassistant-stubs/components/switchbee/entity.pyi +2 -4
- homeassistant-stubs/components/switchbee/switch.pyi +1 -4
- homeassistant-stubs/components/switchbot_cloud/__init__.pyi +2 -1
- homeassistant-stubs/components/switchbot_cloud/climate.pyi +1 -1
- homeassistant-stubs/components/switchbot_cloud/const.pyi +4 -1
- homeassistant-stubs/components/switchbot_cloud/coordinator.pyi +2 -2
- homeassistant-stubs/components/switchbot_cloud/sensor.pyi +25 -0
- homeassistant-stubs/components/switcher_kis/__init__.pyi +7 -26
- homeassistant-stubs/components/switcher_kis/button.pyi +8 -7
- homeassistant-stubs/components/switcher_kis/climate.pyi +3 -3
- homeassistant-stubs/components/switcher_kis/config_flow.pyi +3 -9
- homeassistant-stubs/components/switcher_kis/const.pyi +0 -5
- homeassistant-stubs/components/switcher_kis/coordinator.pyi +22 -0
- homeassistant-stubs/components/switcher_kis/cover.pyi +1 -2
- homeassistant-stubs/components/switcher_kis/diagnostics.pyi +2 -3
- homeassistant-stubs/components/switcher_kis/sensor.pyi +1 -1
- homeassistant-stubs/components/switcher_kis/switch.pyi +1 -1
- homeassistant-stubs/components/switcher_kis/utils.pyi +2 -6
- homeassistant-stubs/components/synology_dsm/common.pyi +1 -1
- homeassistant-stubs/components/synology_dsm/config_flow.pyi +1 -1
- homeassistant-stubs/components/synology_dsm/coordinator.pyi +3 -6
- homeassistant-stubs/components/synology_dsm/entity.pyi +0 -3
- homeassistant-stubs/components/systemmonitor/__init__.pyi +10 -2
- homeassistant-stubs/components/systemmonitor/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/systemmonitor/const.pyi +0 -1
- homeassistant-stubs/components/systemmonitor/diagnostics.pyi +2 -4
- homeassistant-stubs/components/systemmonitor/sensor.pyi +4 -3
- homeassistant-stubs/components/systemmonitor/util.pyi +4 -3
- homeassistant-stubs/components/tag/__init__.pyi +46 -5
- homeassistant-stubs/components/tag/const.pyi +4 -0
- homeassistant-stubs/components/tailwind/__init__.pyi +2 -1
- homeassistant-stubs/components/tailwind/binary_sensor.pyi +2 -4
- homeassistant-stubs/components/tailwind/button.pyi +2 -3
- homeassistant-stubs/components/tailwind/coordinator.pyi +0 -1
- homeassistant-stubs/components/tailwind/cover.pyi +2 -3
- homeassistant-stubs/components/tailwind/diagnostics.pyi +2 -4
- homeassistant-stubs/components/tailwind/number.pyi +2 -3
- homeassistant-stubs/components/tailwind/typing.pyi +4 -0
- homeassistant-stubs/components/technove/helpers.pyi +1 -4
- homeassistant-stubs/components/tedee/__init__.pyi +10 -3
- homeassistant-stubs/components/tedee/binary_sensor.pyi +2 -3
- homeassistant-stubs/components/tedee/config_flow.pyi +3 -1
- homeassistant-stubs/components/tedee/coordinator.pyi +5 -0
- homeassistant-stubs/components/tedee/diagnostics.pyi +2 -4
- homeassistant-stubs/components/tedee/lock.pyi +6 -3
- homeassistant-stubs/components/tedee/sensor.pyi +2 -3
- homeassistant-stubs/components/{ambiclimate → thethingsnetwork}/__init__.pyi +5 -4
- homeassistant-stubs/components/thethingsnetwork/config_flow.pyi +16 -0
- homeassistant-stubs/components/thethingsnetwork/const.pyi +8 -0
- homeassistant-stubs/components/thethingsnetwork/coordinator.pyi +16 -0
- homeassistant-stubs/components/thethingsnetwork/entity.pyi +22 -0
- homeassistant-stubs/components/thethingsnetwork/sensor.pyi +17 -0
- homeassistant-stubs/components/tibber/coordinator.pyi +19 -0
- homeassistant-stubs/components/tibber/notify.pyi +15 -3
- homeassistant-stubs/components/tibber/sensor.pyi +3 -13
- homeassistant-stubs/components/tilt_ble/sensor.pyi +2 -2
- homeassistant-stubs/components/timer/__init__.pyi +1 -2
- homeassistant-stubs/components/todo/intent.pyi +2 -0
- homeassistant-stubs/components/tplink/entity.pyi +2 -5
- homeassistant-stubs/components/tplink_omada/coordinator.pyi +3 -5
- homeassistant-stubs/components/tplink_omada/entity.pyi +2 -5
- homeassistant-stubs/components/tractive/__init__.pyi +10 -3
- homeassistant-stubs/components/tractive/binary_sensor.pyi +3 -4
- homeassistant-stubs/components/tractive/const.pyi +0 -2
- homeassistant-stubs/components/tractive/device_tracker.pyi +3 -4
- homeassistant-stubs/components/tractive/diagnostics.pyi +2 -3
- homeassistant-stubs/components/tractive/sensor.pyi +3 -4
- homeassistant-stubs/components/tractive/switch.pyi +3 -4
- homeassistant-stubs/components/trafikverket_camera/__init__.pyi +2 -1
- homeassistant-stubs/components/trafikverket_camera/binary_sensor.pyi +3 -4
- homeassistant-stubs/components/trafikverket_camera/camera.pyi +3 -3
- homeassistant-stubs/components/trafikverket_camera/coordinator.pyi +3 -2
- homeassistant-stubs/components/trafikverket_camera/sensor.pyi +3 -4
- homeassistant-stubs/components/trafikverket_ferry/__init__.pyi +4 -2
- homeassistant-stubs/components/trafikverket_ferry/coordinator.pyi +3 -2
- homeassistant-stubs/components/trafikverket_ferry/sensor.pyi +2 -2
- homeassistant-stubs/components/trafikverket_train/__init__.pyi +4 -2
- homeassistant-stubs/components/trafikverket_train/coordinator.pyi +4 -3
- homeassistant-stubs/components/trafikverket_train/sensor.pyi +2 -2
- homeassistant-stubs/components/trafikverket_weatherstation/__init__.pyi +4 -2
- homeassistant-stubs/components/trafikverket_weatherstation/coordinator.pyi +3 -2
- homeassistant-stubs/components/trafikverket_weatherstation/sensor.pyi +2 -2
- homeassistant-stubs/components/twentemilieu/__init__.pyi +4 -1
- homeassistant-stubs/components/twentemilieu/calendar.pyi +5 -7
- homeassistant-stubs/components/twentemilieu/diagnostics.pyi +0 -4
- homeassistant-stubs/components/twentemilieu/entity.pyi +4 -5
- homeassistant-stubs/components/twentemilieu/sensor.pyi +1 -2
- homeassistant-stubs/components/unifi/__init__.pyi +5 -4
- homeassistant-stubs/components/unifi/button.pyi +2 -3
- homeassistant-stubs/components/unifi/config_flow.pyi +2 -1
- homeassistant-stubs/components/unifi/device_tracker.pyi +3 -3
- homeassistant-stubs/components/unifi/diagnostics.pyi +2 -3
- homeassistant-stubs/components/unifi/hub/entity_loader.pyi +0 -1
- homeassistant-stubs/components/unifi/hub/hub.pyi +3 -5
- homeassistant-stubs/components/unifi/image.pyi +2 -2
- homeassistant-stubs/components/unifi/sensor.pyi +2 -2
- homeassistant-stubs/components/unifi/services.pyi +0 -1
- homeassistant-stubs/components/unifi/switch.pyi +3 -3
- homeassistant-stubs/components/unifi/update.pyi +2 -3
- homeassistant-stubs/components/unifiprotect/entity.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/migrate.pyi +1 -1
- homeassistant-stubs/components/upcloud/__init__.pyi +2 -9
- homeassistant-stubs/components/upcloud/coordinator.pyi +16 -0
- homeassistant-stubs/components/vacuum/__init__.pyi +2 -4
- homeassistant-stubs/components/vacuum/const.pyi +1 -0
- homeassistant-stubs/components/vacuum/group.pyi +1 -1
- homeassistant-stubs/components/vallox/__init__.pyi +5 -6
- homeassistant-stubs/components/vallox/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/vallox/config_flow.pyi +2 -1
- homeassistant-stubs/components/vallox/coordinator.pyi +12 -0
- homeassistant-stubs/components/vallox/date.pyi +2 -1
- homeassistant-stubs/components/vallox/fan.pyi +2 -1
- homeassistant-stubs/components/vallox/number.pyi +2 -1
- homeassistant-stubs/components/vallox/sensor.pyi +2 -1
- homeassistant-stubs/components/vallox/switch.pyi +2 -1
- homeassistant-stubs/components/velbus/entity.pyi +2 -4
- homeassistant-stubs/components/vlc_telnet/__init__.pyi +10 -3
- homeassistant-stubs/components/vlc_telnet/media_player.pyi +6 -6
- homeassistant-stubs/components/wallbox/coordinator.pyi +1 -3
- homeassistant-stubs/components/waqi/sensor.pyi +3 -6
- homeassistant-stubs/components/water_heater/__init__.pyi +2 -3
- homeassistant-stubs/components/water_heater/const.pyi +1 -0
- homeassistant-stubs/components/water_heater/group.pyi +2 -2
- homeassistant-stubs/components/weather/__init__.pyi +8 -7
- homeassistant-stubs/components/weather/group.pyi +1 -0
- homeassistant-stubs/components/weather/intent.pyi +2 -0
- homeassistant-stubs/components/webostv/media_player.pyi +2 -5
- homeassistant-stubs/components/websocket_api/commands.pyi +5 -5
- homeassistant-stubs/components/websocket_api/connection.pyi +2 -2
- homeassistant-stubs/components/websocket_api/const.pyi +5 -3
- homeassistant-stubs/components/websocket_api/http.pyi +4 -1
- homeassistant-stubs/components/websocket_api/messages.pyi +4 -5
- homeassistant-stubs/components/wemo/__init__.pyi +1 -1
- homeassistant-stubs/components/wemo/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/wemo/config_flow.pyi +1 -1
- homeassistant-stubs/components/wemo/device_trigger.pyi +1 -1
- homeassistant-stubs/components/wemo/entity.pyi +1 -1
- homeassistant-stubs/components/wemo/fan.pyi +1 -1
- homeassistant-stubs/components/wemo/light.pyi +1 -1
- homeassistant-stubs/components/wemo/models.pyi +3 -3
- homeassistant-stubs/components/wemo/sensor.pyi +1 -1
- homeassistant-stubs/components/wemo/switch.pyi +1 -1
- homeassistant-stubs/components/withings/__init__.pyi +6 -5
- homeassistant-stubs/components/withings/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/withings/calendar.pyi +2 -3
- homeassistant-stubs/components/withings/coordinator.pyi +5 -7
- homeassistant-stubs/components/withings/diagnostics.pyi +2 -4
- homeassistant-stubs/components/withings/entity.pyi +0 -3
- homeassistant-stubs/components/withings/sensor.pyi +3 -7
- homeassistant-stubs/components/wled/__init__.pyi +4 -3
- homeassistant-stubs/components/wled/binary_sensor.pyi +3 -4
- homeassistant-stubs/components/wled/button.pyi +3 -4
- homeassistant-stubs/components/wled/diagnostics.pyi +2 -4
- homeassistant-stubs/components/wled/helpers.pyi +2 -5
- homeassistant-stubs/components/wled/light.pyi +4 -4
- homeassistant-stubs/components/wled/number.pyi +4 -4
- homeassistant-stubs/components/wled/select.pyi +3 -4
- homeassistant-stubs/components/wled/sensor.pyi +3 -4
- homeassistant-stubs/components/wled/switch.pyi +4 -4
- homeassistant-stubs/components/wled/update.pyi +3 -4
- homeassistant-stubs/components/xiaomi_ble/__init__.pyi +1 -1
- homeassistant-stubs/components/xiaomi_ble/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/xiaomi_ble/coordinator.pyi +4 -4
- homeassistant-stubs/components/xiaomi_ble/sensor.pyi +2 -2
- homeassistant-stubs/components/yale_smart_alarm/__init__.pyi +4 -2
- homeassistant-stubs/components/yale_smart_alarm/alarm_control_panel.pyi +3 -3
- homeassistant-stubs/components/yale_smart_alarm/binary_sensor.pyi +2 -3
- homeassistant-stubs/components/yale_smart_alarm/button.pyi +4 -3
- homeassistant-stubs/components/yale_smart_alarm/const.pyi +0 -1
- homeassistant-stubs/components/yale_smart_alarm/diagnostics.pyi +2 -4
- homeassistant-stubs/components/yale_smart_alarm/lock.pyi +3 -3
- homeassistant-stubs/components/yale_smart_alarm/sensor.pyi +16 -0
- homeassistant-stubs/components/yalexs_ble/__init__.pyi +5 -4
- homeassistant-stubs/components/yalexs_ble/binary_sensor.pyi +2 -4
- homeassistant-stubs/components/yalexs_ble/lock.pyi +2 -4
- homeassistant-stubs/components/yalexs_ble/sensor.pyi +2 -3
- homeassistant-stubs/components/zwave_js/api.pyi +2 -3
- homeassistant-stubs/components/zwave_js/diagnostics.pyi +1 -1
- homeassistant-stubs/components/zwave_js/discovery_data_template.pyi +6 -6
- homeassistant-stubs/components/zwave_js/services.pyi +6 -8
- homeassistant-stubs/config.pyi +2 -1
- homeassistant-stubs/config_entries.pyi +18 -11
- homeassistant-stubs/const.pyi +5 -1
- homeassistant-stubs/core.pyi +19 -19
- homeassistant-stubs/data_entry_flow.pyi +0 -1
- homeassistant-stubs/generated/bluetooth.pyi +3 -1
- homeassistant-stubs/generated/countries.pyi +2 -2
- homeassistant-stubs/generated/dhcp.pyi +3 -1
- homeassistant-stubs/helpers/aiohttp_client.pyi +3 -2
- homeassistant-stubs/helpers/area_registry.pyi +9 -3
- homeassistant-stubs/helpers/category_registry.pyi +3 -1
- homeassistant-stubs/helpers/collection.pyi +3 -6
- homeassistant-stubs/helpers/condition.pyi +5 -5
- homeassistant-stubs/helpers/config_entry_flow.pyi +2 -3
- homeassistant-stubs/helpers/config_entry_oauth2_flow.pyi +4 -2
- homeassistant-stubs/helpers/config_validation.pyi +5 -5
- homeassistant-stubs/helpers/debounce.pyi +1 -4
- homeassistant-stubs/helpers/deprecation.pyi +1 -5
- homeassistant-stubs/helpers/device_registry.pyi +6 -5
- homeassistant-stubs/helpers/discovery.pyi +1 -1
- homeassistant-stubs/helpers/discovery_flow.pyi +2 -1
- homeassistant-stubs/helpers/dispatcher.pyi +5 -5
- homeassistant-stubs/helpers/entity.pyi +6 -5
- homeassistant-stubs/helpers/entity_platform.pyi +11 -9
- homeassistant-stubs/helpers/entity_registry.pyi +6 -5
- homeassistant-stubs/helpers/entity_values.pyi +1 -2
- homeassistant-stubs/helpers/entityfilter.pyi +1 -1
- homeassistant-stubs/helpers/event.pyi +24 -22
- homeassistant-stubs/helpers/floor_registry.pyi +3 -1
- homeassistant-stubs/helpers/frame.pyi +4 -6
- homeassistant-stubs/helpers/httpx_client.pyi +5 -4
- homeassistant-stubs/helpers/icon.pyi +2 -2
- homeassistant-stubs/helpers/importlib.pyi +5 -3
- homeassistant-stubs/helpers/integration_platform.pyi +2 -1
- homeassistant-stubs/helpers/intent.pyi +114 -32
- homeassistant-stubs/helpers/issue_registry.pyi +13 -5
- homeassistant-stubs/helpers/label_registry.pyi +3 -1
- homeassistant-stubs/helpers/llm.pyi +87 -0
- homeassistant-stubs/helpers/normalized_name_base_registry.pyi +0 -2
- homeassistant-stubs/helpers/ratelimit.pyi +0 -2
- homeassistant-stubs/helpers/recorder.pyi +3 -2
- homeassistant-stubs/helpers/redact.pyi +1 -3
- homeassistant-stubs/helpers/registry.pyi +5 -6
- homeassistant-stubs/helpers/restore_state.pyi +3 -1
- homeassistant-stubs/helpers/script.pyi +19 -9
- homeassistant-stubs/helpers/selector.pyi +4 -5
- homeassistant-stubs/helpers/service.pyi +8 -8
- homeassistant-stubs/helpers/service_info/mqtt.pyi +1 -2
- homeassistant-stubs/helpers/signal.pyi +3 -0
- homeassistant-stubs/helpers/significant_change.pyi +7 -3
- homeassistant-stubs/helpers/singleton.pyi +5 -2
- homeassistant-stubs/helpers/storage.pyi +8 -7
- homeassistant-stubs/helpers/sun.pyi +2 -1
- homeassistant-stubs/helpers/system_info.pyi +3 -0
- homeassistant-stubs/helpers/template.pyi +7 -12
- homeassistant-stubs/helpers/trace.pyi +1 -4
- homeassistant-stubs/helpers/translation.pyi +9 -3
- homeassistant-stubs/helpers/trigger.pyi +5 -2
- homeassistant-stubs/helpers/update_coordinator.pyi +1 -2
- homeassistant-stubs/loader.pyi +12 -8
- homeassistant-stubs/requirements.pyi +1 -0
- homeassistant-stubs/scripts/benchmark/__init__.pyi +1 -3
- homeassistant-stubs/setup.pyi +12 -10
- homeassistant-stubs/util/__init__.pyi +1 -3
- homeassistant-stubs/util/async_.pyi +1 -3
- homeassistant-stubs/util/collection.pyi +6 -0
- homeassistant-stubs/util/decorator.pyi +1 -5
- homeassistant-stubs/util/dt.pyi +2 -0
- homeassistant-stubs/util/enum.pyi +4 -8
- homeassistant-stubs/util/hass_dict.pyi +65 -0
- homeassistant-stubs/util/limited_size_dict.pyi +1 -4
- homeassistant-stubs/util/logging.pyi +1 -4
- homeassistant-stubs/util/loop.pyi +4 -7
- homeassistant-stubs/util/percentage.pyi +0 -3
- homeassistant-stubs/util/read_only_dict.pyi +3 -3
- homeassistant-stubs/util/signal_type.pyi +5 -12
- homeassistant-stubs/util/variance.pyi +2 -5
- homeassistant-stubs/util/yaml/loader.pyi +6 -0
- {homeassistant_stubs-2024.5.4.dist-info → homeassistant_stubs-2024.6.0.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.5.4.dist-info → homeassistant_stubs-2024.6.0.dist-info}/RECORD +939 -863
- homeassistant-stubs/auth/session.pyi +0 -46
- homeassistant-stubs/components/aladdin_connect/model.pyi +0 -9
- homeassistant-stubs/components/ambiclimate/climate.pyi +0 -44
- homeassistant-stubs/components/ambiclimate/config_flow.pyi +0 -37
- homeassistant-stubs/components/ambiclimate/const.pyi +0 -9
- homeassistant-stubs/components/anova/util.pyi +0 -3
- homeassistant-stubs/components/brother/utils.pyi +0 -10
- homeassistant-stubs/components/cloud/util.pyi +0 -7
- homeassistant-stubs/components/fritzbox/common.pyi +0 -5
- homeassistant-stubs/components/http/session.pyi +0 -29
- homeassistant-stubs/components/knx/repairs.pyi +0 -7
- homeassistant-stubs/components/poolsense/binary_sensor.pyi +0 -15
- homeassistant-stubs/components/poolsense/const.pyi +0 -2
- homeassistant-stubs/components/poolsense/coordinator.pyi +0 -16
- homeassistant-stubs/components/poolsense/entity.pyi +0 -14
- homeassistant-stubs/components/poolsense/sensor.pyi +0 -16
- /homeassistant-stubs/components/mikrotik/{hub.pyi → coordinator.pyi} +0 -0
- /homeassistant-stubs/components/wemo/{wemo_device.pyi → coordinator.pyi} +0 -0
- /homeassistant-stubs/components/wled/{models.pyi → entity.pyi} +0 -0
- {homeassistant_stubs-2024.5.4.dist-info → homeassistant_stubs-2024.6.0.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2024.5.4.dist-info → homeassistant_stubs-2024.6.0.dist-info}/WHEEL +0 -0
@@ -6,24 +6,23 @@ from .group import expand_entity_ids as expand_entity_ids
|
|
6
6
|
from .selector import TargetSelector as TargetSelector
|
7
7
|
from .typing import ConfigType as ConfigType, TemplateVarsType as TemplateVarsType
|
8
8
|
from _typeshed import Incomplete
|
9
|
-
from collections.abc import Awaitable, Callable as Callable, Iterable
|
9
|
+
from collections.abc import Awaitable, Callable as Callable, Coroutine, Iterable
|
10
10
|
from homeassistant.auth.permissions.const import CAT_ENTITIES as CAT_ENTITIES, POLICY_CONTROL as POLICY_CONTROL
|
11
11
|
from homeassistant.const import ATTR_AREA_ID as ATTR_AREA_ID, ATTR_DEVICE_ID as ATTR_DEVICE_ID, ATTR_ENTITY_ID as ATTR_ENTITY_ID, ATTR_FLOOR_ID as ATTR_FLOOR_ID, ATTR_LABEL_ID as ATTR_LABEL_ID, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_SERVICE as CONF_SERVICE, CONF_SERVICE_DATA as CONF_SERVICE_DATA, CONF_SERVICE_DATA_TEMPLATE as CONF_SERVICE_DATA_TEMPLATE, CONF_SERVICE_TEMPLATE as CONF_SERVICE_TEMPLATE, CONF_TARGET as CONF_TARGET, ENTITY_MATCH_ALL as ENTITY_MATCH_ALL, ENTITY_MATCH_NONE as ENTITY_MATCH_NONE
|
12
12
|
from homeassistant.core import Context as Context, EntityServiceResponse as EntityServiceResponse, HassJob as HassJob, HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, ServiceResponse as ServiceResponse, SupportsResponse as SupportsResponse, callback as callback
|
13
13
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError, TemplateError as TemplateError, Unauthorized as Unauthorized, UnknownUser as UnknownUser
|
14
14
|
from homeassistant.loader import Integration as Integration, async_get_integrations as async_get_integrations, bind_hass as bind_hass
|
15
15
|
from homeassistant.util.async_ import create_eager_task as create_eager_task
|
16
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
16
17
|
from homeassistant.util.yaml import load_yaml_dict as load_yaml_dict
|
17
18
|
from homeassistant.util.yaml.loader import JSON_TYPE as JSON_TYPE
|
18
19
|
from types import ModuleType
|
19
|
-
from typing import Any, TypeGuard,
|
20
|
+
from typing import Any, TypeGuard, TypedDict
|
20
21
|
|
21
|
-
_EntityT = TypeVar('_EntityT', bound=Entity)
|
22
22
|
CONF_SERVICE_ENTITY_ID: str
|
23
23
|
_LOGGER: Incomplete
|
24
|
-
SERVICE_DESCRIPTION_CACHE: str
|
25
|
-
ALL_SERVICE_DESCRIPTIONS_CACHE: str
|
26
|
-
_T = TypeVar('_T')
|
24
|
+
SERVICE_DESCRIPTION_CACHE: HassKey[dict[tuple[str, str], dict[str, Any] | None]]
|
25
|
+
ALL_SERVICE_DESCRIPTIONS_CACHE: HassKey[tuple[set[tuple[str, str]], dict[str, dict[str, Any]]]]
|
27
26
|
|
28
27
|
def _base_components() -> dict[str, ModuleType]: ...
|
29
28
|
def _validate_option_or_feature(option_or_feature: str, label: str) -> Any: ...
|
@@ -75,10 +74,11 @@ def async_extract_referenced_entity_ids(hass: HomeAssistant, service_call: Servi
|
|
75
74
|
async def async_extract_config_entry_ids(hass: HomeAssistant, service_call: ServiceCall, expand_group: bool = True) -> set[str]: ...
|
76
75
|
def _load_services_file(hass: HomeAssistant, integration: Integration) -> JSON_TYPE: ...
|
77
76
|
def _load_services_files(hass: HomeAssistant, integrations: Iterable[Integration]) -> list[JSON_TYPE]: ...
|
77
|
+
def async_get_cached_service_description(hass: HomeAssistant, domain: str, service: str) -> dict[str, Any] | None: ...
|
78
78
|
async def async_get_all_descriptions(hass: HomeAssistant) -> dict[str, dict[str, Any]]: ...
|
79
79
|
def remove_entity_service_fields(call: ServiceCall) -> dict[Any, Any]: ...
|
80
80
|
def async_set_service_schema(hass: HomeAssistant, domain: str, service: str, schema: dict[str, Any]) -> None: ...
|
81
|
-
def _get_permissible_entity_candidates(call: ServiceCall, entities: dict[str, Entity], entity_perms:
|
81
|
+
def _get_permissible_entity_candidates(call: ServiceCall, entities: dict[str, Entity], entity_perms: Callable[[str, str], bool] | None, target_all_entities: bool, all_referenced: set[str] | None) -> list[Entity]: ...
|
82
82
|
async def entity_service_call(hass: HomeAssistant, registered_entities: dict[str, Entity], func: str | HassJob, call: ServiceCall, required_features: Iterable[int] | None = None) -> EntityServiceResponse | None: ...
|
83
83
|
async def _handle_entity_call(hass: HomeAssistant, entity: Entity, func: str | HassJob, data: dict | ServiceCall, context: Context) -> ServiceResponse: ...
|
84
84
|
async def _async_admin_handler(hass: HomeAssistant, service_job: HassJob[[ServiceCall], Awaitable[None] | None], call: ServiceCall) -> None: ...
|
@@ -91,5 +91,5 @@ class ReloadServiceHelper:
|
|
91
91
|
_service_condition: Incomplete
|
92
92
|
_pending_reload_targets: Incomplete
|
93
93
|
_reload_targets_func: Incomplete
|
94
|
-
def __init__(self, service_func: Callable[[ServiceCall],
|
94
|
+
def __init__(self, service_func: Callable[[ServiceCall], Coroutine[Any, Any, Any]], reload_targets_func: Callable[[ServiceCall], set[_T]]) -> None: ...
|
95
95
|
async def execute_service(self, service_call: ServiceCall) -> None: ...
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import datetime as dt
|
2
1
|
from _typeshed import Incomplete
|
3
2
|
from dataclasses import dataclass
|
4
3
|
from homeassistant.data_entry_flow import BaseServiceInfo as BaseServiceInfo
|
@@ -12,5 +11,5 @@ class MqttServiceInfo(BaseServiceInfo):
|
|
12
11
|
qos: int
|
13
12
|
retain: bool
|
14
13
|
subscribed_topic: str
|
15
|
-
timestamp:
|
14
|
+
timestamp: float
|
16
15
|
def __init__(self, topic, payload, qos, retain, subscribed_topic, timestamp) -> None: ...
|
@@ -1,8 +1,11 @@
|
|
1
|
+
import asyncio
|
1
2
|
from _typeshed import Incomplete
|
2
3
|
from homeassistant.const import RESTART_EXIT_CODE as RESTART_EXIT_CODE
|
3
4
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
4
5
|
from homeassistant.loader import bind_hass as bind_hass
|
6
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
5
7
|
|
6
8
|
_LOGGER: Incomplete
|
9
|
+
KEY_HA_STOP: HassKey[asyncio.Task[None]]
|
7
10
|
|
8
11
|
def async_register_signal_handling(hass: HomeAssistant) -> None: ...
|
@@ -1,15 +1,19 @@
|
|
1
1
|
from .integration_platform import async_process_integration_platforms as async_process_integration_platforms
|
2
2
|
from _typeshed import Incomplete
|
3
|
-
from collections.abc import Callable
|
3
|
+
from collections.abc import Callable, Mapping
|
4
4
|
from homeassistant.const import STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
5
5
|
from homeassistant.core import HomeAssistant as HomeAssistant, State as State, callback as callback
|
6
|
-
from
|
6
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
7
|
+
from typing import Any, Protocol
|
7
8
|
|
8
9
|
PLATFORM: str
|
9
|
-
DATA_FUNCTIONS: str
|
10
|
+
DATA_FUNCTIONS: HassKey[dict[str, CheckTypeFunc]]
|
10
11
|
CheckTypeFunc: Incomplete
|
11
12
|
ExtraCheckTypeFunc: Incomplete
|
12
13
|
|
14
|
+
class SignificantChangeProtocol(Protocol):
|
15
|
+
def async_check_significant_change(self, hass: HomeAssistant, old_state: str, old_attrs: Mapping[str, Any], new_state: str, new_attrs: Mapping[str, Any]) -> bool | None: ...
|
16
|
+
|
13
17
|
async def create_checker(hass: HomeAssistant, _domain: str, extra_significant_check: ExtraCheckTypeFunc | None = None) -> SignificantlyChangedChecker: ...
|
14
18
|
async def _initialize(hass: HomeAssistant) -> None: ...
|
15
19
|
def either_one_none(val1: Any | None, val2: Any | None) -> bool: ...
|
@@ -1,9 +1,12 @@
|
|
1
1
|
from collections.abc import Callable
|
2
2
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
3
3
|
from homeassistant.loader import bind_hass as bind_hass
|
4
|
-
from
|
4
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
5
|
+
from typing import overload
|
5
6
|
|
6
|
-
_T = TypeVar('_T')
|
7
7
|
_FuncType = Callable[[HomeAssistant], _T]
|
8
8
|
|
9
|
+
@overload
|
10
|
+
def singleton(data_key: HassKey[_T]) -> Callable[[_FuncType[_T]], _FuncType[_T]]: ...
|
11
|
+
@overload
|
9
12
|
def singleton(data_key: str) -> Callable[[_FuncType[_T]], _FuncType[_T]]: ...
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import asyncio
|
1
2
|
from _typeshed import Incomplete
|
2
|
-
from collections.abc import Callable as Callable, Iterable,
|
3
|
+
from collections.abc import Callable as Callable, Iterable, Sequence as Sequence
|
3
4
|
from functools import cached_property as cached_property
|
4
5
|
from homeassistant.const import EVENT_HOMEASSISTANT_FINAL_WRITE as EVENT_HOMEASSISTANT_FINAL_WRITE, EVENT_HOMEASSISTANT_STARTED as EVENT_HOMEASSISTANT_STARTED, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP
|
5
6
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, CoreState as CoreState, Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
@@ -7,16 +8,15 @@ from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
|
7
8
|
from homeassistant.loader import bind_hass as bind_hass
|
8
9
|
from homeassistant.util import json as json_util
|
9
10
|
from homeassistant.util.file import WriteError as WriteError
|
11
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
10
12
|
from json import JSONEncoder
|
11
|
-
from typing import Any, Generic, TypeVar
|
12
13
|
|
13
14
|
MAX_LOAD_CONCURRENTLY: int
|
14
15
|
STORAGE_DIR: str
|
15
16
|
_LOGGER: Incomplete
|
16
|
-
STORAGE_SEMAPHORE:
|
17
|
-
STORAGE_MANAGER:
|
17
|
+
STORAGE_SEMAPHORE: HassKey[asyncio.Semaphore]
|
18
|
+
STORAGE_MANAGER: HassKey[_StoreManager]
|
18
19
|
MANAGER_CLEANUP_DELAY: int
|
19
|
-
_T = TypeVar('_T', bound=Mapping[str, Any] | Sequence[Any])
|
20
20
|
|
21
21
|
async def async_migrator(hass: HomeAssistant, old_path: str, store: Store[_T], *, old_conf_load_func: Callable | None = None, old_conf_migrate_func: Callable | None = None) -> _T | None: ...
|
22
22
|
def get_internal_store_manager(hass: HomeAssistant) -> _StoreManager: ...
|
@@ -39,7 +39,7 @@ class _StoreManager:
|
|
39
39
|
def _preload(self, keys: Iterable[str]) -> None: ...
|
40
40
|
def _initialize_files(self) -> None: ...
|
41
41
|
|
42
|
-
class Store
|
42
|
+
class Store:
|
43
43
|
version: Incomplete
|
44
44
|
minor_version: Incomplete
|
45
45
|
key: Incomplete
|
@@ -49,7 +49,7 @@ class Store(Generic[_T]):
|
|
49
49
|
_delay_handle: Incomplete
|
50
50
|
_unsub_final_write_listener: Incomplete
|
51
51
|
_write_lock: Incomplete
|
52
|
-
|
52
|
+
_load_future: Incomplete
|
53
53
|
_encoder: Incomplete
|
54
54
|
_atomic_writes: Incomplete
|
55
55
|
_read_only: Incomplete
|
@@ -58,6 +58,7 @@ class Store(Generic[_T]):
|
|
58
58
|
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: ...
|
59
59
|
@cached_property
|
60
60
|
def path(self): ...
|
61
|
+
def make_read_only(self) -> None: ...
|
61
62
|
async def async_load(self) -> _T | None: ...
|
62
63
|
async def _async_load(self) -> _T | None: ...
|
63
64
|
async def _async_load_data(self): ...
|
@@ -6,8 +6,9 @@ from collections.abc import Callable
|
|
6
6
|
from homeassistant.const import SUN_EVENT_SUNRISE as SUN_EVENT_SUNRISE, SUN_EVENT_SUNSET as SUN_EVENT_SUNSET
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
8
|
from homeassistant.loader import bind_hass as bind_hass
|
9
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
9
10
|
|
10
|
-
DATA_LOCATION_CACHE: str
|
11
|
+
DATA_LOCATION_CACHE: HassKey[dict[tuple[str, str, str, float, float], astral.location.Location]]
|
11
12
|
ELEVATION_AGNOSTIC_EVENTS: Incomplete
|
12
13
|
_AstralSunEventCallable = Callable[..., datetime.datetime]
|
13
14
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
from .importlib import async_import_module as async_import_module
|
2
|
+
from .singleton import singleton as singleton
|
2
3
|
from _typeshed import Incomplete
|
3
4
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
4
5
|
from homeassistant.loader import bind_hass as bind_hass
|
@@ -6,8 +7,10 @@ from homeassistant.util.package import is_docker_env as is_docker_env, is_virtua
|
|
6
7
|
from typing import Any
|
7
8
|
|
8
9
|
_LOGGER: Incomplete
|
10
|
+
_DATA_MAC_VER: str
|
9
11
|
|
10
12
|
def is_official_image() -> bool: ...
|
13
|
+
async def async_get_mac_ver(hass: HomeAssistant) -> str: ...
|
11
14
|
|
12
15
|
cached_get_user: Incomplete
|
13
16
|
|
@@ -14,30 +14,25 @@ from homeassistant.exceptions import TemplateError as TemplateError
|
|
14
14
|
from homeassistant.loader import bind_hass as bind_hass
|
15
15
|
from homeassistant.util import convert as convert
|
16
16
|
from homeassistant.util.async_ import run_callback_threadsafe as run_callback_threadsafe
|
17
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
17
18
|
from homeassistant.util.json import JSON_DECODE_EXCEPTIONS as JSON_DECODE_EXCEPTIONS, json_loads as json_loads
|
18
19
|
from homeassistant.util.read_only_dict import ReadOnlyDict as ReadOnlyDict
|
19
20
|
from homeassistant.util.thread import ThreadWithException as ThreadWithException
|
20
21
|
from jinja2.sandbox import ImmutableSandboxedEnvironment
|
21
22
|
from lru import LRU
|
22
23
|
from types import CodeType, TracebackType
|
23
|
-
from typing import Any, Literal, NoReturn,
|
24
|
+
from typing import Any, Literal, NoReturn, Self, overload
|
24
25
|
|
25
26
|
_LOGGER: Incomplete
|
26
27
|
_SENTINEL: Incomplete
|
27
28
|
DATE_STR_FORMAT: str
|
28
|
-
_ENVIRONMENT:
|
29
|
-
_ENVIRONMENT_LIMITED:
|
30
|
-
_ENVIRONMENT_STRICT:
|
29
|
+
_ENVIRONMENT: HassKey[TemplateEnvironment]
|
30
|
+
_ENVIRONMENT_LIMITED: HassKey[TemplateEnvironment]
|
31
|
+
_ENVIRONMENT_STRICT: HassKey[TemplateEnvironment]
|
31
32
|
_HASS_LOADER: str
|
32
|
-
_RE_JINJA_DELIMITERS: Incomplete
|
33
33
|
_IS_NUMERIC: Incomplete
|
34
34
|
_RESERVED_NAMES: Incomplete
|
35
|
-
_GROUP_DOMAIN_PREFIX: str
|
36
|
-
_ZONE_DOMAIN_PREFIX: str
|
37
35
|
_COLLECTABLE_STATE_ATTRIBUTES: Incomplete
|
38
|
-
_T = TypeVar('_T')
|
39
|
-
_R = TypeVar('_R')
|
40
|
-
_P = ParamSpec('_P')
|
41
36
|
ALL_STATES_RATE_LIMIT: int
|
42
37
|
DOMAIN_STATES_RATE_LIMIT: int
|
43
38
|
_render_info: ContextVar[RenderInfo | None]
|
@@ -75,8 +70,7 @@ RESULT_WRAPPERS: dict[type, type]
|
|
75
70
|
|
76
71
|
def _true(arg: str) -> bool: ...
|
77
72
|
def _false(arg: str) -> bool: ...
|
78
|
-
|
79
|
-
_cached_literal_eval: Incomplete
|
73
|
+
def _cached_parse_result(render_result: str) -> Any: ...
|
80
74
|
|
81
75
|
class RenderInfo:
|
82
76
|
__slots__: Incomplete
|
@@ -270,6 +264,7 @@ def utcnow(hass: HomeAssistant) -> datetime: ...
|
|
270
264
|
def raise_no_default(function: str, value: Any) -> NoReturn: ...
|
271
265
|
def forgiving_round(value, precision: int = 0, method: str = 'common', default=...): ...
|
272
266
|
def multiply(value, amount, default=...): ...
|
267
|
+
def add(value, amount, default=...): ...
|
273
268
|
def logarithm(value, base=..., default=...): ...
|
274
269
|
def sine(value, default=...): ...
|
275
270
|
def cosine(value, default=...): ...
|
@@ -4,10 +4,7 @@ from collections import deque
|
|
4
4
|
from collections.abc import Callable as Callable, Coroutine, Generator
|
5
5
|
from contextvars import ContextVar
|
6
6
|
from homeassistant.core import ServiceResponse as ServiceResponse
|
7
|
-
from typing import Any
|
8
|
-
|
9
|
-
_T = TypeVar('_T')
|
10
|
-
_Ts = TypeVarTuple('_Ts')
|
7
|
+
from typing import Any
|
11
8
|
|
12
9
|
class TraceElement:
|
13
10
|
__slots__: Incomplete
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import pathlib
|
2
|
+
from . import singleton as singleton
|
2
3
|
from _typeshed import Incomplete
|
3
4
|
from collections.abc import Iterable
|
5
|
+
from dataclasses import dataclass
|
4
6
|
from homeassistant.const import EVENT_CORE_CONFIG_UPDATE as EVENT_CORE_CONFIG_UPDATE, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
5
7
|
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, async_get_hass as async_get_hass, callback as callback
|
6
8
|
from homeassistant.loader import Integration as Integration, async_get_config_flows as async_get_config_flows, async_get_integrations as async_get_integrations, bind_hass as bind_hass
|
@@ -12,16 +14,20 @@ TRANSLATION_FLATTEN_CACHE: str
|
|
12
14
|
LOCALE_EN: str
|
13
15
|
|
14
16
|
def recursive_flatten(prefix: str, data: dict[str, dict[str, Any] | str]) -> dict[str, str]: ...
|
15
|
-
def component_translation_path(language: str, integration: Integration) -> pathlib.Path: ...
|
16
17
|
def _load_translations_files_by_language(translation_files: dict[str, dict[str, pathlib.Path]]) -> dict[str, dict[str, Any]]: ...
|
17
18
|
def build_resources(translation_strings: dict[str, dict[str, dict[str, Any] | str]], components: set[str], category: str) -> dict[str, dict[str, Any] | str]: ...
|
18
19
|
async def _async_get_component_strings(hass: HomeAssistant, languages: Iterable[str], components: set[str], integrations: dict[str, Integration]) -> dict[str, dict[str, Any]]: ...
|
19
20
|
|
21
|
+
@dataclass(slots=True)
|
22
|
+
class _TranslationsCacheData:
|
23
|
+
loaded: dict[str, set[str]]
|
24
|
+
cache: dict[str, dict[str, dict[str, dict[str, str]]]]
|
25
|
+
def __init__(self, loaded, cache) -> None: ...
|
26
|
+
|
20
27
|
class _TranslationCache:
|
21
28
|
__slots__: Incomplete
|
22
29
|
hass: Incomplete
|
23
|
-
|
24
|
-
cache: Incomplete
|
30
|
+
cache_data: Incomplete
|
25
31
|
lock: Incomplete
|
26
32
|
def __init__(self, hass: HomeAssistant) -> None: ...
|
27
33
|
def async_is_loaded(self, language: str, components: set[str]) -> bool: ...
|
@@ -1,17 +1,20 @@
|
|
1
1
|
import voluptuous as vol
|
2
|
+
from .template import Template as Template
|
2
3
|
from .typing import ConfigType as ConfigType, TemplateVarsType as TemplateVarsType
|
3
4
|
from _typeshed import Incomplete
|
5
|
+
from collections import defaultdict
|
4
6
|
from collections.abc import Callable, Coroutine
|
5
7
|
from dataclasses import dataclass
|
6
8
|
from homeassistant.const import CONF_ALIAS as CONF_ALIAS, CONF_ENABLED as CONF_ENABLED, CONF_ID as CONF_ID, CONF_PLATFORM as CONF_PLATFORM, CONF_VARIABLES as CONF_VARIABLES
|
7
9
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Context as Context, HassJob as HassJob, HomeAssistant as HomeAssistant, callback as callback, is_callback as is_callback
|
8
|
-
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
10
|
+
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError, TemplateError as TemplateError
|
9
11
|
from homeassistant.loader import IntegrationNotFound as IntegrationNotFound, async_get_integration as async_get_integration
|
10
12
|
from homeassistant.util.async_ import create_eager_task as create_eager_task
|
13
|
+
from homeassistant.util.hass_dict import HassKey as HassKey
|
11
14
|
from typing import Any, Protocol, TypedDict
|
12
15
|
|
13
16
|
_PLATFORM_ALIASES: Incomplete
|
14
|
-
DATA_PLUGGABLE_ACTIONS:
|
17
|
+
DATA_PLUGGABLE_ACTIONS: HassKey[defaultdict[tuple, PluggableActionsEntry]]
|
15
18
|
|
16
19
|
class TriggerProtocol(Protocol):
|
17
20
|
TRIGGER_SCHEMA: vol.Schema
|
@@ -17,7 +17,6 @@ from typing_extensions import TypeVar
|
|
17
17
|
REQUEST_REFRESH_DEFAULT_COOLDOWN: int
|
18
18
|
REQUEST_REFRESH_DEFAULT_IMMEDIATE: bool
|
19
19
|
_DataT = TypeVar('_DataT', default=dict[str, Any])
|
20
|
-
_BaseDataUpdateCoordinatorT = TypeVar('_BaseDataUpdateCoordinatorT', bound='BaseDataUpdateCoordinatorProtocol')
|
21
20
|
_DataUpdateCoordinatorT = TypeVar('_DataUpdateCoordinatorT', bound='DataUpdateCoordinator[Any]', default='DataUpdateCoordinator[dict[str, Any]]')
|
22
21
|
|
23
22
|
class UpdateFailed(Exception): ...
|
@@ -73,7 +72,7 @@ class TimestampDataUpdateCoordinator(DataUpdateCoordinator[_DataT]):
|
|
73
72
|
last_update_success_time: datetime | None
|
74
73
|
def _async_refresh_finished(self) -> None: ...
|
75
74
|
|
76
|
-
class BaseCoordinatorEntity(entity.Entity,
|
75
|
+
class BaseCoordinatorEntity(entity.Entity, metaclass=abc.ABCMeta):
|
77
76
|
coordinator: Incomplete
|
78
77
|
coordinator_context: Incomplete
|
79
78
|
def __init__(self, coordinator: _BaseDataUpdateCoordinatorT, context: Any = None) -> None: ...
|
homeassistant-stubs/loader.pyi
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import asyncio
|
1
2
|
import pathlib
|
2
3
|
import voluptuous as vol
|
3
4
|
from . import generated as generated
|
@@ -13,17 +14,18 @@ from .generated.ssdp import SSDP as SSDP
|
|
13
14
|
from .generated.usb import USB as USB
|
14
15
|
from .generated.zeroconf import HOMEKIT as HOMEKIT, ZEROCONF as ZEROCONF
|
15
16
|
from .helpers import device_registry as dr
|
17
|
+
from .helpers.json import json_bytes as json_bytes, json_fragment as json_fragment
|
16
18
|
from .helpers.typing import ConfigType as ConfigType
|
19
|
+
from .util.hass_dict import HassKey as HassKey
|
17
20
|
from .util.json import JSON_DECODE_EXCEPTIONS as JSON_DECODE_EXCEPTIONS, json_loads as json_loads
|
18
21
|
from _typeshed import Incomplete
|
19
22
|
from awesomeversion import AwesomeVersion
|
20
|
-
from collections.abc import Callable, Iterable
|
23
|
+
from collections.abc import Callable as Callable, Iterable
|
21
24
|
from dataclasses import dataclass
|
22
25
|
from functools import cached_property as cached_property
|
23
26
|
from types import ModuleType
|
24
|
-
from typing import Any, Literal, Protocol,
|
27
|
+
from typing import Any, Literal, Protocol, TypedDict
|
25
28
|
|
26
|
-
_CallableT = TypeVar('_CallableT', bound=Callable[..., Any])
|
27
29
|
_LOGGER: Incomplete
|
28
30
|
BASE_PRELOAD_PLATFORMS: Incomplete
|
29
31
|
|
@@ -34,11 +36,11 @@ class BlockedIntegration:
|
|
34
36
|
def __init__(self, lowest_good_version, reason) -> None: ...
|
35
37
|
|
36
38
|
BLOCKED_CUSTOM_INTEGRATIONS: dict[str, BlockedIntegration]
|
37
|
-
DATA_COMPONENTS: str
|
38
|
-
DATA_INTEGRATIONS: str
|
39
|
-
DATA_MISSING_PLATFORMS: str
|
40
|
-
DATA_CUSTOM_COMPONENTS: str
|
41
|
-
DATA_PRELOAD_PLATFORMS: str
|
39
|
+
DATA_COMPONENTS: HassKey[dict[str, ModuleType | ComponentProtocol]]
|
40
|
+
DATA_INTEGRATIONS: HassKey[dict[str, Integration | asyncio.Future[None]]]
|
41
|
+
DATA_MISSING_PLATFORMS: HassKey[dict[str, bool]]
|
42
|
+
DATA_CUSTOM_COMPONENTS: HassKey[dict[str, Integration] | asyncio.Future[dict[str, Integration]]]
|
43
|
+
DATA_PRELOAD_PLATFORMS: HassKey[list[str]]
|
42
44
|
PACKAGE_CUSTOM_COMPONENTS: str
|
43
45
|
PACKAGE_BUILTIN: str
|
44
46
|
CUSTOM_WARNING: str
|
@@ -167,6 +169,8 @@ class Integration:
|
|
167
169
|
_top_level_files: Incomplete
|
168
170
|
def __init__(self, hass: HomeAssistant, pkg_path: str, file_path: pathlib.Path, manifest: Manifest, top_level_files: set[str] | None = None) -> None: ...
|
169
171
|
@cached_property
|
172
|
+
def manifest_json_fragment(self) -> json_fragment: ...
|
173
|
+
@cached_property
|
170
174
|
def name(self) -> str: ...
|
171
175
|
@cached_property
|
172
176
|
def disabled(self) -> str | None: ...
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import asyncio
|
2
2
|
from .core import HomeAssistant as HomeAssistant, callback as callback
|
3
3
|
from .exceptions import HomeAssistantError as HomeAssistantError
|
4
|
+
from .helpers import singleton as singleton
|
4
5
|
from .helpers.typing import UNDEFINED as UNDEFINED, UndefinedType as UndefinedType
|
5
6
|
from .loader import Integration as Integration, IntegrationNotFound as IntegrationNotFound, async_get_integration as async_get_integration
|
6
7
|
from _typeshed import Incomplete
|
@@ -1,12 +1,10 @@
|
|
1
|
-
from collections.abc import Callable
|
1
|
+
from collections.abc import Callable as Callable
|
2
2
|
from homeassistant import core as core
|
3
3
|
from homeassistant.const import EVENT_STATE_CHANGED as EVENT_STATE_CHANGED
|
4
4
|
from homeassistant.helpers.entityfilter import convert_include_exclude_filter as convert_include_exclude_filter
|
5
5
|
from homeassistant.helpers.event import async_track_state_change as async_track_state_change, async_track_state_change_event as async_track_state_change_event
|
6
6
|
from homeassistant.helpers.json import JSONEncoder as JSONEncoder, JSON_DUMP as JSON_DUMP
|
7
|
-
from typing import TypeVar
|
8
7
|
|
9
|
-
_CallableT = TypeVar('_CallableT', bound=Callable)
|
10
8
|
BENCHMARKS: dict[str, Callable]
|
11
9
|
|
12
10
|
def run(args) -> None: ...
|
homeassistant-stubs/setup.pyi
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
+
import asyncio
|
1
2
|
import contextvars
|
2
3
|
from . import core as core, loader as loader, requirements as requirements
|
3
|
-
from .const import EVENT_COMPONENT_LOADED as EVENT_COMPONENT_LOADED, EVENT_HOMEASSISTANT_START as EVENT_HOMEASSISTANT_START, PLATFORM_FORMAT as PLATFORM_FORMAT
|
4
|
+
from .const import BASE_PLATFORMS as BASE_PLATFORMS, EVENT_COMPONENT_LOADED as EVENT_COMPONENT_LOADED, EVENT_HOMEASSISTANT_START as EVENT_HOMEASSISTANT_START, PLATFORM_FORMAT as PLATFORM_FORMAT
|
4
5
|
from .core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
5
6
|
from .exceptions import DependencyError as DependencyError, HomeAssistantError as HomeAssistantError
|
6
|
-
from .helpers import translation as translation
|
7
|
+
from .helpers import singleton as singleton, translation as translation
|
7
8
|
from .helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue
|
8
9
|
from .helpers.typing import ConfigType as ConfigType
|
9
10
|
from .util.async_ import create_eager_task as create_eager_task
|
11
|
+
from .util.hass_dict import HassKey as HassKey
|
10
12
|
from _typeshed import Incomplete
|
11
13
|
from collections import defaultdict
|
12
|
-
from collections.abc import Awaitable, Callable as Callable, Generator
|
14
|
+
from collections.abc import Awaitable, Callable as Callable, Generator, Mapping
|
13
15
|
from enum import StrEnum
|
14
16
|
from types import ModuleType
|
15
17
|
from typing import Final, TypedDict
|
@@ -17,13 +19,12 @@ from typing import Final, TypedDict
|
|
17
19
|
current_setup_group: contextvars.ContextVar[tuple[str, str | None] | None]
|
18
20
|
_LOGGER: Incomplete
|
19
21
|
ATTR_COMPONENT: Final[str]
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
DATA_PERSISTENT_ERRORS: str
|
22
|
+
DATA_SETUP: HassKey[dict[str, asyncio.Future[bool]]]
|
23
|
+
DATA_SETUP_DONE: HassKey[dict[str, asyncio.Future[bool]]]
|
24
|
+
DATA_SETUP_STARTED: HassKey[dict[tuple[str, str | None], float]]
|
25
|
+
DATA_SETUP_TIME: HassKey[defaultdict[str, defaultdict[str | None, defaultdict[SetupPhases, float]]]]
|
26
|
+
DATA_DEPS_REQS: HassKey[set[str]]
|
27
|
+
DATA_PERSISTENT_ERRORS: HassKey[dict[str, str | None]]
|
27
28
|
NOTIFY_FOR_TRANSLATION_KEYS: Incomplete
|
28
29
|
SLOW_SETUP_WARNING: int
|
29
30
|
SLOW_SETUP_MAX_WAIT: int
|
@@ -59,3 +60,4 @@ def async_pause_setup(hass: core.HomeAssistant, phase: SetupPhases) -> Generator
|
|
59
60
|
def _setup_times(hass: core.HomeAssistant) -> defaultdict[str, defaultdict[str | None, defaultdict[SetupPhases, float]]]: ...
|
60
61
|
def async_start_setup(hass: core.HomeAssistant, integration: str, phase: SetupPhases, group: str | None = None) -> Generator[None, None, None]: ...
|
61
62
|
def async_get_setup_timings(hass: core.HomeAssistant) -> dict[str, float]: ...
|
63
|
+
def async_get_domain_setup_times(hass: core.HomeAssistant, domain: str) -> Mapping[str | None, dict[SetupPhases, float]]: ...
|
@@ -2,10 +2,8 @@ from .dt import as_local as as_local, utcnow as utcnow
|
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from collections.abc import Callable as Callable, Iterable, KeysView
|
4
4
|
from datetime import timedelta
|
5
|
-
from typing import Any
|
5
|
+
from typing import Any
|
6
6
|
|
7
|
-
_T = TypeVar('_T')
|
8
|
-
_U = TypeVar('_U')
|
9
7
|
RE_SANITIZE_FILENAME: Incomplete
|
10
8
|
RE_SANITIZE_PATH: Incomplete
|
11
9
|
|
@@ -2,12 +2,10 @@ import concurrent.futures
|
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from asyncio import AbstractEventLoop, Future, Task
|
4
4
|
from collections.abc import Callable as Callable, Coroutine
|
5
|
-
from typing import Any
|
5
|
+
from typing import Any
|
6
6
|
|
7
7
|
_LOGGER: Incomplete
|
8
8
|
_SHUTDOWN_RUN_CALLBACK_THREADSAFE: str
|
9
|
-
_T = TypeVar('_T')
|
10
|
-
_Ts = TypeVarTuple('_Ts')
|
11
9
|
|
12
10
|
def create_eager_task(coro: Coroutine[Any, Any, _T], *, name: str | None = None, loop: AbstractEventLoop | None = None) -> Task[_T]: ...
|
13
11
|
def cancelling(task: Future[Any]) -> bool: ...
|
@@ -0,0 +1,6 @@
|
|
1
|
+
from collections.abc import Collection, Iterable
|
2
|
+
from typing import Any
|
3
|
+
|
4
|
+
def take(take_num: int, iterable: Iterable) -> list[Any]: ...
|
5
|
+
def chunked(iterable: Iterable, chunked_num: int) -> Iterable[Any]: ...
|
6
|
+
def chunked_or_all(iterable: Collection[Any], chunked_num: int) -> Iterable[Any]: ...
|
@@ -1,8 +1,4 @@
|
|
1
|
-
from collections.abc import Callable, Hashable
|
2
|
-
from typing import Any, TypeVar
|
3
|
-
|
4
|
-
_KT = TypeVar('_KT', bound=Hashable)
|
5
|
-
_VT = TypeVar('_VT', bound=Callable[..., Any])
|
1
|
+
from collections.abc import Callable as Callable, Hashable as Hashable
|
6
2
|
|
7
3
|
class Registry(dict[_KT, _VT]):
|
8
4
|
def register(self, name: _KT) -> Callable[[_VT], _VT]: ...
|
homeassistant-stubs/util/dt.pyi
CHANGED
@@ -11,8 +11,10 @@ STANDARD_DURATION_RE: Incomplete
|
|
11
11
|
ISO8601_DURATION_RE: Incomplete
|
12
12
|
POSTGRES_INTERVAL_RE: Incomplete
|
13
13
|
|
14
|
+
def get_default_time_zone() -> dt.tzinfo: ...
|
14
15
|
def set_default_time_zone(time_zone: dt.tzinfo) -> None: ...
|
15
16
|
def get_time_zone(time_zone_str: str) -> dt.tzinfo | None: ...
|
17
|
+
async def async_get_time_zone(time_zone_str: str) -> dt.tzinfo | None: ...
|
16
18
|
|
17
19
|
utcnow: Incomplete
|
18
20
|
|
@@ -1,10 +1,6 @@
|
|
1
|
-
from collections.abc import Callable
|
2
|
-
from enum import Enum
|
3
|
-
from typing import Any
|
4
|
-
|
5
|
-
_LruCacheT = TypeVar('_LruCacheT', bound=Callable)
|
6
|
-
|
7
|
-
def lru_cache(func: _LruCacheT) -> _LruCacheT: ...
|
8
|
-
_EnumT = TypeVar('_EnumT', bound=Enum)
|
1
|
+
from collections.abc import Callable as Callable
|
2
|
+
from enum import Enum as Enum
|
3
|
+
from typing import Any
|
9
4
|
|
5
|
+
def lru_cache(func: _T) -> _T: ...
|
10
6
|
def try_parse_enum(cls, value: Any) -> _EnumT | None: ...
|
@@ -0,0 +1,65 @@
|
|
1
|
+
from typing import Any, Generic, TypeVar, overload
|
2
|
+
|
3
|
+
__all__ = ['HassDict', 'HassEntryKey', 'HassKey']
|
4
|
+
|
5
|
+
_T = TypeVar('_T')
|
6
|
+
|
7
|
+
class _Key(Generic[_T]):
|
8
|
+
def __init__(self, value: str) -> None: ...
|
9
|
+
def __len__(self) -> int: ...
|
10
|
+
def __hash__(self) -> int: ...
|
11
|
+
def __eq__(self, other: object) -> bool: ...
|
12
|
+
def __getitem__(self, index: int) -> str: ...
|
13
|
+
|
14
|
+
class HassEntryKey(_Key[_T]): ...
|
15
|
+
class HassKey(_Key[_T]): ...
|
16
|
+
|
17
|
+
class HassDict(dict[_Key[Any] | str, Any]):
|
18
|
+
@overload
|
19
|
+
def __getitem__(self, key: HassEntryKey[_S]) -> dict[str, _S]: ...
|
20
|
+
@overload
|
21
|
+
def __getitem__(self, key: HassKey[_S]) -> _S: ...
|
22
|
+
@overload
|
23
|
+
def __getitem__(self, key: str) -> Any: ...
|
24
|
+
@overload
|
25
|
+
def __setitem__(self, key: HassEntryKey[_S], value: dict[str, _S]) -> None: ...
|
26
|
+
@overload
|
27
|
+
def __setitem__(self, key: HassKey[_S], value: _S) -> None: ...
|
28
|
+
@overload
|
29
|
+
def __setitem__(self, key: str, value: Any) -> None: ...
|
30
|
+
@overload
|
31
|
+
def setdefault(self, key: HassEntryKey[_S], default: dict[str, _S]) -> dict[str, _S]: ...
|
32
|
+
@overload
|
33
|
+
def setdefault(self, key: HassKey[_S], default: _S) -> _S: ...
|
34
|
+
@overload
|
35
|
+
def setdefault(self, key: str, default: None = None) -> Any | None: ...
|
36
|
+
@overload
|
37
|
+
def setdefault(self, key: str, default: Any) -> Any: ...
|
38
|
+
@overload
|
39
|
+
def get(self, key: HassEntryKey[_S]) -> dict[str, _S] | None: ...
|
40
|
+
@overload
|
41
|
+
def get(self, key: HassEntryKey[_S], default: _U) -> dict[str, _S] | _U: ...
|
42
|
+
@overload
|
43
|
+
def get(self, key: HassKey[_S]) -> _S | None: ...
|
44
|
+
@overload
|
45
|
+
def get(self, key: HassKey[_S], default: _U) -> _S | _U: ...
|
46
|
+
@overload
|
47
|
+
def get(self, key: str) -> Any | None: ...
|
48
|
+
@overload
|
49
|
+
def get(self, key: str, default: Any) -> Any: ...
|
50
|
+
@overload
|
51
|
+
def pop(self, key: HassEntryKey[_S]) -> dict[str, _S]: ...
|
52
|
+
@overload
|
53
|
+
def pop(self, key: HassEntryKey[_S], default: dict[str, _S]) -> dict[str, _S]: ...
|
54
|
+
@overload
|
55
|
+
def pop(self, key: HassEntryKey[_S], default: _U) -> dict[str, _S] | _U: ...
|
56
|
+
@overload
|
57
|
+
def pop(self, key: HassKey[_S]) -> _S: ...
|
58
|
+
@overload
|
59
|
+
def pop(self, key: HassKey[_S], default: _S) -> _S: ...
|
60
|
+
@overload
|
61
|
+
def pop(self, key: HassKey[_S], default: _U) -> _S | _U: ...
|
62
|
+
@overload
|
63
|
+
def pop(self, key: str) -> Any: ...
|
64
|
+
@overload
|
65
|
+
def pop(self, key: str, default: _U) -> Any | _U: ...
|
@@ -2,10 +2,7 @@ import logging
|
|
2
2
|
import logging.handlers
|
3
3
|
from collections.abc import Callable, Coroutine
|
4
4
|
from homeassistant.core import HassJobType as HassJobType, HomeAssistant as HomeAssistant, callback as callback, get_hassjob_callable_job_type as get_hassjob_callable_job_type
|
5
|
-
from typing import Any,
|
6
|
-
|
7
|
-
_T = TypeVar('_T')
|
8
|
-
_Ts = TypeVarTuple('_Ts')
|
5
|
+
from typing import Any, overload
|
9
6
|
|
10
7
|
class HomeAssistantQueueHandler(logging.handlers.QueueHandler):
|
11
8
|
listener: logging.handlers.QueueListener | None
|