homeassistant-stubs 2023.8.4__py3-none-any.whl → 2023.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- homeassistant-stubs/__main__.pyi +0 -1
- homeassistant-stubs/components/abode/__init__.pyi +2 -1
- homeassistant-stubs/components/abode/sensor.pyi +18 -6
- homeassistant-stubs/components/accuweather/__init__.pyi +1 -2
- homeassistant-stubs/components/accuweather/const.pyi +2 -0
- homeassistant-stubs/components/accuweather/sensor.pyi +4 -6
- homeassistant-stubs/components/accuweather/weather.pyi +6 -5
- homeassistant-stubs/components/actiontec/model.pyi +0 -1
- homeassistant-stubs/components/adguard/entity.pyi +2 -2
- homeassistant-stubs/components/adguard/sensor.pyi +0 -2
- homeassistant-stubs/components/adguard/switch.pyi +0 -2
- homeassistant-stubs/components/airly/sensor.pyi +1 -3
- homeassistant-stubs/components/airzone/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/airzone/entity.pyi +7 -1
- homeassistant-stubs/components/airzone/select.pyi +0 -2
- homeassistant-stubs/components/airzone/sensor.pyi +9 -1
- homeassistant-stubs/components/airzone_cloud/binary_sensor.pyi +8 -2
- homeassistant-stubs/components/airzone_cloud/entity.pyi +7 -1
- homeassistant-stubs/components/aladdin_connect/cover.pyi +1 -1
- homeassistant-stubs/components/aladdin_connect/sensor.pyi +1 -3
- homeassistant-stubs/components/alarm_control_panel/__init__.pyi +0 -1
- homeassistant-stubs/components/alexa/__init__.pyi +16 -0
- homeassistant-stubs/components/alexa/auth.pyi +31 -0
- homeassistant-stubs/components/alexa/capabilities.pyi +281 -0
- homeassistant-stubs/components/alexa/config.pyi +57 -0
- homeassistant-stubs/components/alexa/const.pyi +51 -0
- homeassistant-stubs/components/alexa/entities.pyi +176 -0
- homeassistant-stubs/components/alexa/errors.pyi +69 -0
- homeassistant-stubs/components/alexa/flash_briefings.pyi +22 -0
- homeassistant-stubs/components/alexa/handlers.pyi +64 -0
- homeassistant-stubs/components/alexa/intent.pyi +53 -0
- homeassistant-stubs/components/alexa/logbook.pyi +6 -0
- homeassistant-stubs/components/alexa/resources.pyi +114 -0
- homeassistant-stubs/components/alexa/smart_home.pyi +51 -0
- homeassistant-stubs/components/alexa/state_report.pyi +53 -0
- homeassistant-stubs/components/ambient_station/__init__.pyi +1 -15
- homeassistant-stubs/components/ambient_station/binary_sensor.pyi +1 -3
- homeassistant-stubs/components/ambient_station/entity.pyi +21 -0
- homeassistant-stubs/components/ambient_station/sensor.pyi +2 -1
- homeassistant-stubs/components/amcrest/__init__.pyi +0 -1
- homeassistant-stubs/components/amcrest/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/analytics/analytics.pyi +0 -1
- homeassistant-stubs/components/anova/__init__.pyi +1 -1
- homeassistant-stubs/components/anova/config_flow.pyi +4 -4
- homeassistant-stubs/components/anova/coordinator.pyi +2 -2
- homeassistant-stubs/components/anova/entity.pyi +2 -2
- homeassistant-stubs/components/anova/models.pyi +0 -1
- homeassistant-stubs/components/anova/sensor.pyi +0 -2
- homeassistant-stubs/components/anthemav/__init__.pyi +1 -1
- homeassistant-stubs/components/anthemav/const.pyi +1 -1
- homeassistant-stubs/components/anthemav/media_player.pyi +2 -2
- homeassistant-stubs/components/apcupsd/__init__.pyi +1 -1
- homeassistant-stubs/components/aqualogic/sensor.pyi +0 -1
- homeassistant-stubs/components/aseko_pool_live/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/aseko_pool_live/entity.pyi +2 -1
- homeassistant-stubs/components/aseko_pool_live/sensor.pyi +1 -0
- homeassistant-stubs/components/assist_pipeline/__init__.pyi +2 -2
- homeassistant-stubs/components/assist_pipeline/const.pyi +3 -0
- homeassistant-stubs/components/assist_pipeline/error.pyi +2 -0
- homeassistant-stubs/components/assist_pipeline/pipeline.pyi +35 -14
- homeassistant-stubs/components/assist_pipeline/ring_buffer.pyi +15 -0
- homeassistant-stubs/components/assist_pipeline/vad.pyi +41 -6
- homeassistant-stubs/components/assist_pipeline/websocket_api.pyi +2 -2
- homeassistant-stubs/components/asuswrt/router.pyi +1 -2
- homeassistant-stubs/components/asuswrt/sensor.pyi +0 -1
- homeassistant-stubs/components/auth/__init__.pyi +2 -1
- homeassistant-stubs/components/automation/__init__.pyi +0 -1
- homeassistant-stubs/components/awair/__init__.pyi +0 -1
- homeassistant-stubs/components/awair/sensor.pyi +1 -3
- homeassistant-stubs/components/backup/manager.pyi +0 -1
- homeassistant-stubs/components/baf/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/baf/entity.pyi +2 -2
- homeassistant-stubs/components/baf/light.pyi +1 -2
- homeassistant-stubs/components/baf/models.pyi +0 -2
- homeassistant-stubs/components/baf/number.pyi +0 -2
- homeassistant-stubs/components/baf/sensor.pyi +0 -2
- homeassistant-stubs/components/baf/switch.pyi +0 -2
- homeassistant-stubs/components/bayesian/helpers.pyi +0 -1
- homeassistant-stubs/components/binary_sensor/__init__.pyi +0 -1
- homeassistant-stubs/components/bluetooth/base_scanner.pyi +0 -1
- homeassistant-stubs/components/bluetooth/match.pyi +0 -1
- homeassistant-stubs/components/bluetooth/models.pyi +0 -1
- homeassistant-stubs/components/bluetooth/passive_update_processor.pyi +59 -20
- homeassistant-stubs/components/bluetooth/update_coordinator.pyi +6 -3
- homeassistant-stubs/components/bluetooth/wrappers.pyi +1 -2
- homeassistant-stubs/components/bmw_connected_drive/__init__.pyi +1 -1
- homeassistant-stubs/components/bmw_connected_drive/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/bmw_connected_drive/button.pyi +6 -5
- homeassistant-stubs/components/bmw_connected_drive/number.pyi +0 -2
- homeassistant-stubs/components/bmw_connected_drive/select.pyi +0 -2
- homeassistant-stubs/components/bmw_connected_drive/sensor.pyi +0 -1
- homeassistant-stubs/components/bmw_connected_drive/switch.pyi +0 -2
- homeassistant-stubs/components/bond/button.pyi +0 -2
- homeassistant-stubs/components/bond/entity.pyi +2 -1
- homeassistant-stubs/components/bond/models.pyi +0 -1
- homeassistant-stubs/components/braviatv/button.pyi +0 -2
- homeassistant-stubs/components/braviatv/coordinator.pyi +2 -2
- homeassistant-stubs/components/braviatv/entity.pyi +1 -1
- homeassistant-stubs/components/brother/sensor.pyi +1 -3
- homeassistant-stubs/components/button/__init__.pyi +0 -1
- homeassistant-stubs/components/calendar/__init__.pyi +5 -3
- homeassistant-stubs/components/calendar/trigger.pyi +0 -2
- homeassistant-stubs/components/camera/__init__.pyi +3 -1
- homeassistant-stubs/components/camera/prefs.pyi +0 -1
- homeassistant-stubs/components/canary/camera.pyi +1 -1
- homeassistant-stubs/components/canary/sensor.pyi +1 -1
- homeassistant-stubs/components/cloud/alexa_config.pyi +3 -2
- homeassistant-stubs/components/cloud/http_api.pyi +3 -3
- homeassistant-stubs/components/cover/__init__.pyi +2 -3
- homeassistant-stubs/components/cpuspeed/sensor.pyi +1 -1
- homeassistant-stubs/components/crownstone/devices.pyi +2 -1
- homeassistant-stubs/components/deconz/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/deconz/button.pyi +0 -2
- homeassistant-stubs/components/deconz/deconz_device.pyi +2 -2
- homeassistant-stubs/components/deconz/device_trigger.pyi +1 -0
- homeassistant-stubs/components/deconz/light.pyi +1 -1
- homeassistant-stubs/components/deconz/number.pyi +0 -2
- homeassistant-stubs/components/deconz/sensor.pyi +0 -2
- homeassistant-stubs/components/demo/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/demo/button.pyi +1 -1
- homeassistant-stubs/components/demo/calendar.pyi +2 -2
- homeassistant-stubs/components/demo/climate.pyi +1 -1
- homeassistant-stubs/components/demo/cover.pyi +1 -1
- homeassistant-stubs/components/demo/date.pyi +1 -1
- homeassistant-stubs/components/demo/datetime.pyi +1 -1
- homeassistant-stubs/components/demo/event.pyi +1 -1
- homeassistant-stubs/components/demo/light.pyi +1 -1
- homeassistant-stubs/components/demo/number.pyi +1 -1
- homeassistant-stubs/components/demo/select.pyi +1 -1
- homeassistant-stubs/components/demo/sensor.pyi +1 -1
- homeassistant-stubs/components/demo/switch.pyi +1 -1
- homeassistant-stubs/components/demo/text.pyi +1 -1
- homeassistant-stubs/components/demo/time.pyi +1 -1
- homeassistant-stubs/components/demo/update.pyi +1 -1
- homeassistant-stubs/components/demo/weather.pyi +1 -0
- homeassistant-stubs/components/derivative/sensor.pyi +1 -1
- homeassistant-stubs/components/device_automation/__init__.pyi +0 -1
- homeassistant-stubs/components/device_tracker/config_entry.pyi +2 -1
- homeassistant-stubs/components/devolo_home_control/devolo_device.pyi +2 -1
- homeassistant-stubs/components/devolo_home_network/__init__.pyi +2 -2
- homeassistant-stubs/components/devolo_home_network/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/devolo_home_network/button.pyi +0 -2
- homeassistant-stubs/components/devolo_home_network/const.pyi +2 -0
- homeassistant-stubs/components/devolo_home_network/entity.pyi +2 -1
- homeassistant-stubs/components/devolo_home_network/image.pyi +32 -0
- homeassistant-stubs/components/devolo_home_network/sensor.pyi +0 -2
- homeassistant-stubs/components/devolo_home_network/switch.pyi +0 -2
- homeassistant-stubs/components/devolo_home_network/update.pyi +40 -0
- homeassistant-stubs/components/dhcp/__init__.pyi +0 -1
- homeassistant-stubs/components/diagnostics/__init__.pyi +0 -2
- homeassistant-stubs/components/dlna_dmr/media_player.pyi +2 -2
- homeassistant-stubs/components/dnsip/sensor.pyi +1 -2
- homeassistant-stubs/components/doorbird/__init__.pyi +25 -0
- homeassistant-stubs/components/doorbird/button.pyi +32 -0
- homeassistant-stubs/components/doorbird/camera.pyi +33 -0
- homeassistant-stubs/components/doorbird/config_flow.pyi +37 -0
- homeassistant-stubs/components/doorbird/const.pyi +19 -0
- homeassistant-stubs/components/doorbird/device.pyi +40 -0
- homeassistant-stubs/components/doorbird/entity.pyi +14 -0
- homeassistant-stubs/components/doorbird/logbook.pyi +8 -0
- homeassistant-stubs/components/doorbird/models.pyi +8 -0
- homeassistant-stubs/components/doorbird/util.pyi +8 -0
- homeassistant-stubs/components/doorbird/view.pyi +14 -0
- homeassistant-stubs/components/dormakaba_dkey/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/dormakaba_dkey/entity.pyi +1 -1
- homeassistant-stubs/components/dormakaba_dkey/models.pyi +0 -1
- homeassistant-stubs/components/dsmr/sensor.pyi +1 -3
- homeassistant-stubs/components/dunehd/media_player.pyi +3 -7
- homeassistant-stubs/components/efergy/__init__.pyi +2 -1
- homeassistant-stubs/components/electrasmart/climate.pyi +1 -1
- homeassistant-stubs/components/electric_kiwi/select.pyi +27 -0
- homeassistant-stubs/components/electric_kiwi/sensor.pyi +1 -3
- homeassistant-stubs/components/elgato/button.pyi +0 -2
- homeassistant-stubs/components/elgato/coordinator.pyi +0 -1
- homeassistant-stubs/components/elgato/entity.pyi +1 -2
- homeassistant-stubs/components/elgato/sensor.pyi +0 -2
- homeassistant-stubs/components/elgato/switch.pyi +0 -2
- homeassistant-stubs/components/elkm1/__init__.pyi +2 -2
- homeassistant-stubs/components/elkm1/climate.pyi +6 -15
- homeassistant-stubs/components/elkm1/sensor.pyi +10 -18
- homeassistant-stubs/components/energy/sensor.pyi +0 -1
- homeassistant-stubs/components/energy/validate.pyi +0 -3
- homeassistant-stubs/components/esphome/bluetooth/cache.pyi +0 -1
- homeassistant-stubs/components/esphome/bluetooth/client.pyi +3 -3
- homeassistant-stubs/components/esphome/bluetooth/device.pyi +0 -1
- homeassistant-stubs/components/esphome/bluetooth/scanner.pyi +2 -0
- homeassistant-stubs/components/esphome/domain_data.pyi +0 -1
- homeassistant-stubs/components/esphome/entity.pyi +2 -1
- homeassistant-stubs/components/esphome/entry_data.pyi +0 -1
- homeassistant-stubs/components/esphome/manager.pyi +1 -1
- homeassistant-stubs/components/esphome/update.pyi +1 -1
- homeassistant-stubs/components/esphome/voice_assistant.pyi +5 -7
- homeassistant-stubs/components/event/__init__.pyi +0 -2
- homeassistant-stubs/components/evil_genius_labs/__init__.pyi +1 -1
- homeassistant-stubs/components/evil_genius_labs/util.pyi +3 -2
- homeassistant-stubs/components/fan/__init__.pyi +0 -1
- homeassistant-stubs/components/feedreader/__init__.pyi +21 -18
- homeassistant-stubs/components/file_upload/__init__.pyi +0 -1
- homeassistant-stubs/components/filesize/__init__.pyi +2 -1
- homeassistant-stubs/components/filesize/coordinator.pyi +12 -0
- homeassistant-stubs/components/filesize/sensor.pyi +3 -8
- homeassistant-stubs/components/filter/sensor.pyi +0 -1
- homeassistant-stubs/components/fitbit/sensor.pyi +0 -1
- homeassistant-stubs/components/flux_led/entity.pyi +2 -1
- homeassistant-stubs/components/forecast_solar/__init__.pyi +2 -1
- homeassistant-stubs/components/forecast_solar/config_flow.pyi +1 -1
- homeassistant-stubs/components/forecast_solar/const.pyi +2 -0
- homeassistant-stubs/components/forecast_solar/coordinator.pyi +1 -1
- homeassistant-stubs/components/forecast_solar/sensor.pyi +1 -3
- homeassistant-stubs/components/fritz/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/fritz/button.pyi +1 -4
- homeassistant-stubs/components/fritz/common.pyi +2 -6
- homeassistant-stubs/components/fritz/sensor.pyi +0 -1
- homeassistant-stubs/components/fritz/switch.pyi +2 -2
- homeassistant-stubs/components/fritzbox/__init__.pyi +3 -2
- homeassistant-stubs/components/fritzbox/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/fritzbox/button.pyi +1 -1
- homeassistant-stubs/components/fritzbox/coordinator.pyi +0 -1
- homeassistant-stubs/components/fritzbox/model.pyi +0 -1
- homeassistant-stubs/components/fritzbox/sensor.pyi +5 -3
- homeassistant-stubs/components/fritzbox_callmonitor/sensor.pyi +1 -1
- homeassistant-stubs/components/fronius/__init__.pyi +1 -1
- homeassistant-stubs/components/fronius/const.pyi +1 -1
- homeassistant-stubs/components/fronius/sensor.pyi +1 -2
- homeassistant-stubs/components/fully_kiosk/button.pyi +0 -2
- homeassistant-stubs/components/fully_kiosk/entity.pyi +2 -2
- homeassistant-stubs/components/fully_kiosk/sensor.pyi +0 -1
- homeassistant-stubs/components/fully_kiosk/switch.pyi +0 -2
- homeassistant-stubs/components/geocaching/sensor.pyi +1 -4
- homeassistant-stubs/components/gios/sensor.pyi +1 -4
- homeassistant-stubs/components/goalzero/entity.pyi +2 -1
- homeassistant-stubs/components/google/calendar.pyi +3 -8
- homeassistant-stubs/components/group/__init__.pyi +4 -1
- homeassistant-stubs/components/group/binary_sensor.pyi +4 -4
- homeassistant-stubs/components/group/config_flow.pyi +22 -7
- homeassistant-stubs/components/group/cover.pyi +6 -9
- homeassistant-stubs/components/group/event.pyi +29 -0
- homeassistant-stubs/components/group/fan.pyi +6 -9
- homeassistant-stubs/components/group/light.pyi +3 -4
- homeassistant-stubs/components/group/lock.pyi +2 -3
- homeassistant-stubs/components/group/media_player.pyi +5 -3
- homeassistant-stubs/components/group/sensor.pyi +2 -3
- homeassistant-stubs/components/group/switch.pyi +2 -3
- homeassistant-stubs/components/guardian/__init__.pyi +2 -4
- homeassistant-stubs/components/guardian/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/guardian/button.pyi +0 -2
- homeassistant-stubs/components/guardian/sensor.pyi +0 -1
- homeassistant-stubs/components/guardian/switch.pyi +0 -2
- homeassistant-stubs/components/guardian/util.pyi +0 -1
- homeassistant-stubs/components/hardware/models.pyi +0 -3
- homeassistant-stubs/components/hardware/websocket_api.pyi +0 -1
- homeassistant-stubs/components/here_travel_time/model.pyi +0 -1
- homeassistant-stubs/components/here_travel_time/sensor.pyi +1 -2
- homeassistant-stubs/components/history/websocket_api.pyi +0 -1
- homeassistant-stubs/components/homeassistant/exposed_entities.pyi +0 -2
- homeassistant-stubs/components/homeassistant_alerts/__init__.pyi +0 -1
- homeassistant-stubs/components/homeassistant_green/__init__.pyi +7 -0
- homeassistant-stubs/components/homeassistant_green/config_flow.pyi +8 -0
- homeassistant-stubs/components/homeassistant_green/const.pyi +1 -0
- homeassistant-stubs/components/homeassistant_green/hardware.pyi +11 -0
- homeassistant-stubs/components/homeassistant_hardware/const.pyi +1 -0
- homeassistant-stubs/components/homeassistant_hardware/silabs_multiprotocol_addon.pyi +29 -13
- homeassistant-stubs/components/homeassistant_sky_connect/hardware.pyi +1 -0
- homeassistant-stubs/components/homeassistant_yellow/hardware.pyi +1 -0
- homeassistant-stubs/components/homekit_controller/button.pyi +0 -1
- homeassistant-stubs/components/homewizard/const.pyi +0 -1
- homeassistant-stubs/components/homewizard/entity.pyi +1 -1
- homeassistant-stubs/components/homewizard/helpers.pyi +3 -2
- homeassistant-stubs/components/homewizard/sensor.pyi +0 -2
- homeassistant-stubs/components/homewizard/switch.pyi +0 -2
- homeassistant-stubs/components/http/__init__.pyi +5 -1
- homeassistant-stubs/components/http/ban.pyi +2 -2
- homeassistant-stubs/components/http/data_validator.pyi +2 -2
- homeassistant-stubs/components/http/decorators.pyi +15 -0
- homeassistant-stubs/components/http/headers.pyi +5 -0
- homeassistant-stubs/components/huawei_lte/__init__.pyi +2 -4
- homeassistant-stubs/components/huawei_lte/binary_sensor.pyi +0 -11
- homeassistant-stubs/components/huawei_lte/device_tracker.pyi +0 -1
- homeassistant-stubs/components/huawei_lte/notify.pyi +0 -1
- homeassistant-stubs/components/huawei_lte/sensor.pyi +0 -4
- homeassistant-stubs/components/huawei_lte/switch.pyi +0 -5
- homeassistant-stubs/components/hyperion/camera.pyi +4 -5
- homeassistant-stubs/components/hyperion/const.pyi +0 -2
- homeassistant-stubs/components/hyperion/light.pyi +3 -5
- homeassistant-stubs/components/hyperion/switch.pyi +5 -6
- homeassistant-stubs/components/ibeacon/entity.pyi +2 -1
- homeassistant-stubs/components/ibeacon/sensor.pyi +0 -2
- homeassistant-stubs/components/image/__init__.pyi +0 -2
- homeassistant-stubs/components/image_processing/__init__.pyi +0 -1
- homeassistant-stubs/components/imap/sensor.pyi +1 -2
- homeassistant-stubs/components/integration/sensor.pyi +1 -2
- homeassistant-stubs/components/ipp/__init__.pyi +11 -0
- homeassistant-stubs/components/ipp/config_flow.pyi +22 -0
- homeassistant-stubs/components/ipp/const.pyi +13 -0
- homeassistant-stubs/components/ipp/coordinator.pyi +15 -0
- homeassistant-stubs/components/ipp/entity.pyi +13 -0
- homeassistant-stubs/components/ipp/sensor.pyi +36 -0
- homeassistant-stubs/components/isy994/__init__.pyi +1 -2
- homeassistant-stubs/components/isy994/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/isy994/button.pyi +2 -1
- homeassistant-stubs/components/isy994/climate.pyi +2 -1
- homeassistant-stubs/components/isy994/cover.pyi +2 -1
- homeassistant-stubs/components/isy994/entity.pyi +2 -1
- homeassistant-stubs/components/isy994/fan.pyi +2 -1
- homeassistant-stubs/components/isy994/helpers.pyi +1 -1
- homeassistant-stubs/components/isy994/light.pyi +2 -1
- homeassistant-stubs/components/isy994/lock.pyi +2 -1
- homeassistant-stubs/components/isy994/models.pyi +1 -2
- homeassistant-stubs/components/isy994/number.pyi +2 -1
- homeassistant-stubs/components/isy994/select.pyi +1 -1
- homeassistant-stubs/components/isy994/sensor.pyi +2 -1
- homeassistant-stubs/components/isy994/switch.pyi +1 -2
- homeassistant-stubs/components/jellyfin/entity.pyi +2 -2
- homeassistant-stubs/components/jellyfin/media_player.pyi +1 -1
- homeassistant-stubs/components/jellyfin/models.pyi +0 -1
- homeassistant-stubs/components/jellyfin/sensor.pyi +0 -2
- homeassistant-stubs/components/jewish_calendar/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/jvc_projector/entity.pyi +1 -1
- homeassistant-stubs/components/kaleidescape/__init__.pyi +0 -1
- homeassistant-stubs/components/kaleidescape/entity.pyi +2 -1
- homeassistant-stubs/components/kaleidescape/sensor.pyi +0 -2
- homeassistant-stubs/components/knx/config_flow.pyi +1 -4
- homeassistant-stubs/components/knx/device.pyi +1 -1
- homeassistant-stubs/components/knx/helpers/keyring.pyi +12 -0
- homeassistant-stubs/components/knx/project.pyi +0 -1
- homeassistant-stubs/components/knx/sensor.pyi +0 -1
- homeassistant-stubs/components/kraken/sensor.pyi +3 -5
- homeassistant-stubs/components/lacrosse_view/sensor.pyi +1 -3
- homeassistant-stubs/components/lametric/button.pyi +0 -2
- homeassistant-stubs/components/lametric/entity.pyi +1 -2
- homeassistant-stubs/components/lametric/helpers.pyi +3 -2
- homeassistant-stubs/components/lametric/number.pyi +0 -2
- homeassistant-stubs/components/lametric/select.pyi +0 -2
- homeassistant-stubs/components/lametric/sensor.pyi +0 -2
- homeassistant-stubs/components/lametric/switch.pyi +0 -2
- homeassistant-stubs/components/laundrify/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/lawn_mower/__init__.pyi +35 -0
- homeassistant-stubs/components/lawn_mower/const.pyi +17 -0
- homeassistant-stubs/components/lcn/__init__.pyi +2 -1
- homeassistant-stubs/components/ld2410_ble/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/ld2410_ble/coordinator.pyi +1 -1
- homeassistant-stubs/components/ld2410_ble/models.pyi +0 -1
- homeassistant-stubs/components/ld2410_ble/sensor.pyi +1 -1
- homeassistant-stubs/components/lidarr/__init__.pyi +2 -2
- homeassistant-stubs/components/lidarr/sensor.pyi +0 -2
- homeassistant-stubs/components/lifx/__init__.pyi +1 -1
- homeassistant-stubs/components/lifx/entity.pyi +1 -1
- homeassistant-stubs/components/lifx/light.pyi +1 -2
- homeassistant-stubs/components/light/__init__.pyi +0 -3
- homeassistant-stubs/components/litejet/config_flow.pyi +2 -1
- homeassistant-stubs/components/litejet/light.pyi +1 -1
- homeassistant-stubs/components/litejet/scene.pyi +1 -1
- homeassistant-stubs/components/litejet/switch.pyi +1 -1
- homeassistant-stubs/components/litterrobot/__init__.pyi +2 -0
- homeassistant-stubs/components/litterrobot/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/litterrobot/button.pyi +0 -2
- homeassistant-stubs/components/litterrobot/entity.pyi +2 -1
- homeassistant-stubs/components/litterrobot/select.pyi +0 -2
- homeassistant-stubs/components/litterrobot/sensor.pyi +0 -1
- homeassistant-stubs/components/litterrobot/switch.pyi +0 -2
- homeassistant-stubs/components/litterrobot/time.pyi +0 -2
- homeassistant-stubs/components/lock/__init__.pyi +0 -1
- homeassistant-stubs/components/logbook/models.pyi +0 -2
- homeassistant-stubs/components/logbook/processor.pyi +0 -1
- homeassistant-stubs/components/logbook/websocket_api.pyi +0 -1
- homeassistant-stubs/components/logger/helpers.pyi +0 -2
- homeassistant-stubs/components/lookin/const.pyi +1 -1
- homeassistant-stubs/components/lookin/entity.pyi +1 -1
- homeassistant-stubs/components/lookin/models.pyi +0 -1
- homeassistant-stubs/components/luftdaten/sensor.pyi +1 -1
- homeassistant-stubs/components/matter/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/matter/entity.pyi +2 -2
- homeassistant-stubs/components/matter/helpers.pyi +0 -1
- homeassistant-stubs/components/matter/models.pyi +0 -2
- homeassistant-stubs/components/matter/sensor.pyi +0 -1
- homeassistant-stubs/components/media_extractor/__init__.pyi +31 -0
- homeassistant-stubs/components/media_player/__init__.pyi +0 -1
- homeassistant-stubs/components/media_source/local_source.pyi +1 -1
- homeassistant-stubs/components/media_source/models.pyi +0 -2
- homeassistant-stubs/components/metoffice/__init__.pyi +1 -1
- homeassistant-stubs/components/metoffice/const.pyi +1 -0
- homeassistant-stubs/components/metoffice/data.pyi +0 -1
- homeassistant-stubs/components/metoffice/sensor.pyi +1 -1
- homeassistant-stubs/components/metoffice/weather.pyi +1 -2
- homeassistant-stubs/components/mjpeg/camera.pyi +1 -1
- homeassistant-stubs/components/modbus/__init__.pyi +2 -2
- homeassistant-stubs/components/modbus/base_platform.pyi +4 -3
- homeassistant-stubs/components/modbus/climate.pyi +4 -3
- homeassistant-stubs/components/modbus/const.pyi +3 -11
- homeassistant-stubs/components/modbus/modbus.pyi +6 -6
- homeassistant-stubs/components/modbus/sensor.pyi +4 -1
- homeassistant-stubs/components/modbus/validators.pyi +1 -0
- homeassistant-stubs/components/modem_callerid/button.pyi +4 -1
- homeassistant-stubs/components/modem_callerid/sensor.pyi +5 -2
- homeassistant-stubs/components/moon/sensor.pyi +1 -3
- homeassistant-stubs/components/mqtt/abbreviations.pyi +1 -0
- homeassistant-stubs/components/mqtt/alarm_control_panel.pyi +2 -3
- homeassistant-stubs/components/mqtt/climate.pyi +4 -1
- homeassistant-stubs/components/mqtt/const.pyi +13 -0
- homeassistant-stubs/components/mqtt/device_tracker.pyi +2 -0
- homeassistant-stubs/components/mqtt/discovery.pyi +6 -4
- homeassistant-stubs/components/mqtt/lawn_mower.pyi +64 -0
- homeassistant-stubs/components/mqtt/mixins.pyi +4 -14
- homeassistant-stubs/components/mqtt/models.pyi +7 -1
- homeassistant-stubs/components/mysensors/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/mysensors/device.pyi +2 -1
- homeassistant-stubs/components/nam/__init__.pyi +1 -1
- homeassistant-stubs/components/nam/config_flow.pyi +0 -1
- homeassistant-stubs/components/nam/sensor.pyi +0 -2
- homeassistant-stubs/components/nanoleaf/__init__.pyi +0 -1
- homeassistant-stubs/components/nanoleaf/entity.pyi +1 -1
- homeassistant-stubs/components/neato/__init__.pyi +1 -0
- homeassistant-stubs/components/neato/button.pyi +18 -0
- homeassistant-stubs/components/neato/camera.pyi +4 -9
- homeassistant-stubs/components/neato/entity.pyi +12 -0
- homeassistant-stubs/components/neato/sensor.pyi +3 -9
- homeassistant-stubs/components/neato/switch.pyi +4 -9
- homeassistant-stubs/components/neato/vacuum.pyi +5 -5
- homeassistant-stubs/components/nest/camera.pyi +6 -4
- homeassistant-stubs/components/nest/climate.pyi +5 -11
- homeassistant-stubs/components/nest/device_info.pyi +1 -1
- homeassistant-stubs/components/nest/media_source.pyi +0 -1
- homeassistant-stubs/components/netatmo/__init__.pyi +1 -0
- homeassistant-stubs/components/netatmo/climate.pyi +1 -1
- homeassistant-stubs/components/netatmo/data_handler.pyi +0 -4
- homeassistant-stubs/components/netatmo/helper.pyi +0 -1
- homeassistant-stubs/components/netatmo/netatmo_entity_base.pyi +2 -1
- homeassistant-stubs/components/netatmo/sensor.pyi +0 -2
- homeassistant-stubs/components/nextdns/__init__.pyi +2 -3
- homeassistant-stubs/components/nextdns/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/nextdns/sensor.pyi +0 -2
- homeassistant-stubs/components/nextdns/switch.pyi +0 -2
- homeassistant-stubs/components/notion/__init__.pyi +2 -2
- homeassistant-stubs/components/notion/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/notion/model.pyi +0 -1
- homeassistant-stubs/components/notion/sensor.pyi +0 -1
- homeassistant-stubs/components/number/__init__.pyi +0 -2
- homeassistant-stubs/components/nut/__init__.pyi +0 -1
- homeassistant-stubs/components/nut/sensor.pyi +1 -1
- homeassistant-stubs/components/oncue/entity.pyi +3 -1
- homeassistant-stubs/components/onewire/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/onewire/model.pyi +1 -2
- homeassistant-stubs/components/onewire/onewire_entities.pyi +2 -2
- homeassistant-stubs/components/onewire/onewirehub.pyi +1 -1
- homeassistant-stubs/components/onewire/sensor.pyi +0 -1
- homeassistant-stubs/components/onewire/switch.pyi +0 -1
- homeassistant-stubs/components/open_meteo/weather.pyi +7 -6
- homeassistant-stubs/components/openexchangerates/sensor.pyi +4 -5
- homeassistant-stubs/components/opensky/__init__.pyi +5 -1
- homeassistant-stubs/components/opensky/config_flow.pyi +10 -3
- homeassistant-stubs/components/opensky/const.pyi +3 -1
- homeassistant-stubs/components/opensky/coordinator.pyi +17 -0
- homeassistant-stubs/components/opensky/sensor.pyi +14 -22
- homeassistant-stubs/components/openuv/config_flow.pyi +0 -1
- homeassistant-stubs/components/otbr/util.pyi +6 -4
- homeassistant-stubs/components/otbr/websocket_api.pyi +0 -1
- homeassistant-stubs/components/overkiz/__init__.pyi +0 -1
- homeassistant-stubs/components/overkiz/alarm_control_panel.pyi +0 -2
- homeassistant-stubs/components/overkiz/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/overkiz/button.pyi +0 -1
- homeassistant-stubs/components/overkiz/entity.pyi +2 -1
- homeassistant-stubs/components/overkiz/number.pyi +0 -2
- homeassistant-stubs/components/overkiz/select.pyi +0 -2
- homeassistant-stubs/components/overkiz/sensor.pyi +1 -2
- homeassistant-stubs/components/overkiz/switch.pyi +0 -2
- homeassistant-stubs/components/peco/__init__.pyi +0 -1
- homeassistant-stubs/components/peco/sensor.pyi +3 -3
- homeassistant-stubs/components/pi_hole/__init__.pyi +1 -1
- homeassistant-stubs/components/pi_hole/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/pi_hole/update.pyi +0 -1
- homeassistant-stubs/components/powerwall/binary_sensor.pyi +4 -5
- homeassistant-stubs/components/powerwall/entity.pyi +2 -1
- homeassistant-stubs/components/powerwall/models.pyi +0 -2
- homeassistant-stubs/components/powerwall/sensor.pyi +4 -6
- homeassistant-stubs/components/powerwall/switch.pyi +1 -2
- homeassistant-stubs/components/prusalink/__init__.pyi +1 -1
- homeassistant-stubs/components/prusalink/button.pyi +0 -2
- homeassistant-stubs/components/prusalink/sensor.pyi +0 -2
- homeassistant-stubs/components/pure_energie/sensor.pyi +1 -3
- homeassistant-stubs/components/purpleair/__init__.pyi +1 -1
- homeassistant-stubs/components/purpleair/config_flow.pyi +0 -1
- homeassistant-stubs/components/purpleair/sensor.pyi +0 -2
- homeassistant-stubs/components/pvoutput/sensor.pyi +1 -3
- homeassistant-stubs/components/qnap_qsw/binary_sensor.pyi +2 -1
- homeassistant-stubs/components/qnap_qsw/button.pyi +1 -3
- homeassistant-stubs/components/qnap_qsw/entity.pyi +3 -3
- homeassistant-stubs/components/qnap_qsw/sensor.pyi +2 -1
- homeassistant-stubs/components/qnap_qsw/update.pyi +0 -1
- homeassistant-stubs/components/radarr/__init__.pyi +2 -2
- homeassistant-stubs/components/radarr/sensor.pyi +0 -2
- homeassistant-stubs/components/rainmachine/__init__.pyi +1 -2
- homeassistant-stubs/components/rainmachine/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/rainmachine/button.pyi +0 -2
- homeassistant-stubs/components/rainmachine/model.pyi +0 -4
- homeassistant-stubs/components/rainmachine/select.pyi +0 -4
- homeassistant-stubs/components/rainmachine/sensor.pyi +0 -2
- homeassistant-stubs/components/rainmachine/switch.pyi +2 -5
- homeassistant-stubs/components/rainmachine/util.pyi +0 -1
- homeassistant-stubs/components/rdw/binary_sensor.pyi +1 -4
- homeassistant-stubs/components/rdw/sensor.pyi +1 -4
- homeassistant-stubs/components/recollect_waste/entity.pyi +1 -2
- homeassistant-stubs/components/recorder/migration.pyi +0 -2
- homeassistant-stubs/components/recorder/models/database.pyi +0 -2
- homeassistant-stubs/components/recorder/statistics.pyi +0 -2
- homeassistant-stubs/components/recorder/table_managers/recorder_runs.pyi +0 -1
- homeassistant-stubs/components/recorder/tasks.pyi +0 -30
- homeassistant-stubs/components/recorder/util.pyi +2 -2
- homeassistant-stubs/components/remote/__init__.pyi +0 -1
- homeassistant-stubs/components/renault/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/renault/button.pyi +0 -2
- homeassistant-stubs/components/renault/entity.pyi +0 -2
- homeassistant-stubs/components/renault/renault_hub.pyi +1 -0
- homeassistant-stubs/components/renault/renault_vehicle.pyi +3 -4
- homeassistant-stubs/components/renault/select.pyi +0 -2
- homeassistant-stubs/components/renault/sensor.pyi +0 -2
- homeassistant-stubs/components/repairs/websocket_api.pyi +1 -0
- homeassistant-stubs/components/rest/binary_sensor.pyi +7 -5
- homeassistant-stubs/components/rest/schema.pyi +1 -1
- homeassistant-stubs/components/rest/sensor.pyi +13 -6
- homeassistant-stubs/components/rest/switch.pyi +6 -5
- homeassistant-stubs/components/rest/util.pyi +7 -0
- homeassistant-stubs/components/rfxtrx/__init__.pyi +2 -1
- homeassistant-stubs/components/rfxtrx/sensor.pyi +0 -1
- homeassistant-stubs/components/ridwell/entity.pyi +1 -2
- homeassistant-stubs/components/ridwell/switch.pyi +0 -1
- homeassistant-stubs/components/rituals_perfume_genie/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/rituals_perfume_genie/entity.pyi +2 -1
- homeassistant-stubs/components/rituals_perfume_genie/number.pyi +0 -2
- homeassistant-stubs/components/rituals_perfume_genie/select.pyi +0 -2
- homeassistant-stubs/components/rituals_perfume_genie/sensor.pyi +0 -2
- homeassistant-stubs/components/rituals_perfume_genie/switch.pyi +0 -2
- homeassistant-stubs/components/roku/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/roku/coordinator.pyi +2 -1
- homeassistant-stubs/components/roku/entity.pyi +4 -6
- homeassistant-stubs/components/roku/helpers.pyi +2 -2
- homeassistant-stubs/components/roku/select.pyi +0 -2
- homeassistant-stubs/components/roku/sensor.pyi +0 -2
- homeassistant-stubs/components/ruuvi_gateway/models.pyi +0 -1
- homeassistant-stubs/components/samsungtv/entity.pyi +2 -1
- homeassistant-stubs/components/scrape/__init__.pyi +1 -1
- homeassistant-stubs/components/scrape/config_flow.pyi +1 -1
- homeassistant-stubs/components/scrape/sensor.pyi +9 -6
- homeassistant-stubs/components/select/__init__.pyi +0 -1
- homeassistant-stubs/components/sensibo/binary_sensor.pyi +0 -4
- homeassistant-stubs/components/sensibo/button.pyi +0 -2
- homeassistant-stubs/components/sensibo/climate.pyi +3 -0
- homeassistant-stubs/components/sensibo/entity.pyi +3 -4
- homeassistant-stubs/components/sensibo/number.pyi +0 -2
- homeassistant-stubs/components/sensibo/select.pyi +0 -2
- homeassistant-stubs/components/sensibo/sensor.pyi +0 -4
- homeassistant-stubs/components/sensibo/switch.pyi +0 -2
- homeassistant-stubs/components/sensibo/update.pyi +0 -2
- homeassistant-stubs/components/sensor/__init__.pyi +0 -2
- homeassistant-stubs/components/senz/climate.pyi +1 -1
- homeassistant-stubs/components/sfr_box/binary_sensor.pyi +1 -3
- homeassistant-stubs/components/sfr_box/button.pyi +3 -5
- homeassistant-stubs/components/sfr_box/models.pyi +0 -1
- homeassistant-stubs/components/sfr_box/sensor.pyi +1 -3
- homeassistant-stubs/components/shelly/__init__.pyi +2 -1
- homeassistant-stubs/components/shelly/binary_sensor.pyi +0 -3
- homeassistant-stubs/components/shelly/button.pyi +1 -4
- homeassistant-stubs/components/shelly/climate.pyi +1 -3
- homeassistant-stubs/components/shelly/const.pyi +1 -0
- homeassistant-stubs/components/shelly/coordinator.pyi +4 -4
- homeassistant-stubs/components/shelly/entity.pyi +2 -6
- homeassistant-stubs/components/shelly/number.pyi +0 -1
- homeassistant-stubs/components/shelly/sensor.pyi +0 -3
- homeassistant-stubs/components/shelly/switch.pyi +20 -2
- homeassistant-stubs/components/shelly/update.pyi +0 -4
- homeassistant-stubs/components/simplisafe/__init__.pyi +1 -1
- homeassistant-stubs/components/simplisafe/button.pyi +0 -2
- homeassistant-stubs/components/skybell/entity.pyi +2 -1
- homeassistant-stubs/components/skybell/sensor.pyi +0 -2
- homeassistant-stubs/components/slack/__init__.pyi +2 -2
- homeassistant-stubs/components/sleepiq/button.pyi +0 -2
- homeassistant-stubs/components/sleepiq/coordinator.pyi +0 -1
- homeassistant-stubs/components/sleepiq/entity.pyi +2 -1
- homeassistant-stubs/components/sleepiq/number.pyi +0 -2
- homeassistant-stubs/components/smhi/weather.pyi +11 -6
- homeassistant-stubs/components/snooz/config_flow.pyi +0 -1
- homeassistant-stubs/components/snooz/fan.pyi +4 -1
- homeassistant-stubs/components/snooz/models.pyi +0 -1
- homeassistant-stubs/components/sonarr/entity.pyi +2 -2
- homeassistant-stubs/components/sonarr/sensor.pyi +0 -2
- homeassistant-stubs/components/speedtestdotnet/sensor.pyi +1 -3
- homeassistant-stubs/components/sql/__init__.pyi +1 -1
- homeassistant-stubs/components/sql/models.pyi +0 -1
- homeassistant-stubs/components/sql/sensor.pyi +7 -9
- homeassistant-stubs/components/ssdp/__init__.pyi +0 -1
- homeassistant-stubs/components/starlink/__init__.pyi +11 -0
- homeassistant-stubs/components/starlink/binary_sensor.pyi +26 -0
- homeassistant-stubs/components/starlink/button.pyi +25 -0
- homeassistant-stubs/components/starlink/config_flow.pyi +12 -0
- homeassistant-stubs/components/starlink/const.pyi +1 -0
- homeassistant-stubs/components/starlink/coordinator.pyi +21 -0
- homeassistant-stubs/components/starlink/device_tracker.pyi +31 -0
- homeassistant-stubs/components/starlink/diagnostics.pyi +11 -0
- homeassistant-stubs/components/starlink/entity.pyi +13 -0
- homeassistant-stubs/components/starlink/sensor.pyi +28 -0
- homeassistant-stubs/components/starlink/switch.pyi +30 -0
- homeassistant-stubs/components/steamist/entity.pyi +2 -1
- homeassistant-stubs/components/steamist/sensor.pyi +0 -2
- homeassistant-stubs/components/stookalert/binary_sensor.pyi +1 -2
- homeassistant-stubs/components/stream/__init__.pyi +1 -1
- homeassistant-stubs/components/stream/core.pyi +4 -2
- homeassistant-stubs/components/sun/sensor.pyi +1 -4
- homeassistant-stubs/components/surepetcare/__init__.pyi +1 -0
- homeassistant-stubs/components/surepetcare/entity.pyi +1 -1
- homeassistant-stubs/components/switch/__init__.pyi +0 -1
- homeassistant-stubs/components/switchbee/entity.pyi +1 -1
- homeassistant-stubs/components/switcher_kis/button.pyi +2 -4
- homeassistant-stubs/components/switcher_kis/climate.pyi +3 -2
- homeassistant-stubs/components/switcher_kis/cover.pyi +3 -2
- homeassistant-stubs/components/switcher_kis/sensor.pyi +7 -20
- homeassistant-stubs/components/switcher_kis/switch.pyi +3 -2
- homeassistant-stubs/components/synology_dsm/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/synology_dsm/button.pyi +1 -3
- homeassistant-stubs/components/synology_dsm/camera.pyi +1 -2
- homeassistant-stubs/components/synology_dsm/entity.pyi +2 -3
- homeassistant-stubs/components/synology_dsm/models.pyi +0 -1
- homeassistant-stubs/components/synology_dsm/sensor.pyi +0 -1
- homeassistant-stubs/components/synology_dsm/switch.pyi +1 -2
- homeassistant-stubs/components/synology_dsm/update.pyi +0 -1
- homeassistant-stubs/components/systemmonitor/sensor.pyi +0 -2
- homeassistant-stubs/components/tailscale/__init__.pyi +2 -2
- homeassistant-stubs/components/tailscale/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/tailscale/sensor.pyi +0 -2
- homeassistant-stubs/components/tautulli/__init__.pyi +2 -2
- homeassistant-stubs/components/tautulli/sensor.pyi +0 -4
- homeassistant-stubs/components/text/__init__.pyi +0 -2
- homeassistant-stubs/components/threshold/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/tibber/sensor.pyi +1 -1
- homeassistant-stubs/components/tile/__init__.pyi +0 -1
- homeassistant-stubs/components/tile/device_tracker.pyi +5 -1
- homeassistant-stubs/components/tolo/__init__.pyi +1 -1
- homeassistant-stubs/components/tolo/number.pyi +0 -2
- homeassistant-stubs/components/tolo/sensor.pyi +0 -2
- homeassistant-stubs/components/tplink/diagnostics.pyi +1 -0
- homeassistant-stubs/components/tplink/entity.pyi +3 -3
- homeassistant-stubs/components/tplink/sensor.pyi +0 -1
- homeassistant-stubs/components/tplink_omada/entity.pyi +1 -1
- homeassistant-stubs/components/tplink_omada/update.pyi +2 -2
- homeassistant-stubs/components/tractive/__init__.pyi +3 -2
- homeassistant-stubs/components/tractive/binary_sensor.pyi +5 -8
- homeassistant-stubs/components/tractive/const.pyi +2 -0
- homeassistant-stubs/components/tractive/device_tracker.pyi +2 -3
- homeassistant-stubs/components/tractive/entity.pyi +13 -4
- homeassistant-stubs/components/tractive/sensor.pyi +11 -24
- homeassistant-stubs/components/tractive/switch.pyi +4 -9
- homeassistant-stubs/components/tradfri/base_class.pyi +1 -1
- homeassistant-stubs/components/tradfri/sensor.pyi +0 -2
- homeassistant-stubs/components/trafikverket_camera/__init__.pyi +13 -0
- homeassistant-stubs/components/trafikverket_camera/camera.pyi +28 -0
- homeassistant-stubs/components/trafikverket_camera/config_flow.pyi +15 -0
- homeassistant-stubs/components/trafikverket_camera/const.pyi +9 -0
- homeassistant-stubs/components/trafikverket_camera/coordinator.pyi +24 -0
- homeassistant-stubs/components/trafikverket_camera/recorder.pyi +5 -0
- homeassistant-stubs/components/trafikverket_ferry/sensor.pyi +1 -4
- homeassistant-stubs/components/trafikverket_train/__init__.pyi +2 -1
- homeassistant-stubs/components/trafikverket_train/config_flow.pyi +13 -4
- homeassistant-stubs/components/trafikverket_train/const.pyi +1 -0
- homeassistant-stubs/components/trafikverket_train/coordinator.pyi +7 -7
- homeassistant-stubs/components/trafikverket_train/sensor.pyi +26 -26
- homeassistant-stubs/components/trafikverket_train/util.pyi +4 -1
- homeassistant-stubs/components/trafikverket_weatherstation/sensor.pyi +1 -4
- homeassistant-stubs/components/tts/models.pyi +0 -1
- homeassistant-stubs/components/twentemilieu/entity.pyi +2 -2
- homeassistant-stubs/components/twentemilieu/sensor.pyi +0 -2
- homeassistant-stubs/components/unifi/button.pyi +30 -0
- homeassistant-stubs/components/unifi/config_flow.pyi +2 -2
- homeassistant-stubs/components/unifi/controller.pyi +10 -14
- homeassistant-stubs/components/unifi/device_tracker.pyi +0 -2
- homeassistant-stubs/components/unifi/entity.pyi +7 -7
- homeassistant-stubs/components/unifi/image.pyi +1 -3
- homeassistant-stubs/components/unifi/sensor.pyi +3 -7
- homeassistant-stubs/components/unifi/switch.pyi +12 -13
- homeassistant-stubs/components/unifi/update.pyi +0 -2
- homeassistant-stubs/components/unifiprotect/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/unifiprotect/button.pyi +0 -1
- homeassistant-stubs/components/unifiprotect/entity.pyi +2 -1
- homeassistant-stubs/components/unifiprotect/models.pyi +0 -4
- homeassistant-stubs/components/unifiprotect/number.pyi +0 -2
- homeassistant-stubs/components/unifiprotect/select.pyi +0 -1
- homeassistant-stubs/components/unifiprotect/sensor.pyi +0 -2
- homeassistant-stubs/components/unifiprotect/switch.pyi +0 -1
- homeassistant-stubs/components/unifiprotect/text.pyi +0 -1
- homeassistant-stubs/components/upcloud/__init__.pyi +1 -3
- homeassistant-stubs/components/update/__init__.pyi +1 -1
- homeassistant-stubs/components/uptime/sensor.pyi +1 -2
- homeassistant-stubs/components/uptimerobot/entity.pyi +2 -2
- homeassistant-stubs/components/usb/__init__.pyi +0 -1
- homeassistant-stubs/components/usb/models.pyi +0 -1
- homeassistant-stubs/components/vacuum/__init__.pyi +0 -2
- homeassistant-stubs/components/vallox/__init__.pyi +1 -2
- homeassistant-stubs/components/vallox/binary_sensor.pyi +0 -2
- homeassistant-stubs/components/vallox/number.pyi +0 -2
- homeassistant-stubs/components/vallox/sensor.pyi +0 -1
- homeassistant-stubs/components/vallox/switch.pyi +0 -2
- homeassistant-stubs/components/velbus/button.pyi +1 -1
- homeassistant-stubs/components/velbus/climate.pyi +1 -1
- homeassistant-stubs/components/velbus/cover.pyi +1 -1
- homeassistant-stubs/components/velbus/entity.pyi +9 -1
- homeassistant-stubs/components/velbus/light.pyi +1 -1
- homeassistant-stubs/components/velbus/select.pyi +1 -1
- homeassistant-stubs/components/velbus/switch.pyi +1 -1
- homeassistant-stubs/components/vlc_telnet/media_player.pyi +3 -4
- homeassistant-stubs/components/wallbox/__init__.pyi +1 -1
- homeassistant-stubs/components/wallbox/number.pyi +0 -1
- homeassistant-stubs/components/wallbox/sensor.pyi +0 -1
- homeassistant-stubs/components/water_heater/__init__.pyi +0 -1
- homeassistant-stubs/components/watttime/sensor.pyi +2 -1
- homeassistant-stubs/components/weather/__init__.pyi +60 -34
- homeassistant-stubs/components/weather/websocket_api.pyi +1 -0
- homeassistant-stubs/components/webostv/media_player.pyi +3 -3
- homeassistant-stubs/components/wemo/entity.pyi +1 -1
- homeassistant-stubs/components/wemo/light.pyi +1 -2
- homeassistant-stubs/components/wemo/models.pyi +0 -2
- homeassistant-stubs/components/wemo/sensor.pyi +0 -1
- homeassistant-stubs/components/wemo/wemo_device.pyi +1 -4
- homeassistant-stubs/components/whois/sensor.pyi +1 -4
- homeassistant-stubs/components/wiz/entity.pyi +2 -2
- homeassistant-stubs/components/wiz/models.pyi +0 -1
- homeassistant-stubs/components/wiz/number.pyi +0 -2
- homeassistant-stubs/components/wled/helpers.pyi +3 -2
- homeassistant-stubs/components/wled/models.pyi +1 -2
- homeassistant-stubs/components/wled/number.pyi +0 -2
- homeassistant-stubs/components/wled/sensor.pyi +0 -2
- homeassistant-stubs/components/yale_smart_alarm/__init__.pyi +4 -1
- homeassistant-stubs/components/yale_smart_alarm/config_flow.pyi +1 -1
- homeassistant-stubs/components/yale_smart_alarm/coordinator.pyi +1 -1
- homeassistant-stubs/components/yale_smart_alarm/entity.pyi +2 -2
- homeassistant-stubs/components/yale_smart_alarm/lock.pyi +1 -1
- homeassistant-stubs/components/yalexs_ble/entity.pyi +2 -1
- homeassistant-stubs/components/yalexs_ble/models.pyi +0 -1
- homeassistant-stubs/components/yalexs_ble/sensor.pyi +0 -2
- homeassistant-stubs/components/zeroconf/__init__.pyi +0 -1
- homeassistant-stubs/components/zodiac/sensor.pyi +1 -2
- homeassistant-stubs/components/zwave_js/__init__.pyi +2 -0
- homeassistant-stubs/components/zwave_js/api.pyi +1 -1
- homeassistant-stubs/components/zwave_js/binary_sensor.pyi +0 -3
- homeassistant-stubs/components/zwave_js/device_action.pyi +2 -2
- homeassistant-stubs/components/zwave_js/device_automation_helpers.pyi +1 -4
- homeassistant-stubs/components/zwave_js/device_condition.pyi +2 -2
- homeassistant-stubs/components/zwave_js/diagnostics.pyi +2 -2
- homeassistant-stubs/components/zwave_js/discovery.pyi +0 -5
- homeassistant-stubs/components/zwave_js/discovery_data_template.pyi +0 -12
- homeassistant-stubs/components/zwave_js/entity.pyi +4 -3
- homeassistant-stubs/components/zwave_js/helpers.pyi +1 -4
- homeassistant-stubs/components/zwave_js/humidifier.pyi +0 -2
- homeassistant-stubs/components/zwave_js/migrate.pyi +0 -1
- homeassistant-stubs/components/zwave_js/repairs.pyi +15 -0
- homeassistant-stubs/components/zwave_js/sensor.pyi +21 -2
- homeassistant-stubs/components/zwave_js/services.pyi +0 -1
- homeassistant-stubs/components/zwave_js/update.pyi +0 -1
- homeassistant-stubs/config_entries.pyi +3 -0
- homeassistant-stubs/const.pyi +2 -0
- homeassistant-stubs/core.pyi +6 -5
- homeassistant-stubs/data_entry_flow.pyi +7 -4
- homeassistant-stubs/exceptions.pyi +0 -4
- homeassistant-stubs/helpers/collection.pyi +0 -1
- homeassistant-stubs/helpers/deprecation.pyi +3 -2
- homeassistant-stubs/helpers/device_registry.pyi +18 -2
- homeassistant-stubs/helpers/entity.pyi +4 -22
- homeassistant-stubs/helpers/entity_registry.pyi +1 -2
- homeassistant-stubs/helpers/event.pyi +5 -7
- homeassistant-stubs/helpers/integration_platform.pyi +0 -1
- homeassistant-stubs/helpers/intent.pyi +0 -1
- homeassistant-stubs/helpers/issue_registry.pyi +3 -3
- homeassistant-stubs/helpers/recorder.pyi +0 -1
- homeassistant-stubs/helpers/schema_config_entry_flow.pyi +6 -7
- homeassistant-stubs/helpers/script.pyi +7 -2
- homeassistant-stubs/helpers/selector.pyi +1 -0
- homeassistant-stubs/helpers/sensor.pyi +1 -1
- homeassistant-stubs/helpers/service.pyi +0 -1
- homeassistant-stubs/helpers/service_info/mqtt.pyi +0 -1
- homeassistant-stubs/helpers/storage.pyi +2 -1
- homeassistant-stubs/helpers/template.pyi +9 -15
- homeassistant-stubs/helpers/trigger.pyi +0 -1
- homeassistant-stubs/helpers/trigger_template_entity.pyi +62 -0
- homeassistant-stubs/helpers/update_coordinator.pyi +7 -1
- homeassistant-stubs/loader.pyi +3 -2
- homeassistant-stubs/runner.pyi +0 -2
- homeassistant-stubs/scripts/check_config.pyi +1 -1
- homeassistant-stubs/util/async_.pyi +2 -2
- homeassistant-stubs/util/language.pyi +0 -2
- homeassistant-stubs/util/pil.pyi +1 -1
- homeassistant-stubs/util/variance.pyi +3 -2
- homeassistant-stubs/util/yaml/objects.pyi +0 -1
- {homeassistant_stubs-2023.8.4.dist-info → homeassistant_stubs-2023.9.0.dist-info}/METADATA +3 -3
- {homeassistant_stubs-2023.8.4.dist-info → homeassistant_stubs-2023.9.0.dist-info}/RECORD +792 -721
- homeassistant-stubs/components/nest/binary_sensor.pyi +0 -7
- homeassistant-stubs/helpers/template_entity.pyi +0 -107
- {homeassistant_stubs-2023.8.4.dist-info → homeassistant_stubs-2023.9.0.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2023.8.4.dist-info → homeassistant_stubs-2023.9.0.dist-info}/WHEEL +0 -0
@@ -1,8 +1,9 @@
|
|
1
1
|
import abc
|
2
2
|
import asyncio
|
3
|
-
from .const import LOGGER as LOGGER, SILABS_MULTIPROTOCOL_ADDON_SLUG as SILABS_MULTIPROTOCOL_ADDON_SLUG
|
3
|
+
from .const import LOGGER as LOGGER, SILABS_FLASHER_ADDON_SLUG as SILABS_FLASHER_ADDON_SLUG, SILABS_MULTIPROTOCOL_ADDON_SLUG as SILABS_MULTIPROTOCOL_ADDON_SLUG
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from abc import ABC, abstractmethod
|
6
|
+
from collections.abc import Awaitable
|
6
7
|
from homeassistant import config_entries as config_entries
|
7
8
|
from homeassistant.components.hassio import AddonError as AddonError, AddonInfo as AddonInfo, AddonManager as AddonManager, AddonState as AddonState, hostname_from_addon_slug as hostname_from_addon_slug, is_hassio as is_hassio
|
8
9
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
@@ -15,11 +16,13 @@ from homeassistant.helpers.storage import Store as Store
|
|
15
16
|
from typing import Any, Protocol
|
16
17
|
|
17
18
|
_LOGGER: Incomplete
|
18
|
-
|
19
|
-
|
20
|
-
|
19
|
+
DATA_MULTIPROTOCOL_ADDON_MANAGER: str
|
20
|
+
DATA_FLASHER_ADDON_MANAGER: str
|
21
|
+
ADDON_STATE_POLL_INTERVAL: int
|
22
|
+
ADDON_INFO_POLL_TIMEOUT: Incomplete
|
21
23
|
CONF_ADDON_AUTOFLASH_FW: str
|
22
24
|
CONF_ADDON_DEVICE: str
|
25
|
+
CONF_DISABLE_MULTI_PAN: str
|
23
26
|
CONF_ENABLE_MULTI_PAN: str
|
24
27
|
DEFAULT_CHANNEL: int
|
25
28
|
DEFAULT_CHANNEL_CHANGE_DELAY: Incomplete
|
@@ -28,9 +31,15 @@ STORAGE_VERSION_MAJOR: int
|
|
28
31
|
STORAGE_VERSION_MINOR: int
|
29
32
|
SAVE_DELAY: int
|
30
33
|
|
31
|
-
async def
|
34
|
+
async def get_multiprotocol_addon_manager(hass: HomeAssistant) -> MultiprotocolAddonManager: ...
|
32
35
|
|
33
|
-
class
|
36
|
+
class WaitingAddonManager(AddonManager):
|
37
|
+
async def async_wait_until_addon_state(self, *states: AddonState) -> None: ...
|
38
|
+
async def async_start_addon_waiting(self) -> None: ...
|
39
|
+
async def async_install_addon_waiting(self) -> None: ...
|
40
|
+
async def async_uninstall_addon_waiting(self) -> None: ...
|
41
|
+
|
42
|
+
class MultiprotocolAddonManager(WaitingAddonManager):
|
34
43
|
_channel: Incomplete
|
35
44
|
_platforms: Incomplete
|
36
45
|
_store: Incomplete
|
@@ -50,12 +59,13 @@ class MultipanProtocol(Protocol):
|
|
50
59
|
async def async_get_channel(self, hass: HomeAssistant) -> int | None: ...
|
51
60
|
async def async_using_multipan(self, hass: HomeAssistant) -> bool: ...
|
52
61
|
|
62
|
+
def get_flasher_addon_manager(hass: HomeAssistant) -> WaitingAddonManager: ...
|
63
|
+
|
53
64
|
class SerialPortSettings:
|
54
65
|
device: str
|
55
66
|
baudrate: str
|
56
67
|
flow_control: bool
|
57
68
|
def __init__(self, device, baudrate, flow_control) -> None: ...
|
58
|
-
def __mypy-replace(*, device, baudrate, flow_control) -> None: ...
|
59
69
|
|
60
70
|
def get_zigbee_socket() -> str: ...
|
61
71
|
def is_multiprotocol_url(url: str) -> bool: ...
|
@@ -63,6 +73,7 @@ def is_multiprotocol_url(url: str) -> bool: ...
|
|
63
73
|
class OptionsFlowHandler(config_entries.OptionsFlow, ABC, metaclass=abc.ABCMeta):
|
64
74
|
install_task: Incomplete
|
65
75
|
start_task: Incomplete
|
76
|
+
stop_task: Incomplete
|
66
77
|
_zha_migration_mgr: Incomplete
|
67
78
|
config_entry: Incomplete
|
68
79
|
original_addon_config: Incomplete
|
@@ -78,9 +89,9 @@ class OptionsFlowHandler(config_entries.OptionsFlow, ABC, metaclass=abc.ABCMeta)
|
|
78
89
|
def _zha_name(self) -> str: ...
|
79
90
|
@property
|
80
91
|
def flow_manager(self) -> config_entries.OptionsFlowManager: ...
|
81
|
-
async def
|
82
|
-
async def
|
83
|
-
async def
|
92
|
+
async def _resume_flow_when_done(self, awaitable: Awaitable) -> None: ...
|
93
|
+
async def _async_get_addon_info(self, addon_manager: AddonManager) -> AddonInfo: ...
|
94
|
+
async def _async_set_addon_config(self, config: dict, addon_manager: AddonManager) -> None: ...
|
84
95
|
async def async_step_init(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
85
96
|
async def async_step_on_supervisor(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
86
97
|
async def async_step_addon_not_installed(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
@@ -89,8 +100,8 @@ class OptionsFlowHandler(config_entries.OptionsFlow, ABC, metaclass=abc.ABCMeta)
|
|
89
100
|
async def async_step_configure_addon(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
90
101
|
async def async_step_start_addon(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
91
102
|
async def async_step_start_failed(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
92
|
-
async def _async_start_addon(self) -> None: ...
|
93
103
|
async def async_step_finish_addon_setup(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
104
|
+
async def async_step_addon_installed_other_device(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
94
105
|
async def async_step_addon_installed(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
95
106
|
async def async_step_show_addon_menu(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
96
107
|
async def async_step_reconfigure_addon(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
@@ -98,8 +109,13 @@ class OptionsFlowHandler(config_entries.OptionsFlow, ABC, metaclass=abc.ABCMeta)
|
|
98
109
|
async def async_step_change_channel(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
99
110
|
async def async_step_notify_channel_change(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
100
111
|
async def async_step_uninstall_addon(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
101
|
-
async def
|
102
|
-
async def
|
112
|
+
async def async_step_firmware_revert(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
113
|
+
async def async_step_install_flasher_addon(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
114
|
+
async def async_step_configure_flasher_addon(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
115
|
+
async def async_step_uninstall_multiprotocol_addon(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
116
|
+
async def async_step_start_flasher_addon(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
117
|
+
async def async_step_flasher_failed(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
118
|
+
async def async_step_flashing_complete(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
|
103
119
|
|
104
120
|
async def check_multi_pan_addon(hass: HomeAssistant) -> None: ...
|
105
121
|
async def multi_pan_addon_using_device(hass: HomeAssistant, device_path: str) -> bool: ...
|
@@ -2,6 +2,7 @@ from .const import DOMAIN as DOMAIN
|
|
2
2
|
from homeassistant.components.hardware.models import HardwareInfo as HardwareInfo, USBInfo as USBInfo
|
3
3
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
4
4
|
|
5
|
+
DOCUMENTATION_URL: str
|
5
6
|
DONGLE_NAME: str
|
6
7
|
|
7
8
|
def async_info(hass: HomeAssistant) -> list[HardwareInfo]: ...
|
@@ -15,7 +15,6 @@ _LOGGER: Incomplete
|
|
15
15
|
class HomeKitButtonEntityDescription(ButtonEntityDescription):
|
16
16
|
write_value: int | str | None
|
17
17
|
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, unit_of_measurement, write_value) -> None: ...
|
18
|
-
def __mypy-replace(*, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, write_value) -> None: ...
|
19
18
|
|
20
19
|
BUTTON_ENTITIES: dict[str, HomeKitButtonEntityDescription]
|
21
20
|
|
@@ -2,7 +2,7 @@ from .const import DOMAIN as DOMAIN
|
|
2
2
|
from .coordinator import HWEnergyDeviceUpdateCoordinator as HWEnergyDeviceUpdateCoordinator
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from homeassistant.const import ATTR_IDENTIFIERS as ATTR_IDENTIFIERS
|
5
|
-
from homeassistant.helpers.
|
5
|
+
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
6
6
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
|
7
7
|
|
8
8
|
class HomeWizardEntity(CoordinatorEntity[HWEnergyDeviceUpdateCoordinator]):
|
@@ -1,9 +1,10 @@
|
|
1
1
|
from .entity import HomeWizardEntity as HomeWizardEntity
|
2
|
+
from _typeshed import Incomplete
|
2
3
|
from collections.abc import Callable as Callable, Coroutine
|
3
4
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
4
|
-
from typing import Any, Concatenate,
|
5
|
+
from typing import Any, Concatenate, TypeVar
|
5
6
|
|
6
7
|
_HomeWizardEntityT = TypeVar('_HomeWizardEntityT', bound=HomeWizardEntity)
|
7
|
-
_P
|
8
|
+
_P: Incomplete
|
8
9
|
|
9
10
|
def homewizard_exception_handler(func: Callable[Concatenate[_HomeWizardEntityT, _P], Coroutine[Any, Any, Any]]) -> Callable[Concatenate[_HomeWizardEntityT, _P], Coroutine[Any, Any, None]]: ...
|
@@ -17,12 +17,10 @@ class HomeWizardEntityDescriptionMixin:
|
|
17
17
|
has_fn: Callable[[Data], bool]
|
18
18
|
value_fn: Callable[[Data], float | int | str | None]
|
19
19
|
def __init__(self, has_fn, value_fn) -> None: ...
|
20
|
-
def __mypy-replace(*, has_fn, value_fn) -> None: ...
|
21
20
|
|
22
21
|
class HomeWizardSensorEntityDescription(SensorEntityDescription, HomeWizardEntityDescriptionMixin):
|
23
22
|
enabled_fn: Callable[[Data], bool]
|
24
23
|
def __init__(self, has_fn, value_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement, enabled_fn) -> None: ...
|
25
|
-
def __mypy-replace(*, has_fn, value_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement, enabled_fn) -> None: ...
|
26
24
|
|
27
25
|
SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]]
|
28
26
|
|
@@ -18,12 +18,10 @@ class HomeWizardEntityDescriptionMixin:
|
|
18
18
|
is_on_fn: Callable[[DeviceResponseEntry], bool | None]
|
19
19
|
set_fn: Callable[[HomeWizardEnergy, bool], Awaitable[Any]]
|
20
20
|
def __init__(self, create_fn, available_fn, is_on_fn, set_fn) -> None: ...
|
21
|
-
def __mypy-replace(*, create_fn, available_fn, is_on_fn, set_fn) -> None: ...
|
22
21
|
|
23
22
|
class HomeWizardSwitchEntityDescription(SwitchEntityDescription, HomeWizardEntityDescriptionMixin):
|
24
23
|
icon_off: str | None
|
25
24
|
def __init__(self, create_fn, available_fn, is_on_fn, set_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, icon_off) -> None: ...
|
26
|
-
def __mypy-replace(*, create_fn, available_fn, is_on_fn, set_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, icon_off) -> None: ...
|
27
25
|
|
28
26
|
SWITCHES: Incomplete
|
29
27
|
|
@@ -4,7 +4,9 @@ from .auth import async_setup_auth as async_setup_auth
|
|
4
4
|
from .ban import setup_bans as setup_bans
|
5
5
|
from .const import KEY_AUTHENTICATED as KEY_AUTHENTICATED, KEY_HASS as KEY_HASS, KEY_HASS_REFRESH_TOKEN_ID as KEY_HASS_REFRESH_TOKEN_ID, KEY_HASS_USER as KEY_HASS_USER
|
6
6
|
from .cors import setup_cors as setup_cors
|
7
|
+
from .decorators import require_admin as require_admin
|
7
8
|
from .forwarded import async_setup_forwarded as async_setup_forwarded
|
9
|
+
from .headers import setup_headers as setup_headers
|
8
10
|
from .request_context import current_request as current_request, setup_request_context as setup_request_context
|
9
11
|
from .security_filter import setup_security_filter as setup_security_filter
|
10
12
|
from .static import CACHE_HEADERS as CACHE_HEADERS, CachingStaticResource as CachingStaticResource
|
@@ -42,6 +44,7 @@ CONF_SSL_PEER_CERTIFICATE: Final[str]
|
|
42
44
|
CONF_SSL_KEY: Final[str]
|
43
45
|
CONF_CORS_ORIGINS: Final[str]
|
44
46
|
CONF_USE_X_FORWARDED_FOR: Final[str]
|
47
|
+
CONF_USE_X_FRAME_OPTIONS: Final[str]
|
45
48
|
CONF_TRUSTED_PROXIES: Final[str]
|
46
49
|
CONF_LOGIN_ATTEMPTS_THRESHOLD: Final[str]
|
47
50
|
CONF_IP_BAN_ENABLED: Final[str]
|
@@ -69,6 +72,7 @@ class ConfData(TypedDict, total=False):
|
|
69
72
|
ssl_key: str
|
70
73
|
cors_allowed_origins: list[str]
|
71
74
|
use_x_forwarded_for: bool
|
75
|
+
use_x_frame_options: bool
|
72
76
|
trusted_proxies: list[IPv4Network | IPv6Network]
|
73
77
|
login_attempts_threshold: int
|
74
78
|
ip_ban_enabled: bool
|
@@ -108,7 +112,7 @@ class HomeAssistantHTTP:
|
|
108
112
|
site: Incomplete
|
109
113
|
context: Incomplete
|
110
114
|
def __init__(self, hass: HomeAssistant, ssl_certificate: str | None, ssl_peer_certificate: str | None, ssl_key: str | None, server_host: list[str] | None, server_port: int, trusted_proxies: list[IPv4Network | IPv6Network], ssl_profile: str) -> None: ...
|
111
|
-
async def async_initialize(self, *, cors_origins: list[str], use_x_forwarded_for: bool, login_threshold: int, is_ban_enabled: bool) -> None: ...
|
115
|
+
async def async_initialize(self, *, cors_origins: list[str], use_x_forwarded_for: bool, login_threshold: int, is_ban_enabled: bool, use_x_frame_options: bool) -> None: ...
|
112
116
|
def register_view(self, view: HomeAssistantView | type[HomeAssistantView]) -> None: ...
|
113
117
|
def register_redirect(self, url: str, redirect_to: StrOrURL, *, redirect_exc: type[HTTPRedirection] = ...) -> None: ...
|
114
118
|
def register_static_path(self, url_path: str, path: str, cache_headers: bool = ...) -> None: ...
|
@@ -9,10 +9,10 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
|
|
9
9
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
10
10
|
from homeassistant.util import yaml as yaml
|
11
11
|
from ipaddress import IPv4Address, IPv6Address
|
12
|
-
from typing import Any, Concatenate, Final,
|
12
|
+
from typing import Any, Concatenate, Final, TypeVar
|
13
13
|
|
14
14
|
_HassViewT = TypeVar('_HassViewT', bound=HomeAssistantView)
|
15
|
-
_P
|
15
|
+
_P: Incomplete
|
16
16
|
_LOGGER: Final[Incomplete]
|
17
17
|
KEY_BAN_MANAGER: Final[str]
|
18
18
|
KEY_FAILED_LOGIN_ATTEMPTS: Final[str]
|
@@ -3,10 +3,10 @@ from .view import HomeAssistantView as HomeAssistantView
|
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from aiohttp import web as web
|
5
5
|
from collections.abc import Awaitable, Callable as Callable, Coroutine
|
6
|
-
from typing import Any, Concatenate,
|
6
|
+
from typing import Any, Concatenate, TypeVar
|
7
7
|
|
8
8
|
_HassViewT = TypeVar('_HassViewT', bound=HomeAssistantView)
|
9
|
-
_P
|
9
|
+
_P: Incomplete
|
10
10
|
_LOGGER: Incomplete
|
11
11
|
|
12
12
|
class RequestDataValidator:
|
@@ -0,0 +1,15 @@
|
|
1
|
+
from .view import HomeAssistantView as HomeAssistantView
|
2
|
+
from _typeshed import Incomplete
|
3
|
+
from collections.abc import Callable
|
4
|
+
from homeassistant.exceptions import Unauthorized as Unauthorized
|
5
|
+
from typing import TypeVar, overload
|
6
|
+
|
7
|
+
_HomeAssistantViewT = TypeVar('_HomeAssistantViewT', bound=HomeAssistantView)
|
8
|
+
_P: Incomplete
|
9
|
+
_FuncType: Incomplete
|
10
|
+
|
11
|
+
|
12
|
+
@overload
|
13
|
+
def require_admin(_func: None = ..., *, error: Unauthorized | None = ...) -> Callable[[_FuncType[_HomeAssistantViewT, _P]], _FuncType[_HomeAssistantViewT, _P]]: ...
|
14
|
+
@overload
|
15
|
+
def require_admin(_func: _FuncType[_HomeAssistantViewT, _P]) -> _FuncType[_HomeAssistantViewT, _P]: ...
|
@@ -0,0 +1,5 @@
|
|
1
|
+
from aiohttp.web import Application as Application, Request as Request, StreamResponse as StreamResponse
|
2
|
+
from collections.abc import Callable as Callable
|
3
|
+
from homeassistant.core import callback as callback
|
4
|
+
|
5
|
+
def setup_headers(app: Application, use_x_frame_options: bool) -> None: ...
|
@@ -7,8 +7,9 @@ from homeassistant.const import ATTR_HW_VERSION as ATTR_HW_VERSION, ATTR_MODEL a
|
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, ServiceCall as ServiceCall
|
8
8
|
from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed, ConfigEntryNotReady as ConfigEntryNotReady
|
9
9
|
from homeassistant.helpers import discovery as discovery
|
10
|
+
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
10
11
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, dispatcher_send as dispatcher_send
|
11
|
-
from homeassistant.helpers.entity import
|
12
|
+
from homeassistant.helpers.entity import Entity as Entity
|
12
13
|
from homeassistant.helpers.event import async_track_time_interval as async_track_time_interval
|
13
14
|
from homeassistant.helpers.service import async_register_admin_service as async_register_admin_service
|
14
15
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
@@ -46,8 +47,6 @@ class Router:
|
|
46
47
|
def logout(self) -> None: ...
|
47
48
|
def cleanup(self, *_: Any) -> None: ...
|
48
49
|
def __init__(self, hass, config_entry, connection, url) -> None: ...
|
49
|
-
def __mypy-replace(*, hass, config_entry, connection, url, data, subscriptions, inflight_gets, client, suspended, notify_last_attempt) -> None: ...
|
50
|
-
def __mypy-post_init(self) -> None: ...
|
51
50
|
|
52
51
|
class HuaweiLteData(NamedTuple):
|
53
52
|
hass_config: ConfigType
|
@@ -75,7 +74,6 @@ class HuaweiLteBaseEntity(Entity):
|
|
75
74
|
async def _async_maybe_update(self, config_entry_unique_id: str) -> None: ...
|
76
75
|
async def async_will_remove_from_hass(self) -> None: ...
|
77
76
|
def __init__(self, router) -> None: ...
|
78
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name) -> None: ...
|
79
77
|
|
80
78
|
class HuaweiLteBaseEntityWithDevice(HuaweiLteBaseEntity):
|
81
79
|
@property
|
@@ -25,7 +25,6 @@ class HuaweiLteBaseBinarySensor(HuaweiLteBaseEntityWithDevice, BinarySensorEntit
|
|
25
25
|
_available: bool
|
26
26
|
async def async_update(self) -> None: ...
|
27
27
|
def __init__(self, router) -> None: ...
|
28
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _raw_state) -> None: ...
|
29
28
|
|
30
29
|
CONNECTION_STATE_ATTRIBUTES: Incomplete
|
31
30
|
|
@@ -45,8 +44,6 @@ class HuaweiLteMobileConnectionBinarySensor(HuaweiLteBaseBinarySensor):
|
|
45
44
|
@property
|
46
45
|
def extra_state_attributes(self) -> dict[str, Any] | None: ...
|
47
46
|
def __init__(self, router) -> None: ...
|
48
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _raw_state, _attr_name) -> None: ...
|
49
|
-
def __mypy-post_init(self) -> None: ...
|
50
47
|
|
51
48
|
class HuaweiLteBaseWifiStatusBinarySensor(HuaweiLteBaseBinarySensor):
|
52
49
|
@property
|
@@ -62,8 +59,6 @@ class HuaweiLteWifiStatusBinarySensor(HuaweiLteBaseWifiStatusBinarySensor):
|
|
62
59
|
item: str
|
63
60
|
def __post_init__(self) -> None: ...
|
64
61
|
def __init__(self, router) -> None: ...
|
65
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _raw_state, _attr_name) -> None: ...
|
66
|
-
def __mypy-post_init(self) -> None: ...
|
67
62
|
|
68
63
|
class HuaweiLteWifi24ghzStatusBinarySensor(HuaweiLteBaseWifiStatusBinarySensor):
|
69
64
|
_attr_name: str
|
@@ -71,8 +66,6 @@ class HuaweiLteWifi24ghzStatusBinarySensor(HuaweiLteBaseWifiStatusBinarySensor):
|
|
71
66
|
item: str
|
72
67
|
def __post_init__(self) -> None: ...
|
73
68
|
def __init__(self, router) -> None: ...
|
74
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _raw_state, _attr_name) -> None: ...
|
75
|
-
def __mypy-post_init(self) -> None: ...
|
76
69
|
|
77
70
|
class HuaweiLteWifi5ghzStatusBinarySensor(HuaweiLteBaseWifiStatusBinarySensor):
|
78
71
|
_attr_name: str
|
@@ -80,8 +73,6 @@ class HuaweiLteWifi5ghzStatusBinarySensor(HuaweiLteBaseWifiStatusBinarySensor):
|
|
80
73
|
item: str
|
81
74
|
def __post_init__(self) -> None: ...
|
82
75
|
def __init__(self, router) -> None: ...
|
83
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _raw_state, _attr_name) -> None: ...
|
84
|
-
def __mypy-post_init(self) -> None: ...
|
85
76
|
|
86
77
|
class HuaweiLteSmsStorageFullBinarySensor(HuaweiLteBaseBinarySensor):
|
87
78
|
_attr_name: str
|
@@ -95,5 +86,3 @@ class HuaweiLteSmsStorageFullBinarySensor(HuaweiLteBaseBinarySensor):
|
|
95
86
|
@property
|
96
87
|
def icon(self) -> str: ...
|
97
88
|
def __init__(self, router) -> None: ...
|
98
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _raw_state, _attr_name) -> None: ...
|
99
|
-
def __mypy-post_init(self) -> None: ...
|
@@ -46,4 +46,3 @@ class HuaweiLteScannerEntity(HuaweiLteBaseEntity, ScannerEntity):
|
|
46
46
|
_available: bool
|
47
47
|
async def async_update(self) -> None: ...
|
48
48
|
def __init__(self, router, _mac_address) -> None: ...
|
49
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, _mac_address, _ip_address, _is_connected, _hostname, _extra_state_attributes) -> None: ...
|
@@ -16,4 +16,3 @@ class HuaweiLteSmsNotificationService(BaseNotificationService):
|
|
16
16
|
default_targets: list[str]
|
17
17
|
def send_message(self, message: str = ..., **kwargs: Any) -> None: ...
|
18
18
|
def __init__(self, router, default_targets) -> None: ...
|
19
|
-
def __mypy-replace(*, router, default_targets) -> None: ...
|
@@ -25,7 +25,6 @@ class HuaweiSensorGroup:
|
|
25
25
|
include: re.Pattern[str] | None
|
26
26
|
exclude: re.Pattern[str] | None
|
27
27
|
def __init__(self, descriptions, include, exclude) -> None: ...
|
28
|
-
def __mypy-replace(*, descriptions, include, exclude) -> None: ...
|
29
28
|
|
30
29
|
class HuaweiSensorEntityDescription(SensorEntityDescription):
|
31
30
|
name: str
|
@@ -35,7 +34,6 @@ class HuaweiSensorEntityDescription(SensorEntityDescription):
|
|
35
34
|
last_reset_item: str | None
|
36
35
|
last_reset_format_fn: Callable[[str | None], datetime | None] | None
|
37
36
|
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, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement, format_fn, icon_fn, device_class_fn, last_reset_item, last_reset_format_fn) -> None: ...
|
38
|
-
def __mypy-replace(*, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement, format_fn, icon_fn, device_class_fn, last_reset_item, last_reset_format_fn) -> None: ...
|
39
37
|
|
40
38
|
SENSOR_META: dict[str, HuaweiSensorGroup]
|
41
39
|
|
@@ -67,5 +65,3 @@ class HuaweiLteSensor(HuaweiLteBaseEntityWithDevice, SensorEntity):
|
|
67
65
|
_available: Incomplete
|
68
66
|
async def async_update(self) -> None: ...
|
69
67
|
def __init__(self, router, key, item, entity_description) -> None: ...
|
70
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, entity_description, _state, _unit, _last_reset) -> None: ...
|
71
|
-
def __mypy-post_init(self) -> None: ...
|
@@ -25,7 +25,6 @@ class HuaweiLteBaseSwitch(HuaweiLteBaseEntityWithDevice, SwitchEntity):
|
|
25
25
|
_available: bool
|
26
26
|
async def async_update(self) -> None: ...
|
27
27
|
def __init__(self, router) -> None: ...
|
28
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _attr_device_class, _raw_state) -> None: ...
|
29
28
|
|
30
29
|
class HuaweiLteMobileDataSwitch(HuaweiLteBaseSwitch):
|
31
30
|
_attr_name: str
|
@@ -41,8 +40,6 @@ class HuaweiLteMobileDataSwitch(HuaweiLteBaseSwitch):
|
|
41
40
|
@property
|
42
41
|
def icon(self) -> str: ...
|
43
42
|
def __init__(self, router) -> None: ...
|
44
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _attr_device_class, _raw_state, _attr_name) -> None: ...
|
45
|
-
def __mypy-post_init(self) -> None: ...
|
46
43
|
|
47
44
|
class HuaweiLteWifiGuestNetworkSwitch(HuaweiLteBaseSwitch):
|
48
45
|
_attr_name: str
|
@@ -60,5 +57,3 @@ class HuaweiLteWifiGuestNetworkSwitch(HuaweiLteBaseSwitch):
|
|
60
57
|
@property
|
61
58
|
def extra_state_attributes(self) -> dict[str, str | None]: ...
|
62
59
|
def __init__(self, router) -> None: ...
|
63
|
-
def __mypy-replace(*, router, _available, _unsub_handlers, _attr_has_entity_name, key, item, _attr_device_class, _raw_state, _attr_name) -> None: ...
|
64
|
-
def __mypy-post_init(self) -> None: ...
|
@@ -1,13 +1,13 @@
|
|
1
1
|
from . import get_hyperion_device_id as get_hyperion_device_id, get_hyperion_unique_id as get_hyperion_unique_id, listen_for_instance_updates as listen_for_instance_updates
|
2
|
-
from .const import CONF_INSTANCE_CLIENTS as CONF_INSTANCE_CLIENTS, DOMAIN as DOMAIN, HYPERION_MANUFACTURER_NAME as HYPERION_MANUFACTURER_NAME, HYPERION_MODEL_NAME as HYPERION_MODEL_NAME,
|
2
|
+
from .const import CONF_INSTANCE_CLIENTS as CONF_INSTANCE_CLIENTS, DOMAIN as DOMAIN, HYPERION_MANUFACTURER_NAME as HYPERION_MANUFACTURER_NAME, HYPERION_MODEL_NAME as HYPERION_MODEL_NAME, SIGNAL_ENTITY_REMOVE as SIGNAL_ENTITY_REMOVE, TYPE_HYPERION_CAMERA as TYPE_HYPERION_CAMERA
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from aiohttp import web as web
|
5
5
|
from collections.abc import AsyncGenerator
|
6
6
|
from homeassistant.components.camera import Camera as Camera, DEFAULT_CONTENT_TYPE as DEFAULT_CONTENT_TYPE, async_get_still_stream as async_get_still_stream
|
7
7
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
8
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
9
|
+
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
9
10
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, async_dispatcher_send as async_dispatcher_send
|
10
|
-
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
11
11
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
12
12
|
from hyperion import client as client
|
13
13
|
from typing import Any
|
@@ -17,8 +17,9 @@ IMAGE_STREAM_JPG_SENTINEL: str
|
|
17
17
|
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
18
18
|
|
19
19
|
class HyperionCamera(Camera):
|
20
|
+
_attr_has_entity_name: bool
|
21
|
+
_attr_name: Incomplete
|
20
22
|
_unique_id: Incomplete
|
21
|
-
_name: Incomplete
|
22
23
|
_device_id: Incomplete
|
23
24
|
_instance_name: Incomplete
|
24
25
|
_client: Incomplete
|
@@ -30,8 +31,6 @@ class HyperionCamera(Camera):
|
|
30
31
|
@property
|
31
32
|
def unique_id(self) -> str: ...
|
32
33
|
@property
|
33
|
-
def name(self) -> str: ...
|
34
|
-
@property
|
35
34
|
def is_on(self) -> bool: ...
|
36
35
|
@property
|
37
36
|
def available(self) -> bool: ...
|
@@ -17,8 +17,6 @@ HYPERION_MANUFACTURER_NAME: str
|
|
17
17
|
HYPERION_MODEL_NAME: Incomplete
|
18
18
|
HYPERION_RELEASES_URL: str
|
19
19
|
HYPERION_VERSION_WARN_CUTOFF: str
|
20
|
-
NAME_SUFFIX_HYPERION_COMPONENT_SWITCH: str
|
21
|
-
NAME_SUFFIX_HYPERION_CAMERA: str
|
22
20
|
SIGNAL_INSTANCE_ADD: Incomplete
|
23
21
|
SIGNAL_INSTANCE_REMOVE: Incomplete
|
24
22
|
SIGNAL_ENTITY_REMOVE: Incomplete
|
@@ -5,8 +5,8 @@ from collections.abc import Callable as Callable, Sequence
|
|
5
5
|
from homeassistant.components.light import ATTR_BRIGHTNESS as ATTR_BRIGHTNESS, ATTR_EFFECT as ATTR_EFFECT, ATTR_HS_COLOR as ATTR_HS_COLOR, ColorMode as ColorMode, LightEntity as LightEntity, LightEntityFeature as LightEntityFeature
|
6
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
|
+
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
8
9
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, async_dispatcher_send as async_dispatcher_send
|
9
|
-
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
10
10
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
11
11
|
from hyperion import client as client
|
12
12
|
from types import MappingProxyType
|
@@ -30,12 +30,13 @@ ICON_EFFECT: str
|
|
30
30
|
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
31
31
|
|
32
32
|
class HyperionLight(LightEntity):
|
33
|
+
_attr_has_entity_name: bool
|
34
|
+
_attr_name: Incomplete
|
33
35
|
_attr_color_mode: Incomplete
|
34
36
|
_attr_should_poll: bool
|
35
37
|
_attr_supported_color_modes: Incomplete
|
36
38
|
_attr_supported_features: Incomplete
|
37
39
|
_unique_id: Incomplete
|
38
|
-
_name: Incomplete
|
39
40
|
_device_id: Incomplete
|
40
41
|
_instance_name: Incomplete
|
41
42
|
_options: Incomplete
|
@@ -48,12 +49,9 @@ class HyperionLight(LightEntity):
|
|
48
49
|
_client_callbacks: Incomplete
|
49
50
|
def __init__(self, server_id: str, instance_num: int, instance_name: str, options: MappingProxyType[str, Any], hyperion_client: client.HyperionClient) -> None: ...
|
50
51
|
def _compute_unique_id(self, server_id: str, instance_num: int) -> str: ...
|
51
|
-
def _compute_name(self, instance_name: str) -> str: ...
|
52
52
|
@property
|
53
53
|
def entity_registry_enabled_default(self) -> bool: ...
|
54
54
|
@property
|
55
|
-
def name(self) -> str: ...
|
56
|
-
@property
|
57
55
|
def brightness(self) -> int: ...
|
58
56
|
@property
|
59
57
|
def hs_color(self) -> tuple[float, float]: ...
|
@@ -1,12 +1,12 @@
|
|
1
1
|
from . import get_hyperion_device_id as get_hyperion_device_id, get_hyperion_unique_id as get_hyperion_unique_id, listen_for_instance_updates as listen_for_instance_updates
|
2
|
-
from .const import CONF_INSTANCE_CLIENTS as CONF_INSTANCE_CLIENTS, DOMAIN as DOMAIN, HYPERION_MANUFACTURER_NAME as HYPERION_MANUFACTURER_NAME, HYPERION_MODEL_NAME as HYPERION_MODEL_NAME,
|
2
|
+
from .const import CONF_INSTANCE_CLIENTS as CONF_INSTANCE_CLIENTS, DOMAIN as DOMAIN, HYPERION_MANUFACTURER_NAME as HYPERION_MANUFACTURER_NAME, HYPERION_MODEL_NAME as HYPERION_MODEL_NAME, SIGNAL_ENTITY_REMOVE as SIGNAL_ENTITY_REMOVE, TYPE_HYPERION_COMPONENT_SWITCH_BASE as TYPE_HYPERION_COMPONENT_SWITCH_BASE
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from homeassistant.components.switch import SwitchEntity as SwitchEntity
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.const import EntityCategory as EntityCategory
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
|
+
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
8
9
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, async_dispatcher_send as async_dispatcher_send
|
9
|
-
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
10
10
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
11
11
|
from homeassistant.util import slugify as slugify
|
12
12
|
from hyperion import client as client
|
@@ -15,15 +15,16 @@ from typing import Any
|
|
15
15
|
COMPONENT_SWITCHES: Incomplete
|
16
16
|
|
17
17
|
def _component_to_unique_id(server_id: str, component: str, instance_num: int) -> str: ...
|
18
|
-
def
|
18
|
+
def _component_to_translation_key(component: str) -> str: ...
|
19
19
|
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
20
20
|
|
21
21
|
class HyperionComponentSwitch(SwitchEntity):
|
22
22
|
_attr_entity_category: Incomplete
|
23
23
|
_attr_should_poll: bool
|
24
|
+
_attr_has_entity_name: bool
|
24
25
|
_unique_id: Incomplete
|
25
26
|
_device_id: Incomplete
|
26
|
-
|
27
|
+
_attr_translation_key: Incomplete
|
27
28
|
_instance_name: Incomplete
|
28
29
|
_component_name: Incomplete
|
29
30
|
_client: Incomplete
|
@@ -34,8 +35,6 @@ class HyperionComponentSwitch(SwitchEntity):
|
|
34
35
|
@property
|
35
36
|
def unique_id(self) -> str: ...
|
36
37
|
@property
|
37
|
-
def name(self) -> str: ...
|
38
|
-
@property
|
39
38
|
def is_on(self) -> bool: ...
|
40
39
|
@property
|
41
40
|
def available(self) -> bool: ...
|
@@ -4,8 +4,9 @@ from .coordinator import IBeaconCoordinator as IBeaconCoordinator, signal_seen a
|
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from abc import abstractmethod
|
6
6
|
from homeassistant.core import callback as callback
|
7
|
+
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
7
8
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
8
|
-
from homeassistant.helpers.entity import
|
9
|
+
from homeassistant.helpers.entity import Entity as Entity
|
9
10
|
from ibeacon_ble import iBeaconAdvertisement as iBeaconAdvertisement
|
10
11
|
|
11
12
|
class IBeaconEntity(Entity, metaclass=abc.ABCMeta):
|
@@ -14,11 +14,9 @@ from ibeacon_ble import iBeaconAdvertisement as iBeaconAdvertisement
|
|
14
14
|
class IBeaconRequiredKeysMixin:
|
15
15
|
value_fn: Callable[[iBeaconAdvertisement], str | int | None]
|
16
16
|
def __init__(self, value_fn) -> None: ...
|
17
|
-
def __mypy-replace(*, value_fn) -> None: ...
|
18
17
|
|
19
18
|
class IBeaconSensorEntityDescription(SensorEntityDescription, IBeaconRequiredKeysMixin):
|
20
19
|
def __init__(self, value_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement) -> None: ...
|
21
|
-
def __mypy-replace(*, value_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, last_reset, native_unit_of_measurement, options, state_class, suggested_display_precision, suggested_unit_of_measurement) -> None: ...
|
22
20
|
|
23
21
|
SENSOR_DESCRIPTIONS: Incomplete
|
24
22
|
|
@@ -27,13 +27,11 @@ GET_IMAGE_TIMEOUT: Final[int]
|
|
27
27
|
|
28
28
|
class ImageEntityDescription(EntityDescription):
|
29
29
|
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, unit_of_measurement) -> None: ...
|
30
|
-
def __mypy-replace(*, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement) -> None: ...
|
31
30
|
|
32
31
|
class Image:
|
33
32
|
content_type: str
|
34
33
|
content: bytes
|
35
34
|
def __init__(self, content_type, content) -> None: ...
|
36
|
-
def __mypy-replace(*, content_type, content) -> None: ...
|
37
35
|
|
38
36
|
class ImageContentTypeError(HomeAssistantError): ...
|
39
37
|
|
@@ -52,7 +52,6 @@ class ImageProcessingEntityDescription(EntityDescription):
|
|
52
52
|
camera_entity: str | None
|
53
53
|
confidence: float | None
|
54
54
|
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, unit_of_measurement, camera_entity, confidence) -> None: ...
|
55
|
-
def __mypy-replace(*, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement, camera_entity, confidence) -> None: ...
|
56
55
|
|
57
56
|
class ImageProcessingEntity(Entity):
|
58
57
|
entity_description: ImageProcessingEntityDescription
|
@@ -5,8 +5,7 @@ from homeassistant.components.sensor import SensorEntity as SensorEntity, Sensor
|
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.const import CONF_USERNAME as CONF_USERNAME
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
|
-
from homeassistant.helpers.device_registry import DeviceEntryType as DeviceEntryType
|
9
|
-
from homeassistant.helpers.entity import DeviceInfo as DeviceInfo
|
8
|
+
from homeassistant.helpers.device_registry import DeviceEntryType as DeviceEntryType, DeviceInfo as DeviceInfo
|
10
9
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
11
10
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
|
12
11
|
|
@@ -5,7 +5,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA as PLATFORM_SCHEMA,
|
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.const import ATTR_DEVICE_CLASS as ATTR_DEVICE_CLASS, ATTR_UNIT_OF_MEASUREMENT as ATTR_UNIT_OF_MEASUREMENT, CONF_METHOD as CONF_METHOD, CONF_NAME as CONF_NAME, CONF_UNIQUE_ID as CONF_UNIQUE_ID, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN, UnitOfTime as UnitOfTime
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
|
-
from homeassistant.helpers.
|
8
|
+
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
9
9
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
10
|
from homeassistant.helpers.event import EventStateChangedData as EventStateChangedData, async_track_state_change_event as async_track_state_change_event
|
11
11
|
from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, EventType as EventType
|
@@ -24,7 +24,6 @@ class IntegrationSensorExtraStoredData(SensorExtraStoredData):
|
|
24
24
|
@classmethod
|
25
25
|
def from_dict(cls, restored: dict[str, Any]) -> Self | None: ...
|
26
26
|
def __init__(self, native_value, native_unit_of_measurement, source_entity, last_valid_state) -> None: ...
|
27
|
-
def __mypy-replace(*, native_value, native_unit_of_measurement, source_entity, last_valid_state) -> None: ...
|
28
27
|
|
29
28
|
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
30
29
|
async def async_setup_platform(hass: HomeAssistant, config: ConfigType, async_add_entities: AddEntitiesCallback, discovery_info: DiscoveryInfoType | None = ...) -> None: ...
|