homeassistant-stubs 2024.5.5__py3-none-any.whl → 2024.6.0b0__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 +14 -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 +36 -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/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/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 +6 -13
- homeassistant-stubs/components/brother/const.pyi +2 -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/brother/utils.pyi +1 -1
- 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/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/fronius/diagnostics.pyi +9 -0
- 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 +10 -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/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 +11 -4
- homeassistant-stubs/components/hydrawise/coordinator.pyi +8 -5
- homeassistant-stubs/components/hydrawise/entity.pyi +8 -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/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 +6 -9
- 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/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 +25 -19
- homeassistant-stubs/components/mqtt/climate.pyi +8 -7
- homeassistant-stubs/components/mqtt/config_flow.pyi +0 -1
- homeassistant-stubs/components/mqtt/const.pyi +15 -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 +19 -10
- 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 +37 -41
- homeassistant-stubs/components/mqtt/models.pyi +16 -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 +20 -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 +4 -4
- 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/recorder/websocket_api.pyi +4 -1
- 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 +5 -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 +44 -4
- 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 +5 -4
- 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 +2 -4
- 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 +84 -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 +7 -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.5.dist-info → homeassistant_stubs-2024.6.0b0.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.5.5.dist-info → homeassistant_stubs-2024.6.0b0.dist-info}/RECORD +926 -851
- homeassistant-stubs/auth/session.pyi +0 -46
- 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/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.5.dist-info → homeassistant_stubs-2024.6.0b0.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2024.5.5.dist-info → homeassistant_stubs-2024.6.0b0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
import abc
|
2
|
+
from .const import DOMAIN as DOMAIN
|
3
|
+
from _typeshed import Incomplete
|
4
|
+
from abc import ABC, abstractmethod
|
5
|
+
from datetime import timedelta
|
6
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
|
+
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator, UpdateFailed as UpdateFailed
|
9
|
+
from pyprusalink import JobInfo, LegacyPrinterStatus, PrinterStatus, PrusaLink as PrusaLink
|
10
|
+
from typing import TypeVar
|
11
|
+
|
12
|
+
_LOGGER: Incomplete
|
13
|
+
T = TypeVar('T', PrinterStatus, LegacyPrinterStatus, JobInfo)
|
14
|
+
|
15
|
+
class PrusaLinkUpdateCoordinator(DataUpdateCoordinator[T], ABC, metaclass=abc.ABCMeta):
|
16
|
+
config_entry: ConfigEntry
|
17
|
+
expect_change_until: float
|
18
|
+
api: Incomplete
|
19
|
+
def __init__(self, hass: HomeAssistant, api: PrusaLink) -> None: ...
|
20
|
+
update_interval: Incomplete
|
21
|
+
async def _async_update_data(self) -> T: ...
|
22
|
+
@abstractmethod
|
23
|
+
async def _fetch_data(self) -> T: ...
|
24
|
+
def expect_change(self) -> None: ...
|
25
|
+
def _get_update_interval(self, data: T) -> timedelta: ...
|
26
|
+
|
27
|
+
class StatusCoordinator(PrusaLinkUpdateCoordinator[PrinterStatus]):
|
28
|
+
async def _fetch_data(self) -> PrinterStatus: ...
|
29
|
+
|
30
|
+
class LegacyStatusCoordinator(PrusaLinkUpdateCoordinator[LegacyPrinterStatus]):
|
31
|
+
async def _fetch_data(self) -> LegacyPrinterStatus: ...
|
32
|
+
|
33
|
+
class JobUpdateCoordinator(PrusaLinkUpdateCoordinator[JobInfo]):
|
34
|
+
async def _fetch_data(self) -> JobInfo: ...
|
@@ -1,4 +1,6 @@
|
|
1
|
-
from . import
|
1
|
+
from . import PrusaLinkEntity as PrusaLinkEntity
|
2
|
+
from .const import DOMAIN as DOMAIN
|
3
|
+
from .coordinator import PrusaLinkUpdateCoordinator as PrusaLinkUpdateCoordinator
|
2
4
|
from _typeshed import Incomplete
|
3
5
|
from collections.abc import Callable as Callable
|
4
6
|
from dataclasses import dataclass
|
@@ -1,25 +1,12 @@
|
|
1
|
-
from .const import DOMAIN as DOMAIN
|
1
|
+
from .const import DOMAIN as DOMAIN
|
2
|
+
from .coordinator import PureEnergieDataUpdateCoordinator as PureEnergieDataUpdateCoordinator
|
2
3
|
from _typeshed import Incomplete
|
3
|
-
from gridnet import Device as Device, SmartBridge as SmartBridge
|
4
4
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
|
-
from homeassistant.const import
|
5
|
+
from homeassistant.const import Platform as Platform
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
7
7
|
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
8
|
-
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
9
|
-
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
10
|
-
from typing import NamedTuple
|
11
8
|
|
12
9
|
PLATFORMS: Incomplete
|
13
10
|
|
14
11
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
15
12
|
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
16
|
-
|
17
|
-
class PureEnergieData(NamedTuple):
|
18
|
-
device: Device
|
19
|
-
smartbridge: SmartBridge
|
20
|
-
|
21
|
-
class PureEnergieDataUpdateCoordinator(DataUpdateCoordinator[PureEnergieData]):
|
22
|
-
config_entry: ConfigEntry
|
23
|
-
gridnet: Incomplete
|
24
|
-
def __init__(self, hass: HomeAssistant) -> None: ...
|
25
|
-
async def _async_update_data(self) -> PureEnergieData: ...
|
@@ -0,0 +1,19 @@
|
|
1
|
+
from .const import DOMAIN as DOMAIN, LOGGER as LOGGER, SCAN_INTERVAL as SCAN_INTERVAL
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from gridnet import Device as Device, SmartBridge as SmartBridge
|
4
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
|
+
from homeassistant.const import CONF_HOST as CONF_HOST
|
6
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
7
|
+
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
8
|
+
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
9
|
+
from typing import NamedTuple
|
10
|
+
|
11
|
+
class PureEnergieData(NamedTuple):
|
12
|
+
device: Device
|
13
|
+
smartbridge: SmartBridge
|
14
|
+
|
15
|
+
class PureEnergieDataUpdateCoordinator(DataUpdateCoordinator[PureEnergieData]):
|
16
|
+
config_entry: ConfigEntry
|
17
|
+
gridnet: Incomplete
|
18
|
+
def __init__(self, hass: HomeAssistant) -> None: ...
|
19
|
+
async def _async_update_data(self) -> PureEnergieData: ...
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from . import PureEnergieDataUpdateCoordinator as PureEnergieDataUpdateCoordinator
|
2
1
|
from .const import DOMAIN as DOMAIN
|
2
|
+
from .coordinator import PureEnergieDataUpdateCoordinator as PureEnergieDataUpdateCoordinator
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from homeassistant.components.diagnostics import async_redact_data as async_redact_data
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from . import PureEnergieData as PureEnergieData, PureEnergieDataUpdateCoordinator as PureEnergieDataUpdateCoordinator
|
2
1
|
from .const import DOMAIN as DOMAIN
|
2
|
+
from .coordinator import PureEnergieData as PureEnergieData, PureEnergieDataUpdateCoordinator as PureEnergieDataUpdateCoordinator
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from collections.abc import Callable as Callable
|
5
5
|
from dataclasses import dataclass
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from .config_flow import get_client_controller as get_client_controller
|
2
2
|
from .const import CONF_ALLOW_INACTIVE_ZONES_TO_RUN as CONF_ALLOW_INACTIVE_ZONES_TO_RUN, CONF_DEFAULT_ZONE_RUN_TIME as CONF_DEFAULT_ZONE_RUN_TIME, CONF_DURATION as CONF_DURATION, CONF_USE_APP_RUN_TIMES as CONF_USE_APP_RUN_TIMES, DATA_API_VERSIONS as DATA_API_VERSIONS, DATA_MACHINE_FIRMWARE_UPDATE_STATUS as DATA_MACHINE_FIRMWARE_UPDATE_STATUS, DATA_PROGRAMS as DATA_PROGRAMS, DATA_PROVISION_SETTINGS as DATA_PROVISION_SETTINGS, DATA_RESTRICTIONS_CURRENT as DATA_RESTRICTIONS_CURRENT, DATA_RESTRICTIONS_UNIVERSAL as DATA_RESTRICTIONS_UNIVERSAL, DATA_ZONES as DATA_ZONES, DEFAULT_ZONE_RUN as DEFAULT_ZONE_RUN, DOMAIN as DOMAIN, LOGGER as LOGGER
|
3
|
+
from .coordinator import RainMachineDataUpdateCoordinator as RainMachineDataUpdateCoordinator
|
3
4
|
from .model import RainMachineEntityDescription as RainMachineEntityDescription
|
4
|
-
from .util import RainMachineDataUpdateCoordinator as RainMachineDataUpdateCoordinator
|
5
5
|
from _typeshed import Incomplete
|
6
6
|
from collections.abc import Callable as Callable
|
7
7
|
from dataclasses import dataclass
|
@@ -0,0 +1,22 @@
|
|
1
|
+
from .const import LOGGER as LOGGER
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from collections.abc import Callable as Callable, Coroutine
|
4
|
+
from datetime import timedelta
|
5
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
|
+
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, async_dispatcher_send as async_dispatcher_send
|
8
|
+
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
9
|
+
from typing import Any
|
10
|
+
|
11
|
+
SIGNAL_REBOOT_COMPLETED: str
|
12
|
+
SIGNAL_REBOOT_REQUESTED: str
|
13
|
+
|
14
|
+
class RainMachineDataUpdateCoordinator(DataUpdateCoordinator[dict]):
|
15
|
+
config_entry: ConfigEntry
|
16
|
+
_rebooting: bool
|
17
|
+
_signal_handler_unsubs: Incomplete
|
18
|
+
signal_reboot_completed: Incomplete
|
19
|
+
signal_reboot_requested: Incomplete
|
20
|
+
def __init__(self, hass: HomeAssistant, *, entry: ConfigEntry, name: str, api_category: str, update_interval: timedelta, update_method: Callable[[], Coroutine[Any, Any, dict]]) -> None: ...
|
21
|
+
last_update_success: bool
|
22
|
+
def async_initialize(self) -> None: ...
|
@@ -3,7 +3,7 @@ from .const import CONF_ALLOW_INACTIVE_ZONES_TO_RUN as CONF_ALLOW_INACTIVE_ZONES
|
|
3
3
|
from .model import RainMachineEntityDescription as RainMachineEntityDescription
|
4
4
|
from .util import RUN_STATE_MAP as RUN_STATE_MAP, key_exists as key_exists
|
5
5
|
from _typeshed import Incomplete
|
6
|
-
from collections.abc import Awaitable, Callable as Callable, Coroutine
|
6
|
+
from collections.abc import Awaitable as Awaitable, Callable as Callable, Coroutine
|
7
7
|
from dataclasses import dataclass
|
8
8
|
from homeassistant.components.switch import SwitchEntity as SwitchEntity, SwitchEntityDescription as SwitchEntityDescription
|
9
9
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
@@ -12,13 +12,13 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
|
|
12
12
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
13
13
|
from homeassistant.helpers import entity_platform as entity_platform
|
14
14
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
15
|
-
from typing import Any, Concatenate
|
15
|
+
from typing import Any, Concatenate
|
16
16
|
|
17
|
+
ATTR_ACTIVITY_TYPE: str
|
17
18
|
ATTR_AREA: str
|
18
19
|
ATTR_CS_ON: str
|
19
20
|
ATTR_CURRENT_CYCLE: str
|
20
21
|
ATTR_CYCLES: str
|
21
|
-
ATTR_ZONE_RUN_TIME: str
|
22
22
|
ATTR_DELAY: str
|
23
23
|
ATTR_DELAY_ON: str
|
24
24
|
ATTR_FIELD_CAPACITY: str
|
@@ -34,14 +34,13 @@ ATTR_STATUS: str
|
|
34
34
|
ATTR_SUN_EXPOSURE: str
|
35
35
|
ATTR_VEGETATION_TYPE: str
|
36
36
|
ATTR_ZONES: str
|
37
|
+
ATTR_ZONE_RUN_TIME: str
|
37
38
|
DAYS: Incomplete
|
38
39
|
SOIL_TYPE_MAP: Incomplete
|
39
40
|
SLOPE_TYPE_MAP: Incomplete
|
40
41
|
SPRINKLER_TYPE_MAP: Incomplete
|
41
42
|
SUN_EXPOSURE_MAP: Incomplete
|
42
43
|
VEGETATION_MAP: Incomplete
|
43
|
-
_T = TypeVar('_T', bound='RainMachineBaseSwitch')
|
44
|
-
_P = ParamSpec('_P')
|
45
44
|
|
46
45
|
def raise_on_request_error(func: Callable[Concatenate[_T, _P], Awaitable[None]]) -> Callable[Concatenate[_T, _P], Coroutine[Any, Any, None]]: ...
|
47
46
|
|
@@ -51,8 +50,9 @@ class RainMachineSwitchDescription(SwitchEntityDescription, RainMachineEntityDes
|
|
51
50
|
|
52
51
|
@dataclass(frozen=True, kw_only=True)
|
53
52
|
class RainMachineActivitySwitchDescription(RainMachineSwitchDescription):
|
53
|
+
kind: str
|
54
54
|
uid: int
|
55
|
-
def __init__(self, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, api_category, uid) -> None: ...
|
55
|
+
def __init__(self, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, api_category, kind, uid) -> None: ...
|
56
56
|
|
57
57
|
@dataclass(frozen=True, kw_only=True)
|
58
58
|
class RainMachineRestrictionSwitchDescription(RainMachineSwitchDescription):
|
@@ -79,6 +79,7 @@ class RainMachineBaseSwitch(RainMachineEntity, SwitchEntity):
|
|
79
79
|
class RainMachineActivitySwitch(RainMachineBaseSwitch):
|
80
80
|
_attr_icon: str
|
81
81
|
entity_description: RainMachineActivitySwitchDescription
|
82
|
+
def __init__(self, entry: ConfigEntry, data: RainMachineData, description: RainMachineSwitchDescription) -> None: ...
|
82
83
|
async def async_turn_off(self, **kwargs: Any) -> None: ...
|
83
84
|
async def async_turn_off_when_active(self, **kwargs: Any) -> None: ...
|
84
85
|
_attr_is_on: bool
|
@@ -89,6 +90,7 @@ class RainMachineEnabledSwitch(RainMachineBaseSwitch):
|
|
89
90
|
_attr_entity_category: Incomplete
|
90
91
|
_attr_icon: str
|
91
92
|
entity_description: RainMachineActivitySwitchDescription
|
93
|
+
def __init__(self, entry: ConfigEntry, data: RainMachineData, description: RainMachineSwitchDescription) -> None: ...
|
92
94
|
_attr_is_on: Incomplete
|
93
95
|
def update_from_latest_data(self) -> None: ...
|
94
96
|
|
@@ -1,18 +1,12 @@
|
|
1
1
|
from .const import LOGGER as LOGGER
|
2
2
|
from _typeshed import Incomplete
|
3
|
-
from collections.abc import
|
3
|
+
from collections.abc import Iterable
|
4
4
|
from dataclasses import dataclass
|
5
|
-
from datetime import timedelta
|
6
5
|
from enum import StrEnum
|
7
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
9
|
-
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, async_dispatcher_send as async_dispatcher_send
|
10
|
-
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
11
8
|
from typing import Any
|
12
9
|
|
13
|
-
SIGNAL_REBOOT_COMPLETED: str
|
14
|
-
SIGNAL_REBOOT_REQUESTED: str
|
15
|
-
|
16
10
|
class RunStates(StrEnum):
|
17
11
|
NOT_RUNNING: str
|
18
12
|
QUEUED: str
|
@@ -31,13 +25,3 @@ class EntityDomainReplacementStrategy:
|
|
31
25
|
|
32
26
|
def async_finish_entity_domain_replacements(hass: HomeAssistant, entry: ConfigEntry, entity_replacement_strategies: Iterable[EntityDomainReplacementStrategy]) -> None: ...
|
33
27
|
def key_exists(data: dict[str, Any], search_key: str) -> bool: ...
|
34
|
-
|
35
|
-
class RainMachineDataUpdateCoordinator(DataUpdateCoordinator[dict]):
|
36
|
-
config_entry: ConfigEntry
|
37
|
-
_rebooting: bool
|
38
|
-
_signal_handler_unsubs: Incomplete
|
39
|
-
signal_reboot_completed: Incomplete
|
40
|
-
signal_reboot_requested: Incomplete
|
41
|
-
def __init__(self, hass: HomeAssistant, *, entry: ConfigEntry, name: str, api_category: str, update_interval: timedelta, update_method: Callable[..., Awaitable]) -> None: ...
|
42
|
-
last_update_success: bool
|
43
|
-
def async_initialize(self) -> None: ...
|
@@ -20,6 +20,7 @@ from .util import async_create_backup_failure_issue as async_create_backup_failu
|
|
20
20
|
from _typeshed import Incomplete
|
21
21
|
from collections.abc import Callable as Callable, Iterable
|
22
22
|
from datetime import datetime
|
23
|
+
from functools import cached_property as cached_property
|
23
24
|
from homeassistant.components import persistent_notification as persistent_notification
|
24
25
|
from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, EVENT_HOMEASSISTANT_CLOSE as EVENT_HOMEASSISTANT_CLOSE, EVENT_HOMEASSISTANT_FINAL_WRITE as EVENT_HOMEASSISTANT_FINAL_WRITE, EVENT_STATE_CHANGED as EVENT_STATE_CHANGED, MATCH_ALL as MATCH_ALL
|
25
26
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant, callback as callback
|
@@ -31,10 +32,9 @@ from homeassistant.util.event_type import EventType as EventType
|
|
31
32
|
from sqlalchemy.engine import Engine as Engine
|
32
33
|
from sqlalchemy.engine.interfaces import DBAPIConnection as DBAPIConnection
|
33
34
|
from sqlalchemy.orm.session import Session as Session
|
34
|
-
from typing import Any
|
35
|
+
from typing import Any
|
35
36
|
|
36
37
|
_LOGGER: Incomplete
|
37
|
-
T = TypeVar('T')
|
38
38
|
DEFAULT_URL: str
|
39
39
|
EXPIRE_AFTER_COMMITS: int
|
40
40
|
SHUTDOWN_TASK: Incomplete
|
@@ -52,6 +52,7 @@ class Recorder(threading.Thread):
|
|
52
52
|
stop_requested: bool
|
53
53
|
hass: Incomplete
|
54
54
|
thread_id: Incomplete
|
55
|
+
recorder_and_worker_thread_ids: Incomplete
|
55
56
|
auto_purge: Incomplete
|
56
57
|
auto_repack: Incomplete
|
57
58
|
keep_days: Incomplete
|
@@ -103,7 +104,7 @@ class Recorder(threading.Thread):
|
|
103
104
|
def __init__(self, hass: HomeAssistant, auto_purge: bool, auto_repack: bool, keep_days: int, commit_interval: int, uri: str, db_max_retries: int, db_retry_wait: int, entity_filter: Callable[[str], bool], exclude_event_types: set[EventType[Any] | str]) -> None: ...
|
104
105
|
@property
|
105
106
|
def backlog(self) -> int: ...
|
106
|
-
@
|
107
|
+
@cached_property
|
107
108
|
def dialect_name(self) -> SupportedDialect | None: ...
|
108
109
|
@property
|
109
110
|
def _using_file_sqlite(self) -> bool: ...
|
@@ -117,7 +118,7 @@ class Recorder(threading.Thread):
|
|
117
118
|
def async_initialize(self) -> None: ...
|
118
119
|
def _async_keep_alive(self, now: datetime) -> None: ...
|
119
120
|
def _async_commit(self, now: datetime) -> None: ...
|
120
|
-
def async_add_executor_job(self, target: Callable[...,
|
121
|
+
def async_add_executor_job(self, target: Callable[..., _T], *args: Any) -> asyncio.Future[_T]: ...
|
121
122
|
def _stop_executor(self) -> None: ...
|
122
123
|
def _async_check_queue(self, *_: Any) -> None: ...
|
123
124
|
def _available_memory(self) -> int: ...
|
@@ -3,9 +3,10 @@ from collections.abc import Callable as Callable
|
|
3
3
|
from homeassistant.util.executor import InterruptibleThreadPoolExecutor as InterruptibleThreadPoolExecutor
|
4
4
|
from typing import Any
|
5
5
|
|
6
|
-
def _worker_with_shutdown_hook(shutdown_hook: Callable[[], None], *args: Any, **kwargs: Any) -> None: ...
|
6
|
+
def _worker_with_shutdown_hook(shutdown_hook: Callable[[], None], recorder_and_worker_thread_ids: set[int], *args: Any, **kwargs: Any) -> None: ...
|
7
7
|
|
8
8
|
class DBInterruptibleThreadPoolExecutor(InterruptibleThreadPoolExecutor):
|
9
9
|
_shutdown_hook: Incomplete
|
10
|
-
|
10
|
+
recorder_and_worker_thread_ids: Incomplete
|
11
|
+
def __init__(self, recorder_and_worker_thread_ids: set[int], *args: Any, **kwargs: Any) -> None: ...
|
11
12
|
def _adjust_thread_count(self) -> None: ...
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import threading
|
2
|
-
from .const import DB_WORKER_PREFIX as DB_WORKER_PREFIX
|
3
2
|
from _typeshed import Incomplete
|
4
3
|
from homeassistant.helpers.frame import report as report
|
5
|
-
from homeassistant.util.loop import
|
4
|
+
from homeassistant.util.loop import raise_for_blocking_call as raise_for_blocking_call
|
6
5
|
from sqlalchemy.pool import ConnectionPoolEntry as ConnectionPoolEntry, NullPool, SingletonThreadPool, StaticPool
|
7
6
|
from typing import Any
|
8
7
|
|
@@ -13,9 +12,9 @@ POOL_SIZE: int
|
|
13
12
|
ADVISE_MSG: str
|
14
13
|
|
15
14
|
class RecorderPool(SingletonThreadPool, NullPool):
|
16
|
-
|
17
|
-
|
18
|
-
def
|
15
|
+
recorder_and_worker_thread_ids: Incomplete
|
16
|
+
def __init__(self, creator: Any, recorder_and_worker_thread_ids: set[int] | None = None, **kw: Any) -> None: ...
|
17
|
+
def recreate(self) -> RecorderPool: ...
|
19
18
|
def _do_return_conn(self, record: ConnectionPoolEntry) -> None: ...
|
20
19
|
def shutdown(self) -> None: ...
|
21
20
|
def dispose(self) -> None: ...
|
@@ -3,10 +3,11 @@ from .db_schema import Events as Events, States as States, StatesMeta as StatesM
|
|
3
3
|
from .models import DatabaseEngine as DatabaseEngine
|
4
4
|
from .queries import attributes_ids_exist_in_states as attributes_ids_exist_in_states, attributes_ids_exist_in_states_with_fast_in_distinct as attributes_ids_exist_in_states_with_fast_in_distinct, data_ids_exist_in_events as data_ids_exist_in_events, data_ids_exist_in_events_with_fast_in_distinct as data_ids_exist_in_events_with_fast_in_distinct, delete_event_data_rows as delete_event_data_rows, delete_event_rows as delete_event_rows, delete_event_types_rows as delete_event_types_rows, delete_recorder_runs_rows as delete_recorder_runs_rows, delete_states_attributes_rows as delete_states_attributes_rows, delete_states_meta_rows as delete_states_meta_rows, delete_states_rows as delete_states_rows, delete_statistics_runs_rows as delete_statistics_runs_rows, delete_statistics_short_term_rows as delete_statistics_short_term_rows, disconnect_states_rows as disconnect_states_rows, find_entity_ids_to_purge as find_entity_ids_to_purge, find_event_types_to_purge as find_event_types_to_purge, find_events_to_purge as find_events_to_purge, find_latest_statistics_runs_run_id as find_latest_statistics_runs_run_id, find_legacy_detached_states_and_attributes_to_purge as find_legacy_detached_states_and_attributes_to_purge, find_legacy_event_state_and_attributes_and_data_ids_to_purge as find_legacy_event_state_and_attributes_and_data_ids_to_purge, find_legacy_row as find_legacy_row, find_short_term_statistics_to_purge as find_short_term_statistics_to_purge, find_states_to_purge as find_states_to_purge, find_statistics_runs_to_purge as find_statistics_runs_to_purge
|
5
5
|
from .repack import repack_database as repack_database
|
6
|
-
from .util import
|
6
|
+
from .util import retryable_database_job as retryable_database_job, session_scope as session_scope
|
7
7
|
from _typeshed import Incomplete
|
8
8
|
from collections.abc import Callable as Callable
|
9
9
|
from datetime import datetime
|
10
|
+
from homeassistant.util.collection import chunked_or_all as chunked_or_all
|
10
11
|
from sqlalchemy.orm.session import Session as Session
|
11
12
|
|
12
13
|
_LOGGER: Incomplete
|
@@ -2,11 +2,9 @@ from ..core import Recorder as Recorder
|
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from homeassistant.util.event_type import EventType as EventType
|
4
4
|
from lru import LRU
|
5
|
-
from typing import Any
|
5
|
+
from typing import Any
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
class BaseTableManager(Generic[_DataT]):
|
7
|
+
class BaseTableManager:
|
10
8
|
_id_map: LRU[EventType[Any] | str, int]
|
11
9
|
active: bool
|
12
10
|
recorder: Incomplete
|
@@ -2,10 +2,11 @@ from . import BaseLRUTableManager as BaseLRUTableManager
|
|
2
2
|
from ..core import Recorder as Recorder
|
3
3
|
from ..db_schema import EventData as EventData
|
4
4
|
from ..queries import get_shared_event_datas as get_shared_event_datas
|
5
|
-
from ..util import
|
5
|
+
from ..util import execute_stmt_lambda_element as execute_stmt_lambda_element
|
6
6
|
from _typeshed import Incomplete
|
7
7
|
from collections.abc import Iterable
|
8
8
|
from homeassistant.core import Event as Event
|
9
|
+
from homeassistant.util.collection import chunked as chunked
|
9
10
|
from homeassistant.util.json import JSON_ENCODE_EXCEPTIONS as JSON_ENCODE_EXCEPTIONS
|
10
11
|
from sqlalchemy.orm.session import Session as Session
|
11
12
|
|
@@ -3,10 +3,11 @@ from ..core import Recorder as Recorder
|
|
3
3
|
from ..db_schema import EventTypes as EventTypes
|
4
4
|
from ..queries import find_event_type_ids as find_event_type_ids
|
5
5
|
from ..tasks import RefreshEventTypesTask as RefreshEventTypesTask
|
6
|
-
from ..util import
|
6
|
+
from ..util import execute_stmt_lambda_element as execute_stmt_lambda_element
|
7
7
|
from _typeshed import Incomplete
|
8
8
|
from collections.abc import Iterable
|
9
9
|
from homeassistant.core import Event as Event
|
10
|
+
from homeassistant.util.collection import chunked as chunked
|
10
11
|
from homeassistant.util.event_type import EventType as EventType
|
11
12
|
from sqlalchemy.orm.session import Session as Session
|
12
13
|
from typing import Any
|
@@ -2,10 +2,11 @@ from . import BaseLRUTableManager as BaseLRUTableManager
|
|
2
2
|
from ..core import Recorder as Recorder
|
3
3
|
from ..db_schema import StateAttributes as StateAttributes
|
4
4
|
from ..queries import get_shared_attributes as get_shared_attributes
|
5
|
-
from ..util import
|
5
|
+
from ..util import execute_stmt_lambda_element as execute_stmt_lambda_element
|
6
6
|
from _typeshed import Incomplete
|
7
7
|
from collections.abc import Iterable
|
8
8
|
from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData
|
9
|
+
from homeassistant.util.collection import chunked as chunked
|
9
10
|
from homeassistant.util.json import JSON_ENCODE_EXCEPTIONS as JSON_ENCODE_EXCEPTIONS
|
10
11
|
from sqlalchemy.orm.session import Session as Session
|
11
12
|
|
@@ -2,9 +2,10 @@ from . import BaseLRUTableManager as BaseLRUTableManager
|
|
2
2
|
from ..core import Recorder as Recorder
|
3
3
|
from ..db_schema import StatesMeta as StatesMeta
|
4
4
|
from ..queries import find_all_states_metadata_ids as find_all_states_metadata_ids, find_states_metadata_ids as find_states_metadata_ids
|
5
|
-
from ..util import
|
5
|
+
from ..util import execute_stmt_lambda_element as execute_stmt_lambda_element
|
6
6
|
from collections.abc import Iterable
|
7
7
|
from homeassistant.core import Event as Event, EventStateChangedData as EventStateChangedData
|
8
|
+
from homeassistant.util.collection import chunked as chunked
|
8
9
|
from sqlalchemy.orm.session import Session as Session
|
9
10
|
|
10
11
|
CACHE_SIZE: int
|
@@ -4,7 +4,7 @@ from .db_schema import RecorderRuns as RecorderRuns, TABLES_TO_CHECK as TABLES_T
|
|
4
4
|
from .models import DatabaseEngine as DatabaseEngine, DatabaseOptimizer as DatabaseOptimizer, StatisticPeriod as StatisticPeriod, UnsupportedDialect as UnsupportedDialect, process_timestamp as process_timestamp
|
5
5
|
from _typeshed import Incomplete
|
6
6
|
from awesomeversion import AwesomeVersion
|
7
|
-
from collections.abc import Callable,
|
7
|
+
from collections.abc import Callable, Generator, Sequence
|
8
8
|
from datetime import date, datetime
|
9
9
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
10
10
|
from sqlalchemy.engine import Result as Result, Row as Row
|
@@ -14,10 +14,8 @@ from sqlalchemy.orm.query import Query as Query
|
|
14
14
|
from sqlalchemy.orm.session import Session as Session
|
15
15
|
from sqlalchemy.sql.lambdas import StatementLambdaElement as StatementLambdaElement
|
16
16
|
from sqlite3.dbapi2 import Cursor as SQLiteCursor
|
17
|
-
from typing import Any, NoReturn
|
17
|
+
from typing import Any, NoReturn
|
18
18
|
|
19
|
-
_RecorderT = TypeVar('_RecorderT', bound='Recorder')
|
20
|
-
_P = ParamSpec('_P')
|
21
19
|
_LOGGER: Incomplete
|
22
20
|
RETRIES: int
|
23
21
|
QUERY_RETRY_WAIT: float
|
@@ -73,11 +71,8 @@ def _is_retryable_error(instance: Recorder, err: OperationalError) -> bool: ...
|
|
73
71
|
|
74
72
|
_FuncType: Incomplete
|
75
73
|
|
76
|
-
def retryable_database_job(description: str) -> Callable[[_FuncType[_RecorderT, _P]], _FuncType[_RecorderT, _P]]: ...
|
77
|
-
|
78
|
-
_WrappedFuncType: Incomplete
|
79
|
-
|
80
|
-
def database_job_retry_wrapper(description: str, attempts: int = 5) -> Callable[[_WrappedFuncType[_RecorderT, _P]], _WrappedFuncType[_RecorderT, _P]]: ...
|
74
|
+
def retryable_database_job(description: str) -> Callable[[_FuncType[_RecorderT, _P, bool]], _FuncType[_RecorderT, _P, bool]]: ...
|
75
|
+
def database_job_retry_wrapper(description: str, attempts: int = 5) -> Callable[[_FuncType[_RecorderT, _P, None]], _FuncType[_RecorderT, _P, None]]: ...
|
81
76
|
def periodic_db_cleanups(instance: Recorder) -> None: ...
|
82
77
|
def write_lock_db_sqlite(instance: Recorder) -> Generator[None, None, None]: ...
|
83
78
|
def async_migration_in_progress(hass: HomeAssistant) -> bool: ...
|
@@ -89,8 +84,5 @@ def get_instance(hass: HomeAssistant) -> Recorder: ...
|
|
89
84
|
PERIOD_SCHEMA: Incomplete
|
90
85
|
|
91
86
|
def resolve_period(period_def: StatisticPeriod) -> tuple[datetime | None, datetime | None]: ...
|
92
|
-
def take(take_num: int, iterable: Iterable) -> list[Any]: ...
|
93
|
-
def chunked(iterable: Iterable, chunked_num: int) -> Iterable[Any]: ...
|
94
|
-
def chunked_or_all(iterable: Collection[Any], chunked_num: int) -> Iterable[Any]: ...
|
95
87
|
def get_index_by_name(session: Session, table_name: str, index_name: str) -> str | None: ...
|
96
88
|
def filter_unique_constraint_integrity_error(instance: Recorder, row_type: str) -> Callable[[Exception], bool]: ...
|
@@ -1,6 +1,7 @@
|
|
1
|
+
from .core import Recorder as Recorder
|
1
2
|
from .models import StatisticPeriod as StatisticPeriod
|
2
3
|
from .statistics import STATISTIC_UNIT_TO_UNIT_CONVERTER as STATISTIC_UNIT_TO_UNIT_CONVERTER, async_add_external_statistics as async_add_external_statistics, async_change_statistics_unit as async_change_statistics_unit, async_import_statistics as async_import_statistics, async_list_statistic_ids as async_list_statistic_ids, list_statistic_ids as list_statistic_ids, statistic_during_period as statistic_during_period, statistics_during_period as statistics_during_period, validate_statistics as validate_statistics
|
3
|
-
from .util import PERIOD_SCHEMA as PERIOD_SCHEMA, get_instance as get_instance, resolve_period as resolve_period
|
4
|
+
from .util import PERIOD_SCHEMA as PERIOD_SCHEMA, get_instance as get_instance, resolve_period as resolve_period, session_scope as session_scope
|
4
5
|
from _typeshed import Incomplete
|
5
6
|
from datetime import datetime as dt
|
6
7
|
from homeassistant.components import websocket_api as websocket_api
|
@@ -30,3 +31,5 @@ def ws_change_statistics_unit(hass: HomeAssistant, connection: websocket_api.Act
|
|
30
31
|
async def ws_adjust_sum_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
31
32
|
def ws_import_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
32
33
|
def ws_info(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
34
|
+
def _get_recorded_entities(hass: HomeAssistant, msg_id: int, instance: Recorder) -> bytes: ...
|
35
|
+
async def ws_get_recorded_entities(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
@@ -1,10 +1,18 @@
|
|
1
1
|
from .const import CONF_LOCALE as CONF_LOCALE, DOMAIN as DOMAIN, PLATFORMS as PLATFORMS
|
2
2
|
from .renault_hub import RenaultHub as RenaultHub
|
3
|
-
from .services import
|
3
|
+
from .services import setup_services as setup_services
|
4
|
+
from _typeshed import Incomplete
|
4
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
5
6
|
from homeassistant.const import CONF_PASSWORD as CONF_PASSWORD, CONF_USERNAME as CONF_USERNAME
|
6
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
7
8
|
from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed, ConfigEntryNotReady as ConfigEntryNotReady
|
9
|
+
from homeassistant.helpers import device_registry as dr
|
10
|
+
from homeassistant.helpers.typing import ConfigType as ConfigType
|
8
11
|
|
9
|
-
|
10
|
-
|
12
|
+
CONFIG_SCHEMA: Incomplete
|
13
|
+
RenaultConfigEntry = ConfigEntry[RenaultHub]
|
14
|
+
|
15
|
+
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
|
16
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: RenaultConfigEntry) -> bool: ...
|
17
|
+
async def async_unload_entry(hass: HomeAssistant, config_entry: RenaultConfigEntry) -> bool: ...
|
18
|
+
async def async_remove_config_entry_device(hass: HomeAssistant, config_entry: RenaultConfigEntry, device_entry: dr.DeviceEntry) -> bool: ...
|
@@ -1,9 +1,7 @@
|
|
1
|
-
from .
|
1
|
+
from . import RenaultConfigEntry as RenaultConfigEntry
|
2
2
|
from .entity import RenaultDataEntity as RenaultDataEntity, RenaultDataEntityDescription as RenaultDataEntityDescription
|
3
|
-
from .renault_hub import RenaultHub as RenaultHub
|
4
3
|
from dataclasses import dataclass
|
5
4
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, BinarySensorEntityDescription as BinarySensorEntityDescription
|
6
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
5
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
6
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
9
7
|
from homeassistant.helpers.typing import StateType as StateType
|
@@ -15,7 +13,7 @@ class RenaultBinarySensorEntityDescription(BinarySensorEntityDescription, Renaul
|
|
15
13
|
on_value: StateType
|
16
14
|
def __init__(self, coordinator, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, on_key, on_value) -> None: ...
|
17
15
|
|
18
|
-
async def async_setup_entry(hass: HomeAssistant, config_entry:
|
16
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: RenaultConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
19
17
|
|
20
18
|
class RenaultBinarySensor(RenaultDataEntity[KamereonVehicleBatteryStatusData], BinarySensorEntity):
|
21
19
|
entity_description: RenaultBinarySensorEntityDescription
|
@@ -1,10 +1,8 @@
|
|
1
|
-
from .
|
1
|
+
from . import RenaultConfigEntry as RenaultConfigEntry
|
2
2
|
from .entity import RenaultEntity as RenaultEntity
|
3
|
-
from .renault_hub import RenaultHub as RenaultHub
|
4
3
|
from collections.abc import Callable as Callable, Coroutine
|
5
4
|
from dataclasses import dataclass
|
6
5
|
from homeassistant.components.button import ButtonEntity as ButtonEntity, ButtonEntityDescription as ButtonEntityDescription
|
7
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
6
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
7
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
8
|
from typing import Any
|
@@ -15,7 +13,7 @@ class RenaultButtonEntityDescription(ButtonEntityDescription):
|
|
15
13
|
requires_electricity: bool = ...
|
16
14
|
def __init__(self, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, async_press, requires_electricity) -> None: ...
|
17
15
|
|
18
|
-
async def async_setup_entry(hass: HomeAssistant, config_entry:
|
16
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: RenaultConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
19
17
|
|
20
18
|
class RenaultButtonEntity(RenaultEntity, ButtonEntity):
|
21
19
|
entity_description: RenaultButtonEntityDescription
|
@@ -1,13 +1,11 @@
|
|
1
|
-
from .
|
1
|
+
from . import RenaultConfigEntry as RenaultConfigEntry
|
2
2
|
from .entity import RenaultDataEntity as RenaultDataEntity, RenaultDataEntityDescription as RenaultDataEntityDescription
|
3
|
-
from .renault_hub import RenaultHub as RenaultHub
|
4
3
|
from homeassistant.components.device_tracker import SourceType as SourceType, TrackerEntity as TrackerEntity
|
5
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
4
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
7
5
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
8
6
|
from renault_api.kamereon.models import KamereonVehicleLocationData
|
9
7
|
|
10
|
-
async def async_setup_entry(hass: HomeAssistant, config_entry:
|
8
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: RenaultConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
11
9
|
|
12
10
|
class RenaultDeviceTracker(RenaultDataEntity[KamereonVehicleLocationData], TrackerEntity):
|
13
11
|
@property
|
@@ -1,9 +1,8 @@
|
|
1
|
-
from . import
|
2
|
-
from .const import CONF_KAMEREON_ACCOUNT_ID as CONF_KAMEREON_ACCOUNT_ID
|
1
|
+
from . import RenaultConfigEntry as RenaultConfigEntry
|
2
|
+
from .const import CONF_KAMEREON_ACCOUNT_ID as CONF_KAMEREON_ACCOUNT_ID
|
3
3
|
from .renault_vehicle import RenaultVehicleProxy as RenaultVehicleProxy
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from homeassistant.components.diagnostics import async_redact_data as async_redact_data
|
6
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
6
|
from homeassistant.const import CONF_PASSWORD as CONF_PASSWORD, CONF_USERNAME as CONF_USERNAME
|
8
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
8
|
from homeassistant.helpers.device_registry import DeviceEntry as DeviceEntry
|
@@ -11,6 +10,6 @@ from typing import Any
|
|
11
10
|
|
12
11
|
TO_REDACT: Incomplete
|
13
12
|
|
14
|
-
async def async_get_config_entry_diagnostics(hass: HomeAssistant, entry:
|
15
|
-
async def async_get_device_diagnostics(hass: HomeAssistant, entry:
|
13
|
+
async def async_get_config_entry_diagnostics(hass: HomeAssistant, entry: RenaultConfigEntry) -> dict[str, Any]: ...
|
14
|
+
async def async_get_device_diagnostics(hass: HomeAssistant, entry: RenaultConfigEntry, device: DeviceEntry) -> dict[str, Any]: ...
|
16
15
|
def _get_vehicle_diagnostics(vehicle: RenaultVehicleProxy) -> dict[str, Any]: ...
|
@@ -9,13 +9,11 @@ from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
|
9
9
|
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
10
10
|
from renault_api.kamereon import models as models
|
11
11
|
from renault_api.renault_vehicle import RenaultVehicle as RenaultVehicle
|
12
|
-
from typing import Any, Concatenate
|
12
|
+
from typing import Any, Concatenate
|
13
13
|
|
14
14
|
LOGGER: Incomplete
|
15
|
-
_T = TypeVar('_T')
|
16
|
-
_P = ParamSpec('_P')
|
17
15
|
|
18
|
-
def with_error_wrapping(func: Callable[Concatenate[RenaultVehicleProxy, _P], Awaitable[
|
16
|
+
def with_error_wrapping(func: Callable[Concatenate[RenaultVehicleProxy, _P], Awaitable[_R]]) -> Callable[Concatenate[RenaultVehicleProxy, _P], Coroutine[Any, Any, _R]]: ...
|
19
17
|
|
20
18
|
@dataclass
|
21
19
|
class RenaultCoordinatorDescription:
|
@@ -1,9 +1,7 @@
|
|
1
|
-
from .
|
1
|
+
from . import RenaultConfigEntry as RenaultConfigEntry
|
2
2
|
from .entity import RenaultDataEntity as RenaultDataEntity, RenaultDataEntityDescription as RenaultDataEntityDescription
|
3
|
-
from .renault_hub import RenaultHub as RenaultHub
|
4
3
|
from dataclasses import dataclass
|
5
4
|
from homeassistant.components.select import SelectEntity as SelectEntity, SelectEntityDescription as SelectEntityDescription
|
6
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
5
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
6
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
9
7
|
from homeassistant.helpers.typing import StateType as StateType
|
@@ -14,7 +12,7 @@ class RenaultSelectEntityDescription(SelectEntityDescription, RenaultDataEntityD
|
|
14
12
|
data_key: str
|
15
13
|
def __init__(self, coordinator, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, options, data_key) -> None: ...
|
16
14
|
|
17
|
-
async def async_setup_entry(hass: HomeAssistant, config_entry:
|
15
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: RenaultConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
18
16
|
|
19
17
|
class RenaultSelectEntity(RenaultDataEntity[KamereonVehicleBatteryStatusData], SelectEntity):
|
20
18
|
entity_description: RenaultSelectEntityDescription
|