homeassistant-stubs 2025.3.3__py3-none-any.whl → 2025.4.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/bootstrap.pyi +3 -2
- homeassistant-stubs/components/accuweather/const.pyi +3 -1
- homeassistant-stubs/components/accuweather/sensor.pyi +1 -1
- homeassistant-stubs/components/anova/config_flow.pyi +4 -1
- homeassistant-stubs/components/anthemav/media_player.pyi +2 -0
- homeassistant-stubs/components/arwn/sensor.pyi +3 -2
- homeassistant-stubs/components/assist_pipeline/pipeline.pyi +14 -5
- homeassistant-stubs/components/assist_satellite/entity.pyi +5 -3
- homeassistant-stubs/components/azure_storage/__init__.pyi +1 -1
- homeassistant-stubs/components/azure_storage/backup.pyi +1 -1
- homeassistant-stubs/components/azure_storage/config_flow.pyi +7 -0
- homeassistant-stubs/components/backup/__init__.pyi +2 -2
- homeassistant-stubs/components/backup/agent.pyi +1 -1
- homeassistant-stubs/components/backup/backup.pyi +1 -1
- homeassistant-stubs/components/backup/config_flow.pyi +7 -0
- homeassistant-stubs/components/backup/coordinator.pyi +28 -0
- homeassistant-stubs/components/backup/diagnostics.pyi +7 -0
- homeassistant-stubs/components/backup/entity.pyi +13 -0
- homeassistant-stubs/components/backup/http.pyi +1 -0
- homeassistant-stubs/components/backup/manager.pyi +8 -3
- homeassistant-stubs/components/backup/sensor.pyi +23 -0
- homeassistant-stubs/components/bosch_alarm/__init__.pyi +12 -0
- homeassistant-stubs/components/bosch_alarm/alarm_control_panel.pyi +31 -0
- homeassistant-stubs/components/bosch_alarm/config_flow.pyi +20 -0
- homeassistant-stubs/components/bosch_alarm/const.pyi +4 -0
- homeassistant-stubs/components/bring/diagnostics.pyi +5 -0
- homeassistant-stubs/components/brother/__init__.pyi +1 -0
- homeassistant-stubs/components/brother/coordinator.pyi +1 -0
- homeassistant-stubs/components/cloud/backup.pyi +3 -3
- homeassistant-stubs/components/cloud/http_api.pyi +6 -3
- homeassistant-stubs/components/cloud/tts.pyi +2 -2
- homeassistant-stubs/components/comelit/__init__.pyi +11 -0
- homeassistant-stubs/components/comelit/alarm_control_panel.pyi +42 -0
- homeassistant-stubs/components/comelit/binary_sensor.pyi +22 -0
- homeassistant-stubs/components/comelit/climate.pyi +60 -0
- homeassistant-stubs/components/comelit/config_flow.pyi +28 -0
- homeassistant-stubs/components/comelit/const.pyi +7 -0
- homeassistant-stubs/components/comelit/coordinator.pyi +38 -0
- homeassistant-stubs/components/comelit/cover.pyi +40 -0
- homeassistant-stubs/components/comelit/diagnostics.pyi +10 -0
- homeassistant-stubs/components/comelit/humidifier.pyi +61 -0
- homeassistant-stubs/components/comelit/light.pyi +28 -0
- homeassistant-stubs/components/comelit/sensor.pyi +45 -0
- homeassistant-stubs/components/comelit/switch.pyi +27 -0
- homeassistant-stubs/components/cover/reproduce_state.pyi +17 -6
- homeassistant-stubs/components/demo/valve.pyi +30 -0
- homeassistant-stubs/components/discovergy/__init__.pyi +1 -1
- homeassistant-stubs/components/energy/data.pyi +1 -0
- homeassistant-stubs/components/enigma2/config_flow.pyi +1 -0
- homeassistant-stubs/components/esphome/__init__.pyi +1 -1
- homeassistant-stubs/components/esphome/assist_satellite.pyi +2 -0
- homeassistant-stubs/components/esphome/const.pyi +1 -0
- homeassistant-stubs/components/esphome/diagnostics.pyi +0 -1
- homeassistant-stubs/components/esphome/manager.pyi +1 -1
- homeassistant-stubs/components/frontend/__init__.pyi +9 -10
- homeassistant-stubs/components/frontend/storage.pyi +2 -1
- homeassistant-stubs/components/gios/__init__.pyi +1 -0
- homeassistant-stubs/components/gios/config_flow.pyi +1 -0
- homeassistant-stubs/components/gios/coordinator.pyi +2 -2
- homeassistant-stubs/components/google/calendar.pyi +3 -2
- homeassistant-stubs/components/google_drive/backup.pyi +2 -2
- homeassistant-stubs/components/habitica/const.pyi +25 -0
- homeassistant-stubs/components/habitica/services.pyi +6 -2
- homeassistant-stubs/components/heos/const.pyi +1 -0
- homeassistant-stubs/components/heos/coordinator.pyi +5 -5
- homeassistant-stubs/components/heos/media_player.pyi +18 -8
- homeassistant-stubs/components/home_connect/__init__.pyi +6 -17
- homeassistant-stubs/components/home_connect/button.pyi +0 -2
- homeassistant-stubs/components/home_connect/const.pyi +1 -6
- homeassistant-stubs/components/home_connect/coordinator.pyi +4 -2
- homeassistant-stubs/components/home_connect/entity.pyi +7 -2
- homeassistant-stubs/components/home_connect/light.pyi +1 -1
- homeassistant-stubs/components/home_connect/number.pyi +4 -3
- homeassistant-stubs/components/home_connect/select.pyi +7 -3
- homeassistant-stubs/components/home_connect/sensor.pyi +3 -1
- homeassistant-stubs/components/home_connect/services.pyi +35 -0
- homeassistant-stubs/components/home_connect/switch.pyi +1 -1
- homeassistant-stubs/components/home_connect/time.pyi +6 -1
- homeassistant-stubs/components/homeassistant_hardware/coordinator.pyi +15 -0
- homeassistant-stubs/components/homeassistant_hardware/update.pyi +69 -0
- homeassistant-stubs/components/homeassistant_hardware/util.pyi +6 -1
- homeassistant-stubs/components/homeassistant_sky_connect/__init__.pyi +1 -0
- homeassistant-stubs/components/homeassistant_sky_connect/config_flow.pyi +1 -1
- homeassistant-stubs/components/homeassistant_sky_connect/const.pyi +10 -0
- homeassistant-stubs/components/homeassistant_sky_connect/update.pyi +26 -0
- homeassistant-stubs/components/homeassistant_yellow/__init__.pyi +1 -1
- homeassistant-stubs/components/homeassistant_yellow/config_flow.pyi +1 -1
- homeassistant-stubs/components/homeassistant_yellow/const.pyi +4 -0
- homeassistant-stubs/components/homeassistant_yellow/update.pyi +26 -0
- homeassistant-stubs/components/homee/binary_sensor.pyi +21 -0
- homeassistant-stubs/components/homee/button.pyi +1 -0
- homeassistant-stubs/components/homee/cover.pyi +1 -0
- homeassistant-stubs/components/homee/light.pyi +1 -0
- homeassistant-stubs/components/homee/lock.pyi +25 -0
- homeassistant-stubs/components/homee/number.pyi +1 -0
- homeassistant-stubs/components/homee/select.pyi +23 -0
- homeassistant-stubs/components/homee/sensor.pyi +2 -0
- homeassistant-stubs/components/homee/switch.pyi +2 -0
- homeassistant-stubs/components/homee/valve.pyi +1 -0
- homeassistant-stubs/components/homekit/__init__.pyi +3 -1
- homeassistant-stubs/components/homekit/accessories.pyi +1 -0
- homeassistant-stubs/components/homekit/type_switches.pyi +6 -0
- homeassistant-stubs/components/husqvarna_automower/coordinator.pyi +7 -7
- homeassistant-stubs/components/incomfort/config_flow.pyi +1 -0
- homeassistant-stubs/components/iron_os/coordinator.pyi +2 -0
- homeassistant-stubs/components/iron_os/number.pyi +2 -0
- homeassistant-stubs/components/iron_os/select.pyi +3 -0
- homeassistant-stubs/components/jewish_calendar/__init__.pyi +9 -2
- homeassistant-stubs/components/jewish_calendar/binary_sensor.pyi +4 -4
- homeassistant-stubs/components/jewish_calendar/const.pyi +3 -0
- homeassistant-stubs/components/jewish_calendar/entity.pyi +2 -2
- homeassistant-stubs/components/jewish_calendar/sensor.pyi +5 -6
- homeassistant-stubs/components/jewish_calendar/service.pyi +10 -0
- homeassistant-stubs/components/lawn_mower/__init__.pyi +1 -0
- homeassistant-stubs/components/linkplay/entity.pyi +0 -1
- homeassistant-stubs/components/linkplay/media_player.pyi +3 -2
- homeassistant-stubs/components/linkplay/utils.pyi +0 -32
- homeassistant-stubs/components/mastodon/__init__.pyi +2 -2
- homeassistant-stubs/components/mastodon/config_flow.pyi +2 -1
- homeassistant-stubs/components/mastodon/const.pyi +0 -7
- homeassistant-stubs/components/mastodon/coordinator.pyi +5 -5
- homeassistant-stubs/components/mastodon/diagnostics.pyi +2 -1
- homeassistant-stubs/components/mastodon/entity.pyi +1 -1
- homeassistant-stubs/components/mastodon/notify.pyi +3 -2
- homeassistant-stubs/components/mastodon/sensor.pyi +2 -3
- homeassistant-stubs/components/mastodon/services.pyi +1 -0
- homeassistant-stubs/components/mastodon/utils.pyi +3 -2
- homeassistant-stubs/components/mcp/coordinator.pyi +2 -9
- homeassistant-stubs/components/mcp_server/config_flow.pyi +1 -1
- homeassistant-stubs/components/mcp_server/const.pyi +1 -2
- homeassistant-stubs/components/mcp_server/server.pyi +1 -0
- homeassistant-stubs/components/modbus/__init__.pyi +1 -1
- homeassistant-stubs/components/modbus/climate.pyi +6 -2
- homeassistant-stubs/components/modbus/const.pyi +10 -0
- homeassistant-stubs/components/mqtt/config_flow.pyi +96 -7
- homeassistant-stubs/components/mqtt/const.pyi +65 -0
- homeassistant-stubs/components/mqtt/cover.pyi +2 -0
- homeassistant-stubs/components/mqtt/entity.pyi +4 -4
- homeassistant-stubs/components/mqtt/lawn_mower.pyi +1 -2
- homeassistant-stubs/components/mqtt/light/schema_basic.pyi +2 -48
- homeassistant-stubs/components/mqtt/light/schema_json.pyi +1 -14
- homeassistant-stubs/components/mqtt/light/schema_template.pyi +1 -12
- homeassistant-stubs/components/mqtt/models.pyi +25 -1
- homeassistant-stubs/components/mqtt/sensor.pyi +6 -5
- homeassistant-stubs/components/mqtt/util.pyi +2 -0
- homeassistant-stubs/components/mysensors/__init__.pyi +1 -1
- homeassistant-stubs/components/mysensors/binary_sensor.pyi +0 -1
- homeassistant-stubs/components/mysensors/climate.pyi +0 -1
- homeassistant-stubs/components/mysensors/const.pyi +0 -1
- homeassistant-stubs/components/mysensors/cover.pyi +1 -2
- homeassistant-stubs/components/mysensors/device_tracker.pyi +0 -1
- homeassistant-stubs/components/mysensors/gateway.pyi +1 -1
- homeassistant-stubs/components/mysensors/helpers.pyi +1 -3
- homeassistant-stubs/components/mysensors/light.pyi +4 -5
- homeassistant-stubs/components/mysensors/remote.pyi +0 -1
- homeassistant-stubs/components/mysensors/sensor.pyi +0 -1
- homeassistant-stubs/components/mysensors/switch.pyi +1 -2
- homeassistant-stubs/components/mysensors/text.pyi +0 -1
- homeassistant-stubs/components/nam/button.pyi +2 -0
- homeassistant-stubs/components/nam/const.pyi +1 -0
- homeassistant-stubs/components/nam/sensor.pyi +2 -2
- homeassistant-stubs/components/nest/media_source.pyi +5 -0
- homeassistant-stubs/components/nextdns/__init__.pyi +1 -1
- homeassistant-stubs/components/nextdns/button.pyi +2 -0
- homeassistant-stubs/components/nextdns/config_flow.pyi +1 -0
- homeassistant-stubs/components/nextdns/switch.pyi +1 -0
- homeassistant-stubs/components/nut/__init__.pyi +1 -0
- homeassistant-stubs/components/nut/button.pyi +14 -0
- homeassistant-stubs/components/nut/entity.pyi +19 -0
- homeassistant-stubs/components/nut/sensor.pyi +8 -13
- homeassistant-stubs/components/nut/switch.pyi +18 -0
- homeassistant-stubs/components/onboarding/views.pyi +1 -0
- homeassistant-stubs/components/onedrive/__init__.pyi +4 -0
- homeassistant-stubs/components/onedrive/backup.pyi +1 -1
- homeassistant-stubs/components/onedrive/services.pyi +15 -0
- homeassistant-stubs/components/openai_conversation/__init__.pyi +5 -1
- homeassistant-stubs/components/openai_conversation/config_flow.pyi +5 -2
- homeassistant-stubs/components/openai_conversation/const.pyi +22 -11
- homeassistant-stubs/components/openai_conversation/conversation.pyi +6 -7
- homeassistant-stubs/components/overkiz/water_heater/__init__.pyi +1 -0
- homeassistant-stubs/components/overkiz/water_heater/atlantic_domestic_hot_water_production_v2_io_component.pyi +41 -0
- homeassistant-stubs/components/purpleair/__init__.pyi +5 -10
- homeassistant-stubs/components/purpleair/const.pyi +6 -4
- homeassistant-stubs/components/purpleair/coordinator.pyi +3 -2
- homeassistant-stubs/components/purpleair/diagnostics.pyi +2 -4
- homeassistant-stubs/components/purpleair/entity.pyi +2 -3
- homeassistant-stubs/components/purpleair/sensor.pyi +4 -5
- homeassistant-stubs/components/pyload/__init__.pyi +12 -0
- homeassistant-stubs/components/pyload/button.pyi +32 -0
- homeassistant-stubs/components/pyload/config_flow.pyi +23 -0
- homeassistant-stubs/components/pyload/const.pyi +6 -0
- homeassistant-stubs/components/pyload/coordinator.pyi +33 -0
- homeassistant-stubs/components/pyload/diagnostics.pyi +10 -0
- homeassistant-stubs/components/pyload/entity.pyi +13 -0
- homeassistant-stubs/components/pyload/sensor.pyi +33 -0
- homeassistant-stubs/components/pyload/switch.pyi +37 -0
- homeassistant-stubs/components/qbus/climate.pyi +41 -0
- homeassistant-stubs/components/qbus/light.pyi +3 -3
- homeassistant-stubs/components/recorder/const.pyi +1 -0
- homeassistant-stubs/components/recorder/core.pyi +1 -2
- homeassistant-stubs/components/recorder/db_schema.pyi +3 -1
- homeassistant-stubs/components/recorder/migration.pyi +16 -2
- homeassistant-stubs/components/recorder/models/__init__.pyi +2 -2
- homeassistant-stubs/components/recorder/models/statistics.pyi +10 -2
- homeassistant-stubs/components/recorder/statistics.pyi +27 -9
- homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi +5 -3
- homeassistant-stubs/components/recorder/websocket_api.pyi +1 -1
- homeassistant-stubs/components/remote_calendar/__init__.pyi +11 -0
- homeassistant-stubs/components/remote_calendar/calendar.pyi +26 -0
- homeassistant-stubs/components/remote_calendar/config_flow.pyi +13 -0
- homeassistant-stubs/components/remote_calendar/const.pyi +2 -0
- homeassistant-stubs/components/remote_calendar/coordinator.pyi +20 -0
- homeassistant-stubs/components/remote_calendar/diagnostics.pyi +5 -0
- homeassistant-stubs/components/renault/config_flow.pyi +1 -0
- homeassistant-stubs/components/reolink/__init__.pyi +1 -1
- homeassistant-stubs/components/reolink/binary_sensor.pyi +17 -1
- homeassistant-stubs/components/reolink/config_flow.pyi +1 -1
- homeassistant-stubs/components/reolink/const.pyi +1 -0
- homeassistant-stubs/components/reolink/host.pyi +4 -4
- homeassistant-stubs/components/reolink/number.pyi +21 -1
- homeassistant-stubs/components/reolink/select.pyi +17 -1
- homeassistant-stubs/components/reolink/update.pyi +2 -1
- homeassistant-stubs/components/reolink/util.pyi +7 -0
- homeassistant-stubs/components/roborock/__init__.pyi +5 -3
- homeassistant-stubs/components/roborock/binary_sensor.pyi +4 -1
- homeassistant-stubs/components/roborock/button.pyi +11 -1
- homeassistant-stubs/components/roborock/config_flow.pyi +7 -3
- homeassistant-stubs/components/roborock/const.pyi +7 -1
- homeassistant-stubs/components/roborock/coordinator.pyi +18 -3
- homeassistant-stubs/components/roborock/entity.pyi +3 -1
- homeassistant-stubs/components/roborock/image.pyi +2 -7
- homeassistant-stubs/components/roborock/models.pyi +7 -0
- homeassistant-stubs/components/roborock/number.pyi +1 -0
- homeassistant-stubs/components/roborock/select.pyi +7 -5
- homeassistant-stubs/components/roborock/sensor.pyi +14 -1
- homeassistant-stubs/components/roborock/switch.pyi +2 -0
- homeassistant-stubs/components/roborock/time.pyi +1 -0
- homeassistant-stubs/components/roborock/vacuum.pyi +1 -1
- homeassistant-stubs/components/sensor/const.pyi +2 -0
- homeassistant-stubs/components/sensor/recorder.pyi +15 -3
- homeassistant-stubs/components/shelly/__init__.pyi +2 -2
- homeassistant-stubs/components/shelly/bluetooth/__init__.pyi +4 -2
- homeassistant-stubs/components/shelly/button.pyi +22 -7
- homeassistant-stubs/components/shelly/climate.pyi +1 -1
- homeassistant-stubs/components/shelly/config_flow.pyi +5 -5
- homeassistant-stubs/components/shelly/const.pyi +0 -1
- homeassistant-stubs/components/shelly/coordinator.pyi +5 -1
- homeassistant-stubs/components/shelly/diagnostics.pyi +1 -2
- homeassistant-stubs/components/shelly/entity.pyi +1 -3
- homeassistant-stubs/components/shelly/event.pyi +1 -1
- homeassistant-stubs/components/shelly/number.pyi +1 -1
- homeassistant-stubs/components/shelly/sensor.pyi +2 -2
- homeassistant-stubs/components/shelly/switch.pyi +14 -14
- homeassistant-stubs/components/shelly/update.pyi +1 -1
- homeassistant-stubs/components/shelly/utils.pyi +6 -2
- homeassistant-stubs/components/skybell/config_flow.pyi +3 -0
- homeassistant-stubs/components/smlight/__init__.pyi +0 -2
- homeassistant-stubs/components/smlight/sensor.pyi +5 -2
- homeassistant-stubs/components/smlight/update.pyi +0 -1
- homeassistant-stubs/components/squeezebox/browse_media.pyi +6 -11
- homeassistant-stubs/components/squeezebox/button.pyi +31 -0
- homeassistant-stubs/components/squeezebox/entity.pyi +8 -2
- homeassistant-stubs/components/squeezebox/media_player.pyi +3 -5
- homeassistant-stubs/components/synology_dsm/__init__.pyi +5 -7
- homeassistant-stubs/components/synology_dsm/backup.pyi +3 -4
- homeassistant-stubs/components/synology_dsm/binary_sensor.pyi +2 -5
- homeassistant-stubs/components/synology_dsm/button.pyi +2 -3
- homeassistant-stubs/components/synology_dsm/camera.pyi +2 -4
- homeassistant-stubs/components/synology_dsm/config_flow.pyi +3 -2
- homeassistant-stubs/components/synology_dsm/coordinator.pyi +15 -5
- homeassistant-stubs/components/synology_dsm/diagnostics.pyi +3 -4
- homeassistant-stubs/components/synology_dsm/media_source.pyi +3 -1
- homeassistant-stubs/components/synology_dsm/repairs.pyi +2 -3
- homeassistant-stubs/components/synology_dsm/sensor.pyi +3 -5
- homeassistant-stubs/components/synology_dsm/service.pyi +1 -1
- homeassistant-stubs/components/synology_dsm/switch.pyi +2 -4
- homeassistant-stubs/components/synology_dsm/update.pyi +2 -5
- homeassistant-stubs/components/tibber/coordinator.pyi +1 -1
- homeassistant-stubs/components/todo/intent.pyi +8 -0
- homeassistant-stubs/components/trafikverket_ferry/config_flow.pyi +1 -0
- homeassistant-stubs/components/trafikverket_weatherstation/config_flow.pyi +3 -0
- homeassistant-stubs/components/tts/__init__.pyi +66 -51
- homeassistant-stubs/components/tts/entity.pyi +54 -0
- homeassistant-stubs/components/tts/media_source.pyi +1 -1
- homeassistant-stubs/components/update/__init__.pyi +2 -2
- homeassistant-stubs/components/usb/__init__.pyi +0 -3
- homeassistant-stubs/components/vodafone_station/__init__.pyi +11 -0
- homeassistant-stubs/components/vodafone_station/button.pyi +31 -0
- homeassistant-stubs/components/vodafone_station/config_flow.pyi +29 -0
- homeassistant-stubs/components/vodafone_station/const.pyi +9 -0
- homeassistant-stubs/components/vodafone_station/coordinator.pyi +43 -0
- homeassistant-stubs/components/vodafone_station/device_tracker.pyi +30 -0
- homeassistant-stubs/components/vodafone_station/diagnostics.pyi +10 -0
- homeassistant-stubs/components/vodafone_station/helpers.pyi +8 -0
- homeassistant-stubs/components/vodafone_station/sensor.pyi +38 -0
- homeassistant-stubs/components/zwave_js/__init__.pyi +5 -9
- homeassistant-stubs/components/zwave_js/api.pyi +15 -0
- homeassistant-stubs/components/zwave_js/config_flow.pyi +0 -1
- homeassistant-stubs/config_entries.pyi +2 -5
- homeassistant-stubs/helpers/backup.pyi +4 -1
- homeassistant-stubs/helpers/config_entry_oauth2_flow.pyi +14 -0
- homeassistant-stubs/helpers/config_validation.pyi +5 -2
- homeassistant-stubs/helpers/frame.pyi +14 -5
- homeassistant-stubs/helpers/intent.pyi +13 -4
- homeassistant-stubs/helpers/llm.pyi +7 -1
- homeassistant-stubs/helpers/selector.pyi +1 -0
- homeassistant-stubs/helpers/template.pyi +14 -1
- homeassistant-stubs/loader.pyi +18 -8
- homeassistant-stubs/scripts/check_config.pyi +0 -1
- homeassistant-stubs/util/logging.pyi +16 -1
- homeassistant-stubs/util/unit_conversion.pyi +3 -0
- homeassistant-stubs/util/unit_system.pyi +12 -10
- homeassistant-stubs/util/yaml/__init__.pyi +3 -4
- homeassistant-stubs/util/yaml/dumper.pyi +2 -8
- homeassistant-stubs/util/yaml/input.pyi +2 -9
- homeassistant-stubs/util/yaml/loader.pyi +4 -72
- homeassistant-stubs/util/yaml/objects.pyi +2 -26
- {homeassistant_stubs-2025.3.3.dist-info → homeassistant_stubs-2025.4.0b0.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2025.3.3.dist-info → homeassistant_stubs-2025.4.0b0.dist-info}/RECORD +321 -260
- homeassistant-stubs/components/mcp_server/llm_api.pyi +0 -15
- homeassistant-stubs/components/synology_dsm/models.pyi +0 -10
- homeassistant-stubs/util/yaml/const.pyi +0 -1
- {homeassistant_stubs-2025.3.3.dist-info → homeassistant_stubs-2025.4.0b0.dist-info}/WHEEL +0 -0
- {homeassistant_stubs-2025.3.3.dist-info → homeassistant_stubs-2025.4.0b0.dist-info}/licenses/LICENSE +0 -0
@@ -1,5 +1,6 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN
|
2
2
|
from .host import ReolinkHost as ReolinkHost
|
3
|
+
from _typeshed import Incomplete
|
3
4
|
from collections.abc import Awaitable, Callable as Callable, Coroutine
|
4
5
|
from dataclasses import dataclass
|
5
6
|
from homeassistant import config_entries as config_entries
|
@@ -8,7 +9,9 @@ from homeassistant.core import HomeAssistant as HomeAssistant
|
|
8
9
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError, ServiceValidationError as ServiceValidationError
|
9
10
|
from homeassistant.helpers import device_registry as dr
|
10
11
|
from homeassistant.helpers.storage import Store as Store
|
12
|
+
from homeassistant.helpers.translation import async_get_exception_message as async_get_exception_message
|
11
13
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
14
|
+
from reolink_aio.exceptions import ReolinkError
|
12
15
|
from typing import Any
|
13
16
|
|
14
17
|
STORAGE_VERSION: int
|
@@ -24,4 +27,8 @@ def is_connected(hass: HomeAssistant, config_entry: config_entries.ConfigEntry)
|
|
24
27
|
def get_host(hass: HomeAssistant, config_entry_id: str) -> ReolinkHost: ...
|
25
28
|
def get_store(hass: HomeAssistant, config_entry_id: str) -> Store[str]: ...
|
26
29
|
def get_device_uid_and_ch(device: dr.DeviceEntry, host: ReolinkHost) -> tuple[list[str], int | None, bool]: ...
|
30
|
+
def check_translation_key(err: ReolinkError) -> str | None: ...
|
31
|
+
|
32
|
+
_EXCEPTION_TO_TRANSLATION_KEY: Incomplete
|
33
|
+
|
27
34
|
def raise_translated_error[**P, R](func: Callable[P, Awaitable[R]]) -> Callable[P, Coroutine[Any, Any, R]]: ...
|
@@ -6,17 +6,19 @@ from collections.abc import Coroutine
|
|
6
6
|
from homeassistant.const import CONF_USERNAME as CONF_USERNAME, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
8
|
from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed, ConfigEntryNotReady as ConfigEntryNotReady
|
9
|
+
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
9
10
|
from roborock import HomeDataRoom as HomeDataRoom
|
10
11
|
from roborock.containers import HomeDataDevice as HomeDataDevice, HomeDataProduct as HomeDataProduct, UserData
|
12
|
+
from roborock.web_api import RoborockApiClient
|
11
13
|
from typing import Any
|
12
14
|
|
13
15
|
SCAN_INTERVAL: Incomplete
|
14
16
|
_LOGGER: Incomplete
|
15
17
|
|
16
18
|
async def async_setup_entry(hass: HomeAssistant, entry: RoborockConfigEntry) -> bool: ...
|
17
|
-
def build_setup_functions(hass: HomeAssistant, entry: RoborockConfigEntry, device_map: dict[str, HomeDataDevice], user_data: UserData, product_info: dict[str, HomeDataProduct], home_data_rooms: list[HomeDataRoom]) -> list[Coroutine[Any, Any, RoborockDataUpdateCoordinator | RoborockDataUpdateCoordinatorA01 | None]]: ...
|
18
|
-
async def setup_device(hass: HomeAssistant, entry: RoborockConfigEntry, user_data: UserData, device: HomeDataDevice, product_info: HomeDataProduct, home_data_rooms: list[HomeDataRoom]) -> RoborockDataUpdateCoordinator | RoborockDataUpdateCoordinatorA01 | None: ...
|
19
|
-
async def setup_device_v1(hass: HomeAssistant, entry: RoborockConfigEntry, user_data: UserData, device: HomeDataDevice, product_info: HomeDataProduct, home_data_rooms: list[HomeDataRoom]) -> RoborockDataUpdateCoordinator | None: ...
|
19
|
+
def build_setup_functions(hass: HomeAssistant, entry: RoborockConfigEntry, device_map: dict[str, HomeDataDevice], user_data: UserData, product_info: dict[str, HomeDataProduct], home_data_rooms: list[HomeDataRoom], api_client: RoborockApiClient) -> list[Coroutine[Any, Any, RoborockDataUpdateCoordinator | RoborockDataUpdateCoordinatorA01 | None]]: ...
|
20
|
+
async def setup_device(hass: HomeAssistant, entry: RoborockConfigEntry, user_data: UserData, device: HomeDataDevice, product_info: HomeDataProduct, home_data_rooms: list[HomeDataRoom], api_client: RoborockApiClient) -> RoborockDataUpdateCoordinator | RoborockDataUpdateCoordinatorA01 | None: ...
|
21
|
+
async def setup_device_v1(hass: HomeAssistant, entry: RoborockConfigEntry, user_data: UserData, device: HomeDataDevice, product_info: HomeDataProduct, home_data_rooms: list[HomeDataRoom], api_client: RoborockApiClient) -> RoborockDataUpdateCoordinator | None: ...
|
20
22
|
async def setup_device_a01(hass: HomeAssistant, entry: RoborockConfigEntry, user_data: UserData, device: HomeDataDevice, product_info: HomeDataProduct) -> RoborockDataUpdateCoordinatorA01 | None: ...
|
21
23
|
async def async_unload_entry(hass: HomeAssistant, entry: RoborockConfigEntry) -> bool: ...
|
22
24
|
async def update_listener(hass: HomeAssistant, entry: RoborockConfigEntry) -> None: ...
|
@@ -4,14 +4,17 @@ from _typeshed import Incomplete
|
|
4
4
|
from collections.abc import Callable as Callable
|
5
5
|
from dataclasses import dataclass
|
6
6
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity, BinarySensorEntityDescription as BinarySensorEntityDescription
|
7
|
-
from homeassistant.const import EntityCategory as EntityCategory
|
7
|
+
from homeassistant.const import ATTR_BATTERY_CHARGING as ATTR_BATTERY_CHARGING, EntityCategory as EntityCategory
|
8
8
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
9
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
10
10
|
from roborock.roborock_typing import DeviceProp as DeviceProp
|
11
11
|
|
12
|
+
PARALLEL_UPDATES: int
|
13
|
+
|
12
14
|
@dataclass(frozen=True, kw_only=True)
|
13
15
|
class RoborockBinarySensorDescription(BinarySensorEntityDescription):
|
14
16
|
value_fn: Callable[[DeviceProp], bool | int | None]
|
17
|
+
is_dock_entity: bool = ...
|
15
18
|
|
16
19
|
BINARY_SENSOR_DESCRIPTIONS: Incomplete
|
17
20
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from .coordinator import RoborockConfigEntry as RoborockConfigEntry, RoborockDataUpdateCoordinator as RoborockDataUpdateCoordinator
|
2
|
-
from .entity import RoborockEntityV1 as RoborockEntityV1
|
2
|
+
from .entity import RoborockEntity as RoborockEntity, RoborockEntityV1 as RoborockEntityV1
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from dataclasses import dataclass
|
5
5
|
from homeassistant.components.button import ButtonEntity as ButtonEntity, ButtonEntityDescription as ButtonEntityDescription
|
@@ -7,6 +7,9 @@ from homeassistant.const import EntityCategory as EntityCategory
|
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
8
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
9
9
|
from roborock.roborock_typing import RoborockCommand
|
10
|
+
from typing import Any
|
11
|
+
|
12
|
+
PARALLEL_UPDATES: int
|
10
13
|
|
11
14
|
@dataclass(frozen=True, kw_only=True)
|
12
15
|
class RoborockButtonDescription(ButtonEntityDescription):
|
@@ -21,3 +24,10 @@ class RoborockButtonEntity(RoborockEntityV1, ButtonEntity):
|
|
21
24
|
entity_description: RoborockButtonDescription
|
22
25
|
def __init__(self, coordinator: RoborockDataUpdateCoordinator, entity_description: RoborockButtonDescription) -> None: ...
|
23
26
|
async def async_press(self) -> None: ...
|
27
|
+
|
28
|
+
class RoborockRoutineButtonEntity(RoborockEntity, ButtonEntity):
|
29
|
+
entity_description: ButtonEntityDescription
|
30
|
+
_routine_id: Incomplete
|
31
|
+
_coordinator: Incomplete
|
32
|
+
def __init__(self, coordinator: RoborockDataUpdateCoordinator, entity_description: ButtonEntityDescription) -> None: ...
|
33
|
+
async def async_press(self, **kwargs: Any) -> None: ...
|
@@ -1,9 +1,12 @@
|
|
1
|
+
from . import RoborockConfigEntry as RoborockConfigEntry
|
1
2
|
from .const import CONF_BASE_URL as CONF_BASE_URL, CONF_ENTRY_CODE as CONF_ENTRY_CODE, CONF_USER_DATA as CONF_USER_DATA, DEFAULT_DRAWABLES as DEFAULT_DRAWABLES, DOMAIN as DOMAIN, DRAWABLES as DRAWABLES
|
2
3
|
from _typeshed import Incomplete
|
3
4
|
from collections.abc import Mapping
|
4
|
-
from homeassistant.config_entries import
|
5
|
+
from homeassistant.config_entries import ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult, OptionsFlow as OptionsFlow, SOURCE_REAUTH as SOURCE_REAUTH
|
5
6
|
from homeassistant.const import CONF_USERNAME as CONF_USERNAME
|
6
7
|
from homeassistant.core import callback as callback
|
8
|
+
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
9
|
+
from homeassistant.helpers.service_info.dhcp import DhcpServiceInfo as DhcpServiceInfo
|
7
10
|
from roborock.containers import UserData as UserData
|
8
11
|
from roborock.web_api import RoborockApiClient
|
9
12
|
from typing import Any
|
@@ -18,15 +21,16 @@ class RoborockFlowHandler(ConfigFlow, domain=DOMAIN):
|
|
18
21
|
async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
19
22
|
async def _request_code(self) -> dict: ...
|
20
23
|
async def async_step_code(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
24
|
+
async def async_step_dhcp(self, discovery_info: DhcpServiceInfo) -> ConfigFlowResult: ...
|
21
25
|
async def async_step_reauth(self, entry_data: Mapping[str, Any]) -> ConfigFlowResult: ...
|
22
26
|
async def async_step_reauth_confirm(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
23
27
|
def _create_entry(self, client: RoborockApiClient, username: str, user_data: UserData) -> ConfigFlowResult: ...
|
24
28
|
@staticmethod
|
25
29
|
@callback
|
26
|
-
def async_get_options_flow(config_entry:
|
30
|
+
def async_get_options_flow(config_entry: RoborockConfigEntry) -> RoborockOptionsFlowHandler: ...
|
27
31
|
|
28
32
|
class RoborockOptionsFlowHandler(OptionsFlow):
|
29
33
|
options: Incomplete
|
30
|
-
def __init__(self, config_entry:
|
34
|
+
def __init__(self, config_entry: RoborockConfigEntry) -> None: ...
|
31
35
|
async def async_step_init(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
32
36
|
async def async_step_drawables(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
@@ -8,10 +8,16 @@ CONF_USER_DATA: str
|
|
8
8
|
DRAWABLES: str
|
9
9
|
DEFAULT_DRAWABLES: Incomplete
|
10
10
|
PLATFORMS: Incomplete
|
11
|
-
IMAGE_CACHE_INTERVAL:
|
11
|
+
IMAGE_CACHE_INTERVAL: Incomplete
|
12
12
|
MAP_SLEEP: int
|
13
13
|
GET_MAPS_SERVICE_NAME: str
|
14
|
+
MAP_SCALE: int
|
14
15
|
MAP_FILE_FORMAT: str
|
15
16
|
MAP_FILENAME_SUFFIX: str
|
16
17
|
SET_VACUUM_GOTO_POSITION_SERVICE_NAME: str
|
17
18
|
GET_VACUUM_CURRENT_POSITION_SERVICE_NAME: str
|
19
|
+
A01_UPDATE_INTERVAL: Incomplete
|
20
|
+
V1_CLOUD_IN_CLEANING_INTERVAL: Incomplete
|
21
|
+
V1_CLOUD_NOT_CLEANING_INTERVAL: Incomplete
|
22
|
+
V1_LOCAL_IN_CLEANING_INTERVAL: Incomplete
|
23
|
+
V1_LOCAL_NOT_CLEANING_INTERVAL: Incomplete
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from .const import DOMAIN as DOMAIN
|
1
|
+
from .const import A01_UPDATE_INTERVAL as A01_UPDATE_INTERVAL, DEFAULT_DRAWABLES as DEFAULT_DRAWABLES, DOMAIN as DOMAIN, DRAWABLES as DRAWABLES, IMAGE_CACHE_INTERVAL as IMAGE_CACHE_INTERVAL, MAP_FILE_FORMAT as MAP_FILE_FORMAT, MAP_SCALE as MAP_SCALE, MAP_SLEEP as MAP_SLEEP, V1_CLOUD_IN_CLEANING_INTERVAL as V1_CLOUD_IN_CLEANING_INTERVAL, V1_CLOUD_NOT_CLEANING_INTERVAL as V1_CLOUD_NOT_CLEANING_INTERVAL, V1_LOCAL_IN_CLEANING_INTERVAL as V1_LOCAL_IN_CLEANING_INTERVAL, V1_LOCAL_NOT_CLEANING_INTERVAL as V1_LOCAL_NOT_CLEANING_INTERVAL
|
2
2
|
from .models import RoborockA01HassDeviceInfo as RoborockA01HassDeviceInfo, RoborockHassDeviceInfo as RoborockHassDeviceInfo, RoborockMapInfo as RoborockMapInfo
|
3
3
|
from .roborock_storage import RoborockMapStorage as RoborockMapStorage
|
4
4
|
from _typeshed import Incomplete
|
@@ -6,18 +6,21 @@ from dataclasses import dataclass
|
|
6
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
7
|
from homeassistant.const import ATTR_CONNECTIONS as ATTR_CONNECTIONS
|
8
8
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
|
+
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
9
10
|
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
10
11
|
from homeassistant.helpers.typing import StateType as StateType
|
11
12
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator, UpdateFailed as UpdateFailed
|
12
13
|
from homeassistant.util import slugify as slugify
|
13
14
|
from propcache.api import cached_property
|
14
15
|
from roborock import HomeDataRoom as HomeDataRoom
|
15
|
-
from roborock.containers import HomeDataDevice as HomeDataDevice, HomeDataProduct as HomeDataProduct, NetworkInfo as NetworkInfo
|
16
|
+
from roborock.containers import HomeDataDevice as HomeDataDevice, HomeDataProduct as HomeDataProduct, HomeDataScene as HomeDataScene, NetworkInfo as NetworkInfo, UserData as UserData
|
16
17
|
from roborock.roborock_message import RoborockDyadDataProtocol, RoborockZeoProtocol
|
17
18
|
from roborock.roborock_typing import DeviceProp
|
18
19
|
from roborock.version_1_apis.roborock_local_client_v1 import RoborockLocalClientV1
|
19
20
|
from roborock.version_1_apis.roborock_mqtt_client_v1 import RoborockMqttClientV1 as RoborockMqttClientV1
|
20
21
|
from roborock.version_a01_apis import RoborockClientA01 as RoborockClientA01
|
22
|
+
from roborock.web_api import RoborockApiClient as RoborockApiClient
|
23
|
+
from vacuum_map_parser_base.map_data import MapData as MapData
|
21
24
|
|
22
25
|
SCAN_INTERVAL: Incomplete
|
23
26
|
_LOGGER: Incomplete
|
@@ -39,18 +42,30 @@ class RoborockDataUpdateCoordinator(DataUpdateCoordinator[DeviceProp]):
|
|
39
42
|
maps: dict[int, RoborockMapInfo]
|
40
43
|
_home_data_rooms: Incomplete
|
41
44
|
map_storage: Incomplete
|
42
|
-
|
45
|
+
_user_data: Incomplete
|
46
|
+
_api_client: Incomplete
|
47
|
+
_is_cloud_api: bool
|
48
|
+
map_parser: Incomplete
|
49
|
+
def __init__(self, hass: HomeAssistant, config_entry: RoborockConfigEntry, device: HomeDataDevice, device_networking: NetworkInfo, product_info: HomeDataProduct, cloud_api: RoborockMqttClientV1, home_data_rooms: list[HomeDataRoom], api_client: RoborockApiClient, user_data: UserData) -> None: ...
|
50
|
+
@cached_property
|
51
|
+
def dock_device_info(self) -> DeviceInfo: ...
|
52
|
+
def parse_map_data_v1(self, map_bytes: bytes) -> tuple[bytes | None, MapData | None]: ...
|
43
53
|
async def _async_setup(self) -> None: ...
|
54
|
+
async def update_map(self) -> None: ...
|
55
|
+
update_interval: Incomplete
|
44
56
|
async def _verify_api(self) -> None: ...
|
45
57
|
async def async_shutdown(self) -> None: ...
|
46
58
|
async def _update_device_prop(self) -> None: ...
|
47
59
|
async def _async_update_data(self) -> DeviceProp: ...
|
48
60
|
def _set_current_map(self) -> None: ...
|
49
61
|
async def set_current_map_rooms(self) -> None: ...
|
62
|
+
async def get_routines(self) -> list[HomeDataScene]: ...
|
63
|
+
async def execute_routines(self, routine_id: int) -> None: ...
|
50
64
|
@cached_property
|
51
65
|
def duid(self) -> str: ...
|
52
66
|
@cached_property
|
53
67
|
def duid_slug(self) -> str: ...
|
68
|
+
async def refresh_coordinator_map(self) -> None: ...
|
54
69
|
|
55
70
|
class RoborockDataUpdateCoordinatorA01(DataUpdateCoordinator[dict[RoborockDyadDataProtocol | RoborockZeoProtocol, StateType]]):
|
56
71
|
config_entry: RoborockConfigEntry
|
@@ -26,6 +26,8 @@ class RoborockEntityV1(RoborockEntity):
|
|
26
26
|
_api: RoborockClientV1
|
27
27
|
def __init__(self, unique_id: str, device_info: DeviceInfo, api: RoborockClientV1) -> None: ...
|
28
28
|
def get_cache(self, attribute: CacheableAttribute) -> AttributeCache: ...
|
29
|
+
@classmethod
|
30
|
+
async def _send_command(cls, command: RoborockCommand | str, api: RoborockClientV1, params: dict[str, Any] | list[Any] | int | None = None) -> dict: ...
|
29
31
|
async def send(self, command: RoborockCommand | str, params: dict[str, Any] | list[Any] | int | None = None) -> dict: ...
|
30
32
|
@property
|
31
33
|
def api(self) -> RoborockClientV1: ...
|
@@ -38,7 +40,7 @@ class RoborockCoordinatedEntityV1(RoborockEntityV1, CoordinatorEntity[RoborockDa
|
|
38
40
|
_attr_has_entity_name: bool
|
39
41
|
_attr_unique_id: Incomplete
|
40
42
|
listener_requests: Incomplete
|
41
|
-
def __init__(self, unique_id: str, coordinator: RoborockDataUpdateCoordinator, listener_request: list[RoborockDataProtocol] | RoborockDataProtocol | None = None) -> None: ...
|
43
|
+
def __init__(self, unique_id: str, coordinator: RoborockDataUpdateCoordinator, listener_request: list[RoborockDataProtocol] | RoborockDataProtocol | None = None, is_dock_entity: bool = False) -> None: ...
|
42
44
|
async def async_added_to_hass(self) -> None: ...
|
43
45
|
async def async_will_remove_from_hass(self) -> None: ...
|
44
46
|
@property
|
@@ -1,17 +1,15 @@
|
|
1
|
-
from .const import DEFAULT_DRAWABLES as DEFAULT_DRAWABLES, DOMAIN as DOMAIN, DRAWABLES as DRAWABLES, IMAGE_CACHE_INTERVAL as IMAGE_CACHE_INTERVAL, MAP_FILE_FORMAT as MAP_FILE_FORMAT, MAP_SLEEP as MAP_SLEEP
|
2
1
|
from .coordinator import RoborockConfigEntry as RoborockConfigEntry, RoborockDataUpdateCoordinator as RoborockDataUpdateCoordinator
|
3
2
|
from .entity import RoborockCoordinatedEntityV1 as RoborockCoordinatedEntityV1
|
4
3
|
from _typeshed import Incomplete
|
5
|
-
from collections.abc import Callable as Callable
|
6
4
|
from datetime import datetime
|
7
5
|
from homeassistant.components.image import ImageEntity as ImageEntity
|
8
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
9
7
|
from homeassistant.const import EntityCategory as EntityCategory
|
10
8
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
11
|
-
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
12
9
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
13
10
|
|
14
11
|
_LOGGER: Incomplete
|
12
|
+
PARALLEL_UPDATES: int
|
15
13
|
|
16
14
|
async def async_setup_entry(hass: HomeAssistant, config_entry: RoborockConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
17
15
|
|
@@ -20,16 +18,13 @@ class RoborockMap(RoborockCoordinatedEntityV1, ImageEntity):
|
|
20
18
|
image_last_updated: datetime
|
21
19
|
_attr_name: str
|
22
20
|
config_entry: Incomplete
|
23
|
-
parser: Incomplete
|
24
21
|
map_flag: Incomplete
|
25
22
|
cached_map: bytes
|
26
23
|
_attr_entity_category: Incomplete
|
27
|
-
def __init__(self, config_entry: ConfigEntry, unique_id: str, coordinator: RoborockDataUpdateCoordinator, map_flag: int, map_name: str
|
24
|
+
def __init__(self, config_entry: ConfigEntry, unique_id: str, coordinator: RoborockDataUpdateCoordinator, map_flag: int, map_name: str) -> None: ...
|
28
25
|
@property
|
29
26
|
def is_selected(self) -> bool: ...
|
30
27
|
_attr_image_last_updated: Incomplete
|
31
28
|
async def async_added_to_hass(self) -> None: ...
|
32
29
|
def _handle_coordinator_update(self) -> None: ...
|
33
30
|
async def async_image(self) -> bytes | None: ...
|
34
|
-
|
35
|
-
async def refresh_coordinators(hass: HomeAssistant, coord: RoborockDataUpdateCoordinator) -> None: ...
|
@@ -1,7 +1,9 @@
|
|
1
1
|
from dataclasses import dataclass
|
2
|
+
from datetime import datetime
|
2
3
|
from roborock.containers import HomeDataDevice as HomeDataDevice, HomeDataProduct as HomeDataProduct, NetworkInfo as NetworkInfo
|
3
4
|
from roborock.roborock_typing import DeviceProp as DeviceProp
|
4
5
|
from typing import Any
|
6
|
+
from vacuum_map_parser_base.map_data import MapData as MapData
|
5
7
|
|
6
8
|
@dataclass
|
7
9
|
class RoborockHassDeviceInfo:
|
@@ -22,3 +24,8 @@ class RoborockMapInfo:
|
|
22
24
|
flag: int
|
23
25
|
name: str
|
24
26
|
rooms: dict[int, str]
|
27
|
+
image: bytes | None
|
28
|
+
last_updated: datetime
|
29
|
+
map_data: MapData | None
|
30
|
+
@property
|
31
|
+
def current_room(self) -> str | None: ...
|
@@ -14,6 +14,7 @@ from roborock.version_1_apis.roborock_client_v1 import AttributeCache as Attribu
|
|
14
14
|
from typing import Any
|
15
15
|
|
16
16
|
_LOGGER: Incomplete
|
17
|
+
PARALLEL_UPDATES: int
|
17
18
|
|
18
19
|
@dataclass(frozen=True, kw_only=True)
|
19
20
|
class RoborockNumberDescription(NumberEntityDescription):
|
@@ -8,17 +8,19 @@ from homeassistant.components.select import SelectEntity as SelectEntity, Select
|
|
8
8
|
from homeassistant.const import EntityCategory as EntityCategory
|
9
9
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
10
10
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
11
|
-
from roborock.containers import Status as Status
|
12
11
|
from roborock.roborock_message import RoborockDataProtocol
|
13
|
-
from roborock.roborock_typing import RoborockCommand
|
12
|
+
from roborock.roborock_typing import DeviceProp as DeviceProp, RoborockCommand
|
13
|
+
|
14
|
+
PARALLEL_UPDATES: int
|
14
15
|
|
15
16
|
@dataclass(frozen=True, kw_only=True)
|
16
17
|
class RoborockSelectDescription(SelectEntityDescription):
|
17
18
|
api_command: RoborockCommand
|
18
|
-
value_fn: Callable[[
|
19
|
-
options_lambda: Callable[[
|
20
|
-
parameter_lambda: Callable[[str,
|
19
|
+
value_fn: Callable[[DeviceProp], str | None]
|
20
|
+
options_lambda: Callable[[DeviceProp], list[str] | None]
|
21
|
+
parameter_lambda: Callable[[str, DeviceProp], list[int]]
|
21
22
|
protocol_listener: RoborockDataProtocol | None = ...
|
23
|
+
is_dock_entity: bool = ...
|
22
24
|
|
23
25
|
SELECT_DESCRIPTIONS: list[RoborockSelectDescription]
|
24
26
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import datetime
|
2
2
|
from .coordinator import RoborockConfigEntry as RoborockConfigEntry, RoborockDataUpdateCoordinator as RoborockDataUpdateCoordinator, RoborockDataUpdateCoordinatorA01 as RoborockDataUpdateCoordinatorA01
|
3
|
-
from .entity import RoborockCoordinatedEntityA01 as RoborockCoordinatedEntityA01, RoborockCoordinatedEntityV1 as RoborockCoordinatedEntityV1
|
3
|
+
from .entity import RoborockCoordinatedEntityA01 as RoborockCoordinatedEntityA01, RoborockCoordinatedEntityV1 as RoborockCoordinatedEntityV1, RoborockEntity as RoborockEntity
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from collections.abc import Callable as Callable
|
6
6
|
from dataclasses import dataclass
|
@@ -12,10 +12,13 @@ from homeassistant.helpers.typing import StateType as StateType
|
|
12
12
|
from roborock.roborock_message import RoborockDataProtocol, RoborockDyadDataProtocol, RoborockZeoProtocol
|
13
13
|
from roborock.roborock_typing import DeviceProp as DeviceProp
|
14
14
|
|
15
|
+
PARALLEL_UPDATES: int
|
16
|
+
|
15
17
|
@dataclass(frozen=True, kw_only=True)
|
16
18
|
class RoborockSensorDescription(SensorEntityDescription):
|
17
19
|
value_fn: Callable[[DeviceProp], StateType | datetime.datetime]
|
18
20
|
protocol_listener: RoborockDataProtocol | None = ...
|
21
|
+
is_dock_entity: bool = ...
|
19
22
|
|
20
23
|
@dataclass(frozen=True, kw_only=True)
|
21
24
|
class RoborockSensorDescriptionA01(SensorEntityDescription):
|
@@ -34,6 +37,16 @@ class RoborockSensorEntity(RoborockCoordinatedEntityV1, SensorEntity):
|
|
34
37
|
@property
|
35
38
|
def native_value(self) -> StateType | datetime.datetime: ...
|
36
39
|
|
40
|
+
class RoborockCurrentRoom(RoborockCoordinatedEntityV1, SensorEntity):
|
41
|
+
_attr_device_class: Incomplete
|
42
|
+
_attr_translation_key: str
|
43
|
+
_attr_entity_category: Incomplete
|
44
|
+
def __init__(self, coordinator: RoborockDataUpdateCoordinator) -> None: ...
|
45
|
+
@property
|
46
|
+
def options(self) -> list[str]: ...
|
47
|
+
@property
|
48
|
+
def native_value(self) -> str | None: ...
|
49
|
+
|
37
50
|
class RoborockSensorEntityA01(RoborockCoordinatedEntityA01, SensorEntity):
|
38
51
|
entity_description: RoborockSensorDescriptionA01
|
39
52
|
def __init__(self, coordinator: RoborockDataUpdateCoordinatorA01, description: RoborockSensorDescriptionA01) -> None: ...
|
@@ -14,12 +14,14 @@ from roborock.version_1_apis.roborock_client_v1 import AttributeCache as Attribu
|
|
14
14
|
from typing import Any
|
15
15
|
|
16
16
|
_LOGGER: Incomplete
|
17
|
+
PARALLEL_UPDATES: int
|
17
18
|
|
18
19
|
@dataclass(frozen=True, kw_only=True)
|
19
20
|
class RoborockSwitchDescription(SwitchEntityDescription):
|
20
21
|
cache_key: CacheableAttribute
|
21
22
|
update_value: Callable[[AttributeCache, bool], Coroutine[Any, Any, None]]
|
22
23
|
attribute: str
|
24
|
+
is_dock_entity: bool = ...
|
23
25
|
|
24
26
|
SWITCH_DESCRIPTIONS: list[RoborockSwitchDescription]
|
25
27
|
|
@@ -1,7 +1,6 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN, GET_MAPS_SERVICE_NAME as GET_MAPS_SERVICE_NAME, GET_VACUUM_CURRENT_POSITION_SERVICE_NAME as GET_VACUUM_CURRENT_POSITION_SERVICE_NAME, SET_VACUUM_GOTO_POSITION_SERVICE_NAME as SET_VACUUM_GOTO_POSITION_SERVICE_NAME
|
2
2
|
from .coordinator import RoborockConfigEntry as RoborockConfigEntry, RoborockDataUpdateCoordinator as RoborockDataUpdateCoordinator
|
3
3
|
from .entity import RoborockCoordinatedEntityV1 as RoborockCoordinatedEntityV1
|
4
|
-
from .image import ColorsPalette as ColorsPalette, ImageConfig as ImageConfig, RoborockMapDataParser as RoborockMapDataParser, Sizes as Sizes
|
5
4
|
from _typeshed import Incomplete
|
6
5
|
from homeassistant.components.vacuum import StateVacuumEntity as StateVacuumEntity, VacuumActivity as VacuumActivity, VacuumEntityFeature as VacuumEntityFeature
|
7
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, ServiceResponse as ServiceResponse, SupportsResponse as SupportsResponse
|
@@ -11,6 +10,7 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
|
11
10
|
from typing import Any
|
12
11
|
|
13
12
|
STATE_CODE_TO_STATE: Incomplete
|
13
|
+
PARALLEL_UPDATES: int
|
14
14
|
|
15
15
|
async def async_setup_entry(hass: HomeAssistant, config_entry: RoborockConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
16
16
|
|
@@ -74,6 +74,7 @@ DEVICE_CLASSES: Final[list[str]]
|
|
74
74
|
|
75
75
|
class SensorStateClass(StrEnum):
|
76
76
|
MEASUREMENT = 'measurement'
|
77
|
+
MEASUREMENT_ANGLE = 'measurement_angle'
|
77
78
|
TOTAL = 'total'
|
78
79
|
TOTAL_INCREASING = 'total_increasing'
|
79
80
|
|
@@ -82,3 +83,4 @@ STATE_CLASSES: Final[list[str]]
|
|
82
83
|
UNIT_CONVERTERS: dict[SensorDeviceClass | str | None, type[BaseUnitConverter]]
|
83
84
|
DEVICE_CLASS_UNITS: dict[SensorDeviceClass, set[type[StrEnum] | str | None]]
|
84
85
|
DEVICE_CLASS_STATE_CLASSES: dict[SensorDeviceClass, set[SensorStateClass]]
|
86
|
+
STATE_CLASS_UNITS: dict[SensorStateClass | str, set[type[StrEnum] | str | None]]
|
@@ -2,8 +2,9 @@ import datetime
|
|
2
2
|
from .const import ATTR_LAST_RESET as ATTR_LAST_RESET, ATTR_STATE_CLASS as ATTR_STATE_CLASS, DOMAIN as DOMAIN, SensorStateClass as SensorStateClass, UnitOfVolumeFlowRate as UnitOfVolumeFlowRate
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from collections.abc import Callable as Callable, Iterable
|
5
|
+
from dataclasses import dataclass
|
5
6
|
from homeassistant.components.recorder import get_instance as get_instance, history as history, statistics as statistics
|
6
|
-
from homeassistant.components.recorder.models import StatisticData as StatisticData, StatisticMetaData as StatisticMetaData, StatisticResult as StatisticResult
|
7
|
+
from homeassistant.components.recorder.models import StatisticData as StatisticData, StatisticMeanType as StatisticMeanType, StatisticMetaData as StatisticMetaData, StatisticResult as StatisticResult
|
7
8
|
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT as ATTR_UNIT_OF_MEASUREMENT, REVOLUTIONS_PER_MINUTE as REVOLUTIONS_PER_MINUTE, UnitOfIrradiance as UnitOfIrradiance, UnitOfSoundPressure as UnitOfSoundPressure, UnitOfVolume as UnitOfVolume
|
8
9
|
from homeassistant.core import HomeAssistant as HomeAssistant, State as State, callback as callback, split_entity_id as split_entity_id
|
9
10
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
@@ -17,6 +18,12 @@ from sqlalchemy.orm.session import Session as Session
|
|
17
18
|
from typing import Any
|
18
19
|
|
19
20
|
_LOGGER: Incomplete
|
21
|
+
|
22
|
+
@dataclass
|
23
|
+
class _StatisticsConfig:
|
24
|
+
types: set[str]
|
25
|
+
mean_type: StatisticMeanType = ...
|
26
|
+
|
20
27
|
DEFAULT_STATISTICS: Incomplete
|
21
28
|
EQUIVALENT_UNITS: Incomplete
|
22
29
|
SEEN_DIP: HassKey[set[str]]
|
@@ -24,10 +31,15 @@ WARN_DIP: HassKey[set[str]]
|
|
24
31
|
WARN_NEGATIVE: HassKey[set[str]]
|
25
32
|
WARN_UNSUPPORTED_UNIT: HassKey[set[str]]
|
26
33
|
WARN_UNSTABLE_UNIT: HassKey[set[str]]
|
34
|
+
WARN_STATISTICS_MEAN_CHANGED: HassKey[set[str]]
|
27
35
|
LINK_DEV_STATISTICS: str
|
36
|
+
STATE_CLASS_REMOVED_ISSUE: str
|
37
|
+
UNITS_CHANGED_ISSUE: str
|
38
|
+
MEAN_TYPE_CHANGED_ISSUE: str
|
28
39
|
|
29
40
|
def _get_sensor_states(hass: HomeAssistant) -> list[State]: ...
|
30
|
-
def
|
41
|
+
def _time_weighted_arithmetic_mean(fstates: list[tuple[float, State]], start: datetime.datetime, end: datetime.datetime) -> float: ...
|
42
|
+
def _time_weighted_circular_mean(fstates: list[tuple[float, State]], start: datetime.datetime, end: datetime.datetime) -> float: ...
|
31
43
|
def _get_units(fstates: list[tuple[float, State]]) -> set[str | None]: ...
|
32
44
|
def _equivalent_units(units: set[str | None]) -> bool: ...
|
33
45
|
def _entity_history_to_float_and_state(entity_history: Iterable[State]) -> list[tuple[float, State]]: ...
|
@@ -37,7 +49,7 @@ def _suggest_report_issue(hass: HomeAssistant, entity_id: str) -> str: ...
|
|
37
49
|
def warn_dip(hass: HomeAssistant, entity_id: str, state: State, previous_fstate: float) -> None: ...
|
38
50
|
def warn_negative(hass: HomeAssistant, entity_id: str, state: State) -> None: ...
|
39
51
|
def reset_detected(hass: HomeAssistant, entity_id: str, fstate: float, previous_fstate: float | None, state: State) -> bool: ...
|
40
|
-
def _wanted_statistics(sensor_states: list[State]) -> dict[str,
|
52
|
+
def _wanted_statistics(sensor_states: list[State]) -> dict[str, _StatisticsConfig]: ...
|
41
53
|
def _last_reset_as_utc_isoformat(last_reset_s: Any, entity_id: str) -> str | None: ...
|
42
54
|
def _timestamp_to_isoformat_or_none(timestamp: float | None) -> str | None: ...
|
43
55
|
def compile_statistics(hass: HomeAssistant, session: Session, start: datetime.datetime, end: datetime.datetime) -> statistics.PlatformCompiledStatistics: ...
|
@@ -1,9 +1,9 @@
|
|
1
1
|
from .const import BLOCK_EXPECTED_SLEEP_PERIOD as BLOCK_EXPECTED_SLEEP_PERIOD, BLOCK_WRONG_SLEEP_PERIOD as BLOCK_WRONG_SLEEP_PERIOD, CONF_COAP_PORT as CONF_COAP_PORT, CONF_SLEEP_PERIOD as CONF_SLEEP_PERIOD, DOMAIN as DOMAIN, FIRMWARE_UNSUPPORTED_ISSUE_ID as FIRMWARE_UNSUPPORTED_ISSUE_ID, LOGGER as LOGGER, MODELS_WITH_WRONG_SLEEP_PERIOD as MODELS_WITH_WRONG_SLEEP_PERIOD, PUSH_UPDATE_ISSUE_ID as PUSH_UPDATE_ISSUE_ID
|
2
2
|
from .coordinator import ShellyBlockCoordinator as ShellyBlockCoordinator, ShellyConfigEntry as ShellyConfigEntry, ShellyEntryData as ShellyEntryData, ShellyRestCoordinator as ShellyRestCoordinator, ShellyRpcCoordinator as ShellyRpcCoordinator, ShellyRpcPollingCoordinator as ShellyRpcPollingCoordinator
|
3
|
-
from .utils import async_create_issue_unsupported_firmware as async_create_issue_unsupported_firmware, get_coap_context as get_coap_context, get_device_entry_gen as get_device_entry_gen, get_http_port as get_http_port, get_ws_context as get_ws_context
|
3
|
+
from .utils import async_create_issue_unsupported_firmware as async_create_issue_unsupported_firmware, get_coap_context as get_coap_context, get_device_entry_gen as get_device_entry_gen, get_http_port as get_http_port, get_rpc_scripts_event_types as get_rpc_scripts_event_types, get_ws_context as get_ws_context
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from homeassistant.components.bluetooth import async_remove_scanner as async_remove_scanner
|
6
|
-
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PASSWORD as CONF_PASSWORD, CONF_USERNAME as CONF_USERNAME, Platform as Platform
|
6
|
+
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MODEL as CONF_MODEL, CONF_PASSWORD as CONF_PASSWORD, CONF_USERNAME as CONF_USERNAME, Platform as Platform
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
8
|
from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed, ConfigEntryNotReady as ConfigEntryNotReady
|
9
9
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
@@ -1,7 +1,9 @@
|
|
1
1
|
from ..const import BLEScannerMode as BLEScannerMode
|
2
2
|
from ..coordinator import ShellyRpcCoordinator as ShellyRpcCoordinator
|
3
|
-
from
|
3
|
+
from _typeshed import Incomplete
|
4
|
+
from homeassistant.components.bluetooth import BluetoothScanningMode as BluetoothScanningMode, async_register_scanner as async_register_scanner
|
4
5
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant
|
5
|
-
|
6
|
+
|
7
|
+
BLE_SCANNER_MODE_TO_BLUETOOTH_SCANNING_MODE: Incomplete
|
6
8
|
|
7
9
|
async def async_connect_scanner(hass: HomeAssistant, coordinator: ShellyRpcCoordinator, scanner_mode: BLEScannerMode, device_id: str) -> CALLBACK_TYPE: ...
|
@@ -1,14 +1,15 @@
|
|
1
|
-
from .const import LOGGER as LOGGER, SHELLY_GAS_MODELS as SHELLY_GAS_MODELS
|
1
|
+
from .const import DOMAIN as DOMAIN, LOGGER as LOGGER, SHELLY_GAS_MODELS as SHELLY_GAS_MODELS
|
2
2
|
from .coordinator import ShellyBlockCoordinator as ShellyBlockCoordinator, ShellyConfigEntry as ShellyConfigEntry, ShellyRpcCoordinator as ShellyRpcCoordinator
|
3
|
-
from .utils import get_device_entry_gen as get_device_entry_gen
|
3
|
+
from .utils import get_device_entry_gen as get_device_entry_gen, get_rpc_key_ids as get_rpc_key_ids
|
4
4
|
from _typeshed import Incomplete
|
5
|
-
from collections.abc import Callable as Callable
|
5
|
+
from collections.abc import Callable as Callable
|
6
6
|
from dataclasses import dataclass
|
7
7
|
from homeassistant.components.button import ButtonDeviceClass as ButtonDeviceClass, ButtonEntity as ButtonEntity, ButtonEntityDescription as ButtonEntityDescription
|
8
8
|
from homeassistant.const import EntityCategory as EntityCategory
|
9
9
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
10
|
+
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
10
11
|
from homeassistant.helpers import entity_registry as er
|
11
|
-
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC as CONNECTION_NETWORK_MAC, DeviceInfo as DeviceInfo
|
12
|
+
from homeassistant.helpers.device_registry import CONNECTION_BLUETOOTH as CONNECTION_BLUETOOTH, CONNECTION_NETWORK_MAC as CONNECTION_NETWORK_MAC, DeviceInfo as DeviceInfo
|
12
13
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
|
13
14
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
|
14
15
|
from homeassistant.util import slugify as slugify
|
@@ -16,19 +17,33 @@ from typing import Any, Final
|
|
16
17
|
|
17
18
|
@dataclass(frozen=True, kw_only=True)
|
18
19
|
class ShellyButtonDescription[_ShellyCoordinatorT: ShellyBlockCoordinator | ShellyRpcCoordinator](ButtonEntityDescription):
|
19
|
-
press_action:
|
20
|
+
press_action: str
|
20
21
|
supported: Callable[[_ShellyCoordinatorT], bool] = ...
|
21
22
|
|
22
23
|
BUTTONS: Final[list[ShellyButtonDescription[Any]]]
|
24
|
+
BLU_TRV_BUTTONS: Final[list[ShellyButtonDescription]]
|
23
25
|
|
24
26
|
@callback
|
25
27
|
def async_migrate_unique_ids(coordinator: ShellyRpcCoordinator | ShellyBlockCoordinator, entity_entry: er.RegistryEntry) -> dict[str, Any] | None: ...
|
26
28
|
async def async_setup_entry(hass: HomeAssistant, config_entry: ShellyConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
|
27
29
|
|
28
|
-
class
|
30
|
+
class ShellyBaseButton(CoordinatorEntity[ShellyRpcCoordinator | ShellyBlockCoordinator], ButtonEntity):
|
29
31
|
entity_description: ShellyButtonDescription[ShellyRpcCoordinator | ShellyBlockCoordinator]
|
32
|
+
def __init__(self, coordinator: ShellyRpcCoordinator | ShellyBlockCoordinator, description: ShellyButtonDescription[ShellyRpcCoordinator | ShellyBlockCoordinator]) -> None: ...
|
33
|
+
async def async_press(self) -> None: ...
|
34
|
+
async def _press_method(self) -> None: ...
|
35
|
+
|
36
|
+
class ShellyButton(ShellyBaseButton):
|
30
37
|
_attr_name: Incomplete
|
31
38
|
_attr_unique_id: Incomplete
|
32
39
|
_attr_device_info: Incomplete
|
33
40
|
def __init__(self, coordinator: ShellyRpcCoordinator | ShellyBlockCoordinator, description: ShellyButtonDescription[ShellyRpcCoordinator | ShellyBlockCoordinator]) -> None: ...
|
34
|
-
async def
|
41
|
+
async def _press_method(self) -> None: ...
|
42
|
+
|
43
|
+
class ShellyBluTrvButton(ShellyBaseButton):
|
44
|
+
_attr_name: Incomplete
|
45
|
+
_attr_unique_id: Incomplete
|
46
|
+
_attr_device_info: Incomplete
|
47
|
+
_id: Incomplete
|
48
|
+
def __init__(self, coordinator: ShellyRpcCoordinator, description: ShellyButtonDescription, id_: int) -> None: ...
|
49
|
+
async def _press_method(self) -> None: ...
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from .const import BLU_TRV_TEMPERATURE_SETTINGS as BLU_TRV_TEMPERATURE_SETTINGS,
|
1
|
+
from .const import BLU_TRV_TEMPERATURE_SETTINGS as BLU_TRV_TEMPERATURE_SETTINGS, DOMAIN as DOMAIN, LOGGER as LOGGER, NOT_CALIBRATED_ISSUE_ID as NOT_CALIBRATED_ISSUE_ID, RPC_THERMOSTAT_SETTINGS as RPC_THERMOSTAT_SETTINGS, SHTRV_01_TEMPERATURE_SETTINGS as SHTRV_01_TEMPERATURE_SETTINGS
|
2
2
|
from .coordinator import ShellyBlockCoordinator as ShellyBlockCoordinator, ShellyConfigEntry as ShellyConfigEntry, ShellyRpcCoordinator as ShellyRpcCoordinator
|
3
3
|
from .entity import ShellyRpcEntity as ShellyRpcEntity
|
4
4
|
from .utils import async_remove_shelly_entity as async_remove_shelly_entity, get_device_entry_gen as get_device_entry_gen, get_rpc_key_ids as get_rpc_key_ids, is_rpc_thermostat_internal_actuator as is_rpc_thermostat_internal_actuator
|
@@ -1,10 +1,10 @@
|
|
1
1
|
from .const import BLEScannerMode as BLEScannerMode, CONF_BLE_SCANNER_MODE as CONF_BLE_SCANNER_MODE, CONF_GEN as CONF_GEN, CONF_SLEEP_PERIOD as CONF_SLEEP_PERIOD, DOMAIN as DOMAIN, LOGGER as LOGGER
|
2
|
-
from .coordinator import async_reconnect_soon as async_reconnect_soon
|
2
|
+
from .coordinator import ShellyConfigEntry as ShellyConfigEntry, async_reconnect_soon as async_reconnect_soon
|
3
3
|
from .utils import get_block_device_sleep_period as get_block_device_sleep_period, get_coap_context as get_coap_context, get_device_entry_gen as get_device_entry_gen, get_http_port as get_http_port, get_info_auth as get_info_auth, get_info_gen as get_info_gen, get_model_name as get_model_name, get_rpc_device_wakeup_period as get_rpc_device_wakeup_period, get_ws_context as get_ws_context, mac_address_from_name as mac_address_from_name
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from collections.abc import Mapping
|
6
|
-
from homeassistant.config_entries import
|
7
|
-
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MAC as CONF_MAC, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_USERNAME as CONF_USERNAME
|
6
|
+
from homeassistant.config_entries import ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult, OptionsFlow as OptionsFlow
|
7
|
+
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MAC as CONF_MAC, CONF_MODEL as CONF_MODEL, CONF_PASSWORD as CONF_PASSWORD, CONF_PORT as CONF_PORT, CONF_USERNAME as CONF_USERNAME
|
8
8
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
9
9
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
10
10
|
from homeassistant.helpers.selector import SelectSelector as SelectSelector, SelectSelectorConfig as SelectSelectorConfig
|
@@ -35,10 +35,10 @@ class ShellyConfigFlow(ConfigFlow, domain=DOMAIN):
|
|
35
35
|
async def _async_get_info(self, host: str, port: int) -> dict[str, Any]: ...
|
36
36
|
@staticmethod
|
37
37
|
@callback
|
38
|
-
def async_get_options_flow(config_entry:
|
38
|
+
def async_get_options_flow(config_entry: ShellyConfigEntry) -> OptionsFlowHandler: ...
|
39
39
|
@classmethod
|
40
40
|
@callback
|
41
|
-
def async_supports_options_flow(cls, config_entry:
|
41
|
+
def async_supports_options_flow(cls, config_entry: ShellyConfigEntry) -> bool: ...
|
42
42
|
|
43
43
|
class OptionsFlowHandler(OptionsFlow):
|
44
44
|
async def async_step_init(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
@@ -9,7 +9,7 @@ from collections.abc import Callable as Callable, Coroutine
|
|
9
9
|
from dataclasses import dataclass
|
10
10
|
from homeassistant.components.bluetooth import async_remove_scanner as async_remove_scanner
|
11
11
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigEntryState as ConfigEntryState
|
12
|
-
from homeassistant.const import ATTR_DEVICE_ID as ATTR_DEVICE_ID, CONF_HOST as CONF_HOST, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
|
12
|
+
from homeassistant.const import ATTR_DEVICE_ID as ATTR_DEVICE_ID, CONF_HOST as CONF_HOST, CONF_MODEL as CONF_MODEL, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
|
13
13
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
14
14
|
from homeassistant.helpers.debounce import Debouncer as Debouncer
|
15
15
|
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC as CONNECTION_NETWORK_MAC, format_mac as format_mac
|
@@ -24,6 +24,8 @@ class ShellyEntryData:
|
|
24
24
|
rest: ShellyRestCoordinator | None = ...
|
25
25
|
rpc: ShellyRpcCoordinator | None = ...
|
26
26
|
rpc_poll: ShellyRpcPollingCoordinator | None = ...
|
27
|
+
rpc_script_events: dict[int, list[str]] | None = ...
|
28
|
+
rpc_supports_scripts: bool | None = ...
|
27
29
|
type ShellyConfigEntry = ConfigEntry[ShellyEntryData]
|
28
30
|
|
29
31
|
class ShellyCoordinatorBase[_DeviceT: BlockDevice | RpcDevice](DataUpdateCoordinator[None]):
|
@@ -82,6 +84,8 @@ class ShellyRpcCoordinator(ShellyCoordinatorBase[RpcDevice]):
|
|
82
84
|
_input_event_listeners: list[Callable[[dict[str, Any]], None]]
|
83
85
|
_connect_task: asyncio.Task | None
|
84
86
|
def __init__(self, hass: HomeAssistant, entry: ShellyConfigEntry, device: RpcDevice) -> None: ...
|
87
|
+
@cached_property
|
88
|
+
def bluetooth_source(self) -> str: ...
|
85
89
|
async def async_device_online(self, source: str) -> None: ...
|
86
90
|
update_interval: Incomplete
|
87
91
|
def update_sleep_period(self) -> bool: ...
|