homeassistant-stubs 2024.2.4__py3-none-any.whl → 2024.3.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 +20 -4
- homeassistant-stubs/components/aftership/const.pyi +0 -1
- homeassistant-stubs/components/aftership/sensor.pyi +2 -2
- homeassistant-stubs/components/airthings_ble/config_flow.pyi +1 -0
- homeassistant-stubs/components/airzone_cloud/sensor.pyi +1 -1
- homeassistant-stubs/components/alexa/config.pyi +2 -0
- homeassistant-stubs/components/amberelectric/sensor.pyi +0 -1
- homeassistant-stubs/components/androidtv/entity.pyi +30 -0
- homeassistant-stubs/components/androidtv/media_player.pyi +5 -23
- homeassistant-stubs/components/anthemav/media_player.pyi +0 -1
- homeassistant-stubs/components/apple_tv/__init__.pyi +68 -0
- homeassistant-stubs/components/apple_tv/browse_media.pyi +5 -0
- homeassistant-stubs/components/apple_tv/config_flow.pyi +63 -0
- homeassistant-stubs/components/apple_tv/const.pyi +4 -0
- homeassistant-stubs/components/apple_tv/media_player.pyi +93 -0
- homeassistant-stubs/components/apple_tv/remote.pyi +23 -0
- homeassistant-stubs/components/assist_pipeline/__init__.pyi +1 -1
- homeassistant-stubs/components/assist_pipeline/const.pyi +1 -1
- homeassistant-stubs/components/assist_pipeline/error.pyi +4 -0
- homeassistant-stubs/components/assist_pipeline/pipeline.pyi +5 -5
- homeassistant-stubs/components/asterisk_mbox/__init__.pyi +1 -0
- homeassistant-stubs/components/asuswrt/router.pyi +1 -1
- homeassistant-stubs/components/auth/__init__.pyi +2 -2
- homeassistant-stubs/components/automation/__init__.pyi +2 -1
- homeassistant-stubs/components/axis/binary_sensor.pyi +4 -0
- homeassistant-stubs/components/backup/manager.pyi +5 -3
- homeassistant-stubs/components/backup/websocket.pyi +4 -2
- homeassistant-stubs/components/blue_current/__init__.pyi +4 -3
- homeassistant-stubs/components/blue_current/entity.pyi +5 -2
- homeassistant-stubs/components/bluetooth/manager.pyi +2 -2
- homeassistant-stubs/components/bluetooth/match.pyi +3 -0
- homeassistant-stubs/components/bmw_connected_drive/device_tracker.pyi +1 -0
- homeassistant-stubs/components/braviatv/coordinator.pyi +2 -0
- homeassistant-stubs/components/braviatv/media_player.pyi +5 -0
- homeassistant-stubs/components/brother/sensor.pyi +3 -3
- homeassistant-stubs/components/camera/media_source.pyi +1 -0
- homeassistant-stubs/components/cert_expiry/sensor.pyi +0 -1
- homeassistant-stubs/components/climate/__init__.pyi +3 -1
- homeassistant-stubs/components/cloud/const.pyi +2 -0
- homeassistant-stubs/components/cloud/google_config.pyi +7 -5
- homeassistant-stubs/components/cloud/http_api.pyi +1 -1
- homeassistant-stubs/components/cloud/prefs.pyi +6 -2
- homeassistant-stubs/components/cloud/tts.pyi +3 -2
- homeassistant-stubs/components/config/area_registry.pyi +1 -1
- homeassistant-stubs/components/config/auth.pyi +2 -2
- homeassistant-stubs/components/config/auth_provider_homeassistant.pyi +2 -2
- homeassistant-stubs/components/config/automation.pyi +2 -2
- homeassistant-stubs/components/config/config_entries.pyi +5 -4
- homeassistant-stubs/components/config/core.pyi +2 -2
- homeassistant-stubs/components/config/device_registry.pyi +1 -1
- homeassistant-stubs/components/config/entity_registry.pyi +1 -1
- homeassistant-stubs/components/config/floor_registry.pyi +12 -0
- homeassistant-stubs/components/config/label_registry.pyi +12 -0
- homeassistant-stubs/components/config/scene.pyi +2 -2
- homeassistant-stubs/components/config/script.pyi +2 -2
- homeassistant-stubs/components/cover/intent.pyi +2 -2
- homeassistant-stubs/components/cpuspeed/sensor.pyi +0 -1
- homeassistant-stubs/components/crownstone/light.pyi +1 -1
- homeassistant-stubs/components/demo/fan.pyi +1 -0
- homeassistant-stubs/components/dhcp/__init__.pyi +24 -32
- homeassistant-stubs/components/dlna_dmr/media_player.pyi +8 -3
- homeassistant-stubs/components/dnsip/sensor.pyi +1 -1
- homeassistant-stubs/components/dunehd/media_player.pyi +5 -2
- homeassistant-stubs/components/ecovacs/binary_sensor.pyi +3 -3
- homeassistant-stubs/components/ecovacs/button.pyi +5 -5
- homeassistant-stubs/components/ecovacs/controller.pyi +6 -3
- homeassistant-stubs/components/ecovacs/entity.pyi +11 -9
- homeassistant-stubs/components/ecovacs/image.pyi +2 -2
- homeassistant-stubs/components/ecovacs/lawn_mower.pyi +28 -0
- homeassistant-stubs/components/ecovacs/number.pyi +3 -3
- homeassistant-stubs/components/ecovacs/select.pyi +3 -3
- homeassistant-stubs/components/ecovacs/sensor.pyi +6 -6
- homeassistant-stubs/components/ecovacs/switch.pyi +4 -4
- homeassistant-stubs/components/ecovacs/vacuum.pyi +3 -3
- homeassistant-stubs/components/emulated_hue/config.pyi +1 -1
- homeassistant-stubs/components/enphase_envoy/sensor.pyi +39 -4
- homeassistant-stubs/components/esphome/bluetooth.pyi +1 -1
- homeassistant-stubs/components/esphome/camera.pyi +2 -2
- homeassistant-stubs/components/esphome/entry_data.pyi +3 -5
- homeassistant-stubs/components/esphome/manager.pyi +6 -7
- homeassistant-stubs/components/esphome/sensor.pyi +4 -2
- homeassistant-stubs/components/esphome/update.pyi +0 -1
- homeassistant-stubs/components/esphome/voice_assistant.pyi +1 -1
- homeassistant-stubs/components/fastdotcom/sensor.pyi +0 -1
- homeassistant-stubs/components/filesize/sensor.pyi +0 -1
- homeassistant-stubs/components/flexit_bacnet/climate.pyi +4 -2
- homeassistant-stubs/components/flexit_bacnet/number.pyi +31 -0
- homeassistant-stubs/components/fritz/common.pyi +2 -1
- homeassistant-stubs/components/fully_kiosk/media_player.pyi +2 -1
- homeassistant-stubs/components/generic_thermostat/climate.pyi +1 -1
- homeassistant-stubs/components/goalzero/__init__.pyi +1 -0
- homeassistant-stubs/components/gpsd/sensor.pyi +15 -9
- homeassistant-stubs/components/group/__init__.pyi +1 -1
- homeassistant-stubs/components/group/light.pyi +3 -3
- homeassistant-stubs/components/hardkernel/__init__.pyi +1 -1
- homeassistant-stubs/components/hardware/hardware.pyi +2 -2
- homeassistant-stubs/components/hardware/websocket_api.pyi +1 -1
- homeassistant-stubs/components/homeassistant_green/__init__.pyi +1 -1
- homeassistant-stubs/components/homeassistant_sky_connect/__init__.pyi +2 -1
- homeassistant-stubs/components/homeassistant_yellow/__init__.pyi +3 -2
- homeassistant-stubs/components/homekit/__init__.pyi +1 -1
- homeassistant-stubs/components/homekit/accessories.pyi +1 -1
- homeassistant-stubs/components/homekit/config_flow.pyi +13 -4
- homeassistant-stubs/components/homekit/type_cameras.pyi +1 -1
- homeassistant-stubs/components/homekit/type_covers.pyi +1 -1
- homeassistant-stubs/components/homekit/type_humidifiers.pyi +1 -1
- homeassistant-stubs/components/homekit/type_triggers.pyi +3 -1
- homeassistant-stubs/components/homekit_controller/alarm_control_panel.pyi +0 -1
- homeassistant-stubs/components/homekit_controller/button.pyi +8 -4
- homeassistant-stubs/components/homekit_controller/utils.pyi +4 -0
- homeassistant-stubs/components/huawei_lte/binary_sensor.pyi +0 -6
- homeassistant-stubs/components/huawei_lte/switch.pyi +0 -4
- homeassistant-stubs/components/idasen_desk/sensor.pyi +2 -1
- homeassistant-stubs/components/image/__init__.pyi +13 -3
- homeassistant-stubs/components/image/media_source.pyi +18 -0
- homeassistant-stubs/components/imap/coordinator.pyi +8 -0
- homeassistant-stubs/components/imap/diagnostics.pyi +13 -0
- homeassistant-stubs/components/intent/__init__.pyi +1 -0
- homeassistant-stubs/components/islamic_prayer_times/config_flow.pyi +1 -1
- homeassistant-stubs/components/knx/config_flow.pyi +1 -1
- homeassistant-stubs/components/knx/schema.pyi +3 -18
- homeassistant-stubs/components/knx/validation.pyi +19 -0
- homeassistant-stubs/components/lamarzocco/calendar.pyi +21 -0
- homeassistant-stubs/components/lamarzocco/entity.pyi +7 -4
- homeassistant-stubs/components/lamarzocco/number.pyi +26 -1
- homeassistant-stubs/components/light/__init__.pyi +3 -0
- homeassistant-stubs/components/local_todo/todo.pyi +3 -1
- homeassistant-stubs/components/logbook/__init__.pyi +1 -1
- homeassistant-stubs/components/logbook/helpers.pyi +2 -2
- homeassistant-stubs/components/logbook/models.pyi +2 -2
- homeassistant-stubs/components/mailbox/__init__.pyi +1 -0
- homeassistant-stubs/components/matter/light.pyi +6 -5
- homeassistant-stubs/components/media_player/intent.pyi +11 -0
- homeassistant-stubs/components/modbus/__init__.pyi +1 -1
- homeassistant-stubs/components/modbus/climate.pyi +1 -0
- homeassistant-stubs/components/modbus/validators.pyi +4 -4
- homeassistant-stubs/components/mqtt/__init__.pyi +3 -3
- homeassistant-stubs/components/mqtt/climate.pyi +1 -8
- homeassistant-stubs/components/mqtt/const.pyi +2 -0
- homeassistant-stubs/components/mqtt/event.pyi +1 -1
- homeassistant-stubs/components/mqtt/image.pyi +1 -1
- homeassistant-stubs/components/mqtt/mixins.pyi +2 -2
- homeassistant-stubs/components/mqtt/models.pyi +10 -0
- homeassistant-stubs/components/mqtt/tag.pyi +1 -1
- homeassistant-stubs/components/myuplink/__init__.pyi +2 -1
- homeassistant-stubs/components/myuplink/binary_sensor.pyi +24 -0
- homeassistant-stubs/components/myuplink/config_flow.pyi +7 -0
- homeassistant-stubs/components/myuplink/coordinator.pyi +1 -2
- homeassistant-stubs/components/myuplink/diagnostics.pyi +11 -0
- homeassistant-stubs/components/myuplink/helpers.pyi +6 -0
- homeassistant-stubs/components/myuplink/number.pyi +30 -0
- homeassistant-stubs/components/myuplink/sensor.pyi +20 -3
- homeassistant-stubs/components/myuplink/switch.pyi +29 -0
- homeassistant-stubs/components/myuplink/update.pyi +20 -0
- homeassistant-stubs/components/notion/__init__.pyi +10 -6
- homeassistant-stubs/components/notion/config_flow.pyi +11 -3
- homeassistant-stubs/components/notion/const.pyi +2 -0
- homeassistant-stubs/components/notion/diagnostics.pyi +2 -2
- homeassistant-stubs/components/notion/model.pyi +1 -1
- homeassistant-stubs/components/notion/util.pyi +7 -0
- homeassistant-stubs/components/rainmachine/util.pyi +1 -1
- homeassistant-stubs/components/raspberry_pi/__init__.pyi +1 -1
- homeassistant-stubs/components/recorder/__init__.pyi +1 -1
- homeassistant-stubs/components/recorder/core.pyi +1 -0
- homeassistant-stubs/components/recorder/websocket_api.pyi +1 -5
- homeassistant-stubs/components/repairs/issue_handler.pyi +1 -1
- homeassistant-stubs/components/rfxtrx/__init__.pyi +3 -1
- homeassistant-stubs/components/samsungtv/__init__.pyi +1 -1
- homeassistant-stubs/components/samsungtv/config_flow.pyi +1 -0
- homeassistant-stubs/components/sensor/recorder.pyi +0 -2
- homeassistant-stubs/components/shelly/binary_sensor.pyi +1 -1
- homeassistant-stubs/components/shelly/button.pyi +1 -1
- homeassistant-stubs/components/shelly/climate.pyi +1 -3
- homeassistant-stubs/components/shelly/entity.pyi +1 -2
- homeassistant-stubs/components/shelly/number.pyi +1 -1
- homeassistant-stubs/components/shelly/sensor.pyi +2 -2
- homeassistant-stubs/components/shelly/switch.pyi +4 -5
- homeassistant-stubs/components/shelly/utils.pyi +2 -0
- homeassistant-stubs/components/shelly/valve.pyi +1 -1
- homeassistant-stubs/components/ssdp/__init__.pyi +1 -0
- homeassistant-stubs/components/statistics/sensor.pyi +4 -1
- homeassistant-stubs/components/system_health/__init__.pyi +1 -1
- homeassistant-stubs/components/systemmonitor/__init__.pyi +3 -0
- homeassistant-stubs/components/systemmonitor/binary_sensor.pyi +48 -0
- homeassistant-stubs/components/systemmonitor/config_flow.pyi +2 -0
- homeassistant-stubs/components/systemmonitor/const.pyi +1 -0
- homeassistant-stubs/components/systemmonitor/coordinator.pyi +14 -10
- homeassistant-stubs/components/systemmonitor/diagnostics.pyi +7 -0
- homeassistant-stubs/components/systemmonitor/repairs.pyi +15 -0
- homeassistant-stubs/components/systemmonitor/sensor.pyi +5 -4
- homeassistant-stubs/components/systemmonitor/util.pyi +6 -5
- homeassistant-stubs/components/technove/helpers.pyi +9 -0
- homeassistant-stubs/components/technove/switch.pyi +33 -0
- homeassistant-stubs/components/tedee/config_flow.pyi +1 -0
- homeassistant-stubs/components/tedee/sensor.pyi +1 -1
- homeassistant-stubs/components/tibber/sensor.pyi +3 -4
- homeassistant-stubs/components/tplink/config_flow.pyi +2 -2
- homeassistant-stubs/components/tplink/light.pyi +1 -0
- homeassistant-stubs/components/tplink_omada/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/tplink_omada/config_flow.pyi +1 -1
- homeassistant-stubs/components/tplink_omada/controller.pyi +1 -1
- homeassistant-stubs/components/tplink_omada/coordinator.pyi +1 -1
- homeassistant-stubs/components/tplink_omada/update.pyi +1 -1
- homeassistant-stubs/components/tractive/device_tracker.pyi +0 -1
- homeassistant-stubs/components/unifi/__init__.pyi +1 -1
- homeassistant-stubs/components/unifi/button.pyi +1 -1
- homeassistant-stubs/components/unifi/config_flow.pyi +2 -2
- homeassistant-stubs/components/unifi/device_tracker.pyi +6 -6
- homeassistant-stubs/components/unifi/diagnostics.pyi +1 -1
- homeassistant-stubs/components/unifi/entity.pyi +13 -13
- homeassistant-stubs/components/unifi/hub/__init__.pyi +2 -0
- homeassistant-stubs/components/unifi/hub/api.pyi +10 -0
- homeassistant-stubs/components/unifi/{controller.pyi → hub/hub.pyi} +9 -19
- homeassistant-stubs/components/unifi/hub/websocket.pyi +25 -0
- homeassistant-stubs/components/unifi/image.pyi +4 -4
- homeassistant-stubs/components/unifi/sensor.pyi +14 -14
- homeassistant-stubs/components/unifi/switch.pyi +14 -14
- homeassistant-stubs/components/unifi/update.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/__init__.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/const.pyi +1 -0
- homeassistant-stubs/components/unifiprotect/data.pyi +3 -2
- homeassistant-stubs/components/unifiprotect/media_source.pyi +6 -3
- homeassistant-stubs/components/unifiprotect/repairs.pyi +8 -2
- homeassistant-stubs/components/usb/__init__.pyi +1 -1
- homeassistant-stubs/components/vacuum/intent.pyi +8 -0
- homeassistant-stubs/components/vallox/__init__.pyi +5 -23
- homeassistant-stubs/components/vallox/fan.pyi +1 -1
- homeassistant-stubs/components/valve/intent.pyi +6 -0
- homeassistant-stubs/components/wake_word/models.pyi +4 -2
- homeassistant-stubs/components/water_heater/__init__.pyi +2 -0
- homeassistant-stubs/components/websocket_api/http.pyi +1 -0
- homeassistant-stubs/components/wiz/light.pyi +3 -2
- homeassistant-stubs/components/xiaomi_ble/const.pyi +9 -0
- homeassistant-stubs/components/xiaomi_ble/device_trigger.pyi +1 -1
- homeassistant-stubs/components/xiaomi_ble/event.pyi +1 -1
- homeassistant-stubs/components/yalexs_ble/__init__.pyi +1 -1
- homeassistant-stubs/components/yalexs_ble/config_flow.pyi +1 -1
- homeassistant-stubs/components/zwave_js/climate.pyi +4 -0
- homeassistant-stubs/components/zwave_js/sensor.pyi +0 -1
- homeassistant-stubs/config.pyi +4 -2
- homeassistant-stubs/config_entries.pyi +38 -22
- homeassistant-stubs/core.pyi +8 -7
- homeassistant-stubs/data_entry_flow.pyi +1 -0
- homeassistant-stubs/helpers/area_registry.pyi +9 -4
- homeassistant-stubs/helpers/collection.pyi +19 -0
- homeassistant-stubs/helpers/config_validation.pyi +4 -0
- homeassistant-stubs/helpers/data_entry_flow.pyi +2 -1
- homeassistant-stubs/helpers/debounce.pyi +3 -1
- homeassistant-stubs/helpers/device_registry.pyi +13 -6
- homeassistant-stubs/helpers/entity.pyi +4 -2
- homeassistant-stubs/helpers/entity_component.pyi +1 -1
- homeassistant-stubs/helpers/entity_platform.pyi +7 -3
- homeassistant-stubs/helpers/entity_registry.pyi +10 -4
- homeassistant-stubs/helpers/event.pyi +28 -2
- homeassistant-stubs/helpers/floor_registry.pyi +59 -0
- homeassistant-stubs/helpers/icon.pyi +1 -1
- homeassistant-stubs/helpers/integration_platform.pyi +12 -8
- homeassistant-stubs/helpers/intent.pyi +8 -2
- homeassistant-stubs/helpers/json.pyi +1 -0
- homeassistant-stubs/helpers/label_registry.pyi +59 -0
- homeassistant-stubs/helpers/redact.pyi +13 -0
- homeassistant-stubs/helpers/service.pyi +1 -0
- homeassistant-stubs/helpers/storage.pyi +7 -3
- homeassistant-stubs/helpers/template.pyi +7 -0
- homeassistant-stubs/helpers/translation.pyi +18 -4
- homeassistant-stubs/helpers/update_coordinator.pyi +1 -0
- homeassistant-stubs/loader.pyi +24 -11
- homeassistant-stubs/setup.pyi +9 -3
- homeassistant-stubs/util/async_.pyi +3 -3
- homeassistant-stubs/util/file.pyi +2 -2
- homeassistant-stubs/util/yaml/loader.pyi +3 -0
- {homeassistant_stubs-2024.2.4.dist-info → homeassistant_stubs-2024.3.0b0.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.2.4.dist-info → homeassistant_stubs-2024.3.0b0.dist-info}/RECORD +275 -239
- {homeassistant_stubs-2024.2.4.dist-info → homeassistant_stubs-2024.3.0b0.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2024.2.4.dist-info → homeassistant_stubs-2024.3.0b0.dist-info}/WHEEL +0 -0
@@ -2,11 +2,12 @@ from . import config_entries as config_entries, core as core, loader as loader,
|
|
2
2
|
from .components import http as http
|
3
3
|
from .const import FORMAT_DATETIME as FORMAT_DATETIME, REQUIRED_NEXT_PYTHON_HA_RELEASE as REQUIRED_NEXT_PYTHON_HA_RELEASE, REQUIRED_NEXT_PYTHON_VER as REQUIRED_NEXT_PYTHON_VER, SIGNAL_BOOTSTRAP_INTEGRATIONS as SIGNAL_BOOTSTRAP_INTEGRATIONS
|
4
4
|
from .exceptions import HomeAssistantError as HomeAssistantError
|
5
|
-
from .helpers import area_registry as area_registry, device_registry as device_registry, entity as entity, entity_registry as entity_registry, issue_registry as issue_registry, recorder as recorder, restore_state as restore_state, template as template
|
5
|
+
from .helpers import area_registry as area_registry, device_registry as device_registry, entity as entity, entity_registry as entity_registry, floor_registry as floor_registry, issue_registry as issue_registry, label_registry as label_registry, recorder as recorder, restore_state as restore_state, template as template, translation as translation
|
6
6
|
from .helpers.dispatcher import async_dispatcher_send as async_dispatcher_send
|
7
7
|
from .helpers.typing import ConfigType as ConfigType
|
8
8
|
from .runner import RuntimeConfig as RuntimeConfig
|
9
|
-
from .setup import DATA_SETUP_STARTED as DATA_SETUP_STARTED, DATA_SETUP_TIME as DATA_SETUP_TIME, async_notify_setup_error as async_notify_setup_error, async_set_domains_to_be_loaded as async_set_domains_to_be_loaded, async_setup_component as async_setup_component
|
9
|
+
from .setup import BASE_PLATFORMS as BASE_PLATFORMS, DATA_SETUP_STARTED as DATA_SETUP_STARTED, DATA_SETUP_TIME as DATA_SETUP_TIME, async_notify_setup_error as async_notify_setup_error, async_set_domains_to_be_loaded as async_set_domains_to_be_loaded, async_setup_component as async_setup_component
|
10
|
+
from .util.async_ import create_eager_task as create_eager_task
|
10
11
|
from .util.logging import async_activate_log_queue_handler as async_activate_log_queue_handler
|
11
12
|
from .util.package import async_get_user_site as async_get_user_site, is_virtual_env as is_virtual_env
|
12
13
|
from _typeshed import Incomplete
|
@@ -33,8 +34,8 @@ STAGE_1_INTEGRATIONS: Incomplete
|
|
33
34
|
DEFAULT_INTEGRATIONS: Incomplete
|
34
35
|
DEFAULT_INTEGRATIONS_RECOVERY_MODE: Incomplete
|
35
36
|
DEFAULT_INTEGRATIONS_SUPERVISOR: Incomplete
|
36
|
-
DEFAULT_INTEGRATIONS_NON_SUPERVISOR: Incomplete
|
37
37
|
CRITICAL_INTEGRATIONS: Incomplete
|
38
|
+
SETUP_ORDER: Incomplete
|
38
39
|
|
39
40
|
async def async_setup_hass(runtime_config: RuntimeConfig) -> core.HomeAssistant | None: ...
|
40
41
|
def open_hass_ui(hass: core.HomeAssistant) -> None: ...
|
@@ -43,6 +44,21 @@ async def async_from_config_dict(config: ConfigType, hass: core.HomeAssistant) -
|
|
43
44
|
def async_enable_logging(hass: core.HomeAssistant, verbose: bool = False, log_rotate_days: int | None = None, log_file: str | None = None, log_no_color: bool = False) -> None: ...
|
44
45
|
async def async_mount_local_lib_path(config_dir: str) -> str: ...
|
45
46
|
def _get_domains(hass: core.HomeAssistant, config: dict[str, Any]) -> set[str]: ...
|
46
|
-
|
47
|
+
|
48
|
+
class _WatchPendingSetups:
|
49
|
+
_hass: Incomplete
|
50
|
+
_setup_started: Incomplete
|
51
|
+
_duration_count: int
|
52
|
+
_handle: Incomplete
|
53
|
+
_previous_was_empty: bool
|
54
|
+
_loop: Incomplete
|
55
|
+
def __init__(self, hass: core.HomeAssistant, setup_started: dict[str, float]) -> None: ...
|
56
|
+
def _async_watch(self) -> None: ...
|
57
|
+
def _async_dispatch(self, remaining_with_setup_started: dict[str, float]) -> None: ...
|
58
|
+
def _async_schedule_next(self) -> None: ...
|
59
|
+
def async_start(self) -> None: ...
|
60
|
+
def async_stop(self) -> None: ...
|
61
|
+
|
47
62
|
async def async_setup_multi_components(hass: core.HomeAssistant, domains: set[str], config: dict[str, Any]) -> None: ...
|
63
|
+
async def _async_resolve_domains_to_setup(hass: core.HomeAssistant, config: dict[str, Any]) -> tuple[set[str], dict[str, loader.Integration]]: ...
|
48
64
|
async def _async_set_up_integrations(hass: core.HomeAssistant, config: dict[str, Any]) -> None: ...
|
@@ -10,7 +10,6 @@ CONF_TITLE: Final[str]
|
|
10
10
|
CONF_TRACKING_NUMBER: Final[str]
|
11
11
|
DEFAULT_NAME: Final[str]
|
12
12
|
UPDATE_TOPIC: Final[Incomplete]
|
13
|
-
ICON: Final[str]
|
14
13
|
MIN_TIME_BETWEEN_UPDATES: Final[Incomplete]
|
15
14
|
SERVICE_ADD_TRACKING: Final[str]
|
16
15
|
SERVICE_REMOVE_TRACKING: Final[str]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from .const import ADD_TRACKING_SERVICE_SCHEMA as ADD_TRACKING_SERVICE_SCHEMA, ATTRIBUTION as ATTRIBUTION, ATTR_TRACKINGS as ATTR_TRACKINGS, BASE as BASE, CONF_SLUG as CONF_SLUG, CONF_TITLE as CONF_TITLE, CONF_TRACKING_NUMBER as CONF_TRACKING_NUMBER, DEFAULT_NAME as DEFAULT_NAME, DOMAIN as DOMAIN,
|
1
|
+
from .const import ADD_TRACKING_SERVICE_SCHEMA as ADD_TRACKING_SERVICE_SCHEMA, ATTRIBUTION as ATTRIBUTION, ATTR_TRACKINGS as ATTR_TRACKINGS, BASE as BASE, CONF_SLUG as CONF_SLUG, CONF_TITLE as CONF_TITLE, CONF_TRACKING_NUMBER as CONF_TRACKING_NUMBER, DEFAULT_NAME as DEFAULT_NAME, DOMAIN as DOMAIN, MIN_TIME_BETWEEN_UPDATES as MIN_TIME_BETWEEN_UPDATES, REMOVE_TRACKING_SERVICE_SCHEMA as REMOVE_TRACKING_SERVICE_SCHEMA, SERVICE_ADD_TRACKING as SERVICE_ADD_TRACKING, SERVICE_REMOVE_TRACKING as SERVICE_REMOVE_TRACKING, UPDATE_TOPIC as UPDATE_TOPIC
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from homeassistant.components.sensor import SensorEntity as SensorEntity
|
4
4
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry, SOURCE_IMPORT as SOURCE_IMPORT
|
@@ -22,7 +22,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
|
|
22
22
|
class AfterShipSensor(SensorEntity):
|
23
23
|
_attr_attribution = ATTRIBUTION
|
24
24
|
_attr_native_unit_of_measurement: str
|
25
|
-
|
25
|
+
_attr_translation_key: str
|
26
26
|
_attributes: Incomplete
|
27
27
|
_state: Incomplete
|
28
28
|
aftership: Incomplete
|
@@ -5,7 +5,7 @@ from .entity import AirzoneAidooEntity as AirzoneAidooEntity, AirzoneEntity as A
|
|
5
5
|
from _typeshed import Incomplete
|
6
6
|
from homeassistant.components.sensor import SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorStateClass as SensorStateClass
|
7
7
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
|
-
from homeassistant.const import EntityCategory as EntityCategory, PERCENTAGE as PERCENTAGE, SIGNAL_STRENGTH_DECIBELS_MILLIWATT as SIGNAL_STRENGTH_DECIBELS_MILLIWATT, UnitOfTemperature as UnitOfTemperature
|
8
|
+
from homeassistant.const import CONCENTRATION_MICROGRAMS_PER_CUBIC_METER as CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, EntityCategory as EntityCategory, PERCENTAGE as PERCENTAGE, SIGNAL_STRENGTH_DECIBELS_MILLIWATT as SIGNAL_STRENGTH_DECIBELS_MILLIWATT, UnitOfTemperature as UnitOfTemperature
|
9
9
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
10
10
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
11
11
|
from typing import Any, Final
|
@@ -16,8 +16,10 @@ class AbstractConfig(ABC, metaclass=abc.ABCMeta):
|
|
16
16
|
_unsub_proactive_report: CALLBACK_TYPE | None
|
17
17
|
hass: Incomplete
|
18
18
|
_enable_proactive_mode_lock: Incomplete
|
19
|
+
_on_deinitialize: Incomplete
|
19
20
|
def __init__(self, hass: HomeAssistant) -> None: ...
|
20
21
|
async def async_initialize(self) -> None: ...
|
22
|
+
def async_deinitialize(self) -> None: ...
|
21
23
|
@property
|
22
24
|
def supports_auth(self) -> bool: ...
|
23
25
|
@property
|
@@ -12,7 +12,6 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEnti
|
|
12
12
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
|
13
13
|
from typing import Any
|
14
14
|
|
15
|
-
ICONS: Incomplete
|
16
15
|
UNIT: Incomplete
|
17
16
|
|
18
17
|
def format_cents_to_dollars(cents: float) -> float: ...
|
@@ -0,0 +1,30 @@
|
|
1
|
+
from . import ADB_PYTHON_EXCEPTIONS as ADB_PYTHON_EXCEPTIONS, ADB_TCP_EXCEPTIONS as ADB_TCP_EXCEPTIONS, get_androidtv_mac as get_androidtv_mac
|
2
|
+
from .const import DEVICE_ANDROIDTV as DEVICE_ANDROIDTV, DOMAIN as DOMAIN
|
3
|
+
from _typeshed import Incomplete
|
4
|
+
from androidtv.setup_async import AndroidTVAsync as AndroidTVAsync, FireTVAsync as FireTVAsync
|
5
|
+
from collections.abc import Callable
|
6
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
|
+
from homeassistant.const import ATTR_CONNECTIONS as ATTR_CONNECTIONS, ATTR_IDENTIFIERS as ATTR_IDENTIFIERS, ATTR_MANUFACTURER as ATTR_MANUFACTURER, ATTR_MODEL as ATTR_MODEL, ATTR_SW_VERSION as ATTR_SW_VERSION, CONF_HOST as CONF_HOST, CONF_NAME as CONF_NAME
|
8
|
+
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC as CONNECTION_NETWORK_MAC, DeviceInfo as DeviceInfo
|
9
|
+
from homeassistant.helpers.entity import Entity as Entity
|
10
|
+
from typing import Any, ParamSpec, TypeVar
|
11
|
+
|
12
|
+
PREFIX_ANDROIDTV: str
|
13
|
+
PREFIX_FIRETV: str
|
14
|
+
_LOGGER: Incomplete
|
15
|
+
_ADBDeviceT = TypeVar('_ADBDeviceT', bound='AndroidTVEntity')
|
16
|
+
_R = TypeVar('_R')
|
17
|
+
_P = ParamSpec('_P')
|
18
|
+
_FuncType: Incomplete
|
19
|
+
_ReturnFuncType: Incomplete
|
20
|
+
|
21
|
+
def adb_decorator(override_available: bool = False) -> Callable[[_FuncType[_ADBDeviceT, _P, _R]], _ReturnFuncType[_ADBDeviceT, _P, _R]]: ...
|
22
|
+
|
23
|
+
class AndroidTVEntity(Entity):
|
24
|
+
_attr_has_entity_name: bool
|
25
|
+
aftv: Incomplete
|
26
|
+
_attr_unique_id: Incomplete
|
27
|
+
_entry_data: Incomplete
|
28
|
+
_attr_device_info: Incomplete
|
29
|
+
exceptions: Incomplete
|
30
|
+
def __init__(self, aftv: AndroidTVAsync | FireTVAsync, entry: ConfigEntry, entry_data: dict[str, Any]) -> None: ...
|
@@ -1,23 +1,18 @@
|
|
1
|
-
from . import ADB_PYTHON_EXCEPTIONS as ADB_PYTHON_EXCEPTIONS, ADB_TCP_EXCEPTIONS as ADB_TCP_EXCEPTIONS, get_androidtv_mac as get_androidtv_mac
|
2
1
|
from .const import ANDROID_DEV as ANDROID_DEV, ANDROID_DEV_OPT as ANDROID_DEV_OPT, CONF_APPS as CONF_APPS, CONF_EXCLUDE_UNNAMED_APPS as CONF_EXCLUDE_UNNAMED_APPS, CONF_GET_SOURCES as CONF_GET_SOURCES, CONF_SCREENCAP as CONF_SCREENCAP, CONF_TURN_OFF_COMMAND as CONF_TURN_OFF_COMMAND, CONF_TURN_ON_COMMAND as CONF_TURN_ON_COMMAND, DEFAULT_EXCLUDE_UNNAMED_APPS as DEFAULT_EXCLUDE_UNNAMED_APPS, DEFAULT_GET_SOURCES as DEFAULT_GET_SOURCES, DEFAULT_SCREENCAP as DEFAULT_SCREENCAP, DEVICE_ANDROIDTV as DEVICE_ANDROIDTV, DOMAIN as DOMAIN, SIGNAL_CONFIG_ENTITY as SIGNAL_CONFIG_ENTITY
|
2
|
+
from .entity import AndroidTVEntity as AndroidTVEntity, adb_decorator as adb_decorator
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from androidtv.setup_async import AndroidTVAsync as AndroidTVAsync, FireTVAsync as FireTVAsync
|
5
|
-
from collections.abc import Callable
|
6
5
|
from homeassistant.components import persistent_notification as persistent_notification
|
7
6
|
from homeassistant.components.media_player import MediaPlayerDeviceClass as MediaPlayerDeviceClass, MediaPlayerEntity as MediaPlayerEntity, MediaPlayerEntityFeature as MediaPlayerEntityFeature, MediaPlayerState as MediaPlayerState
|
8
7
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
9
|
-
from homeassistant.const import ATTR_COMMAND as ATTR_COMMAND
|
8
|
+
from homeassistant.const import ATTR_COMMAND as ATTR_COMMAND
|
10
9
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
11
10
|
from homeassistant.helpers import entity_platform as entity_platform
|
12
|
-
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC as CONNECTION_NETWORK_MAC, DeviceInfo as DeviceInfo
|
13
11
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
14
12
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
15
13
|
from homeassistant.util import Throttle as Throttle
|
16
|
-
from typing import Any
|
14
|
+
from typing import Any
|
17
15
|
|
18
|
-
_ADBDeviceT = TypeVar('_ADBDeviceT', bound='ADBDevice')
|
19
|
-
_R = TypeVar('_R')
|
20
|
-
_P = ParamSpec('_P')
|
21
16
|
_LOGGER: Incomplete
|
22
17
|
ATTR_ADB_RESPONSE: str
|
23
18
|
ATTR_DEVICE_PATH: str
|
@@ -28,28 +23,16 @@ SERVICE_ADB_COMMAND: str
|
|
28
23
|
SERVICE_DOWNLOAD: str
|
29
24
|
SERVICE_LEARN_SENDEVENT: str
|
30
25
|
SERVICE_UPLOAD: str
|
31
|
-
PREFIX_ANDROIDTV: str
|
32
|
-
PREFIX_FIRETV: str
|
33
26
|
ANDROIDTV_STATES: Incomplete
|
34
27
|
|
35
28
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
36
29
|
|
37
|
-
|
38
|
-
_ReturnFuncType: Incomplete
|
39
|
-
|
40
|
-
def adb_decorator(override_available: bool = False) -> Callable[[_FuncType[_ADBDeviceT, _P, _R]], _ReturnFuncType[_ADBDeviceT, _P, _R]]: ...
|
41
|
-
|
42
|
-
class ADBDevice(MediaPlayerEntity):
|
30
|
+
class ADBDevice(AndroidTVEntity, MediaPlayerEntity):
|
43
31
|
_attr_device_class: Incomplete
|
44
|
-
_attr_has_entity_name: bool
|
45
32
|
_attr_name: Incomplete
|
46
|
-
aftv: Incomplete
|
47
|
-
_attr_unique_id: Incomplete
|
48
33
|
_entry_id: Incomplete
|
49
|
-
_entry_data: Incomplete
|
50
34
|
_media_image: Incomplete
|
51
35
|
_attr_media_image_hash: Incomplete
|
52
|
-
_attr_device_info: Incomplete
|
53
36
|
_app_id_to_name: Incomplete
|
54
37
|
_app_name_to_id: Incomplete
|
55
38
|
_get_sources: Incomplete
|
@@ -57,10 +40,9 @@ class ADBDevice(MediaPlayerEntity):
|
|
57
40
|
_screencap: Incomplete
|
58
41
|
turn_on_command: Incomplete
|
59
42
|
turn_off_command: Incomplete
|
60
|
-
exceptions: Incomplete
|
61
43
|
_attr_extra_state_attributes: Incomplete
|
62
44
|
_failed_connect_count: int
|
63
|
-
def __init__(self, aftv: AndroidTVAsync | FireTVAsync,
|
45
|
+
def __init__(self, aftv: AndroidTVAsync | FireTVAsync, entry: ConfigEntry, entry_data: dict[str, Any]) -> None: ...
|
64
46
|
def _process_config(self) -> None: ...
|
65
47
|
async def async_added_to_hass(self) -> None: ...
|
66
48
|
async def _adb_screencap(self) -> bytes | None: ...
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import asyncio
|
2
|
+
from .const import CONF_CREDENTIALS as CONF_CREDENTIALS, CONF_IDENTIFIERS as CONF_IDENTIFIERS, CONF_START_OFF as CONF_START_OFF, DOMAIN as DOMAIN
|
3
|
+
from _typeshed import Incomplete
|
4
|
+
from homeassistant.components import zeroconf as zeroconf
|
5
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
|
+
from homeassistant.const import ATTR_CONNECTIONS as ATTR_CONNECTIONS, ATTR_IDENTIFIERS as ATTR_IDENTIFIERS, ATTR_MANUFACTURER as ATTR_MANUFACTURER, ATTR_MODEL as ATTR_MODEL, ATTR_NAME as ATTR_NAME, ATTR_SUGGESTED_AREA as ATTR_SUGGESTED_AREA, ATTR_SW_VERSION as ATTR_SW_VERSION, CONF_ADDRESS as CONF_ADDRESS, CONF_NAME as CONF_NAME, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
|
7
|
+
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
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
|
10
|
+
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
11
|
+
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, async_dispatcher_send as async_dispatcher_send
|
12
|
+
from homeassistant.helpers.entity import Entity as Entity
|
13
|
+
from pyatv.conf import AppleTV
|
14
|
+
from pyatv.interface import AppleTV as AppleTVInterface, DeviceListener
|
15
|
+
from typing import Any
|
16
|
+
|
17
|
+
_LOGGER: Incomplete
|
18
|
+
DEFAULT_NAME_TV: str
|
19
|
+
DEFAULT_NAME_HP: str
|
20
|
+
BACKOFF_TIME_LOWER_LIMIT: int
|
21
|
+
BACKOFF_TIME_UPPER_LIMIT: int
|
22
|
+
SIGNAL_CONNECTED: str
|
23
|
+
SIGNAL_DISCONNECTED: str
|
24
|
+
PLATFORMS: Incomplete
|
25
|
+
|
26
|
+
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
27
|
+
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
28
|
+
|
29
|
+
class AppleTVEntity(Entity):
|
30
|
+
_attr_should_poll: bool
|
31
|
+
_attr_has_entity_name: bool
|
32
|
+
_attr_name: Incomplete
|
33
|
+
atv: AppleTVInterface | None
|
34
|
+
manager: Incomplete
|
35
|
+
_attr_unique_id: Incomplete
|
36
|
+
_attr_device_info: Incomplete
|
37
|
+
def __init__(self, name: str, identifier: str, manager: AppleTVManager) -> None: ...
|
38
|
+
async def async_added_to_hass(self) -> None: ...
|
39
|
+
def async_device_connected(self, atv: AppleTVInterface) -> None: ...
|
40
|
+
def async_device_disconnected(self) -> None: ...
|
41
|
+
|
42
|
+
class AppleTVManager(DeviceListener):
|
43
|
+
atv: AppleTVInterface | None
|
44
|
+
_connection_attempts: int
|
45
|
+
_connection_was_lost: bool
|
46
|
+
_task: asyncio.Task[None] | None
|
47
|
+
config_entry: Incomplete
|
48
|
+
hass: Incomplete
|
49
|
+
is_on: Incomplete
|
50
|
+
def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry) -> None: ...
|
51
|
+
async def init(self) -> None: ...
|
52
|
+
def connection_lost(self, exception: Exception) -> None: ...
|
53
|
+
def connection_closed(self) -> None: ...
|
54
|
+
def _handle_disconnect(self) -> None: ...
|
55
|
+
async def connect(self) -> None: ...
|
56
|
+
async def disconnect(self) -> None: ...
|
57
|
+
def _start_connect_loop(self) -> None: ...
|
58
|
+
async def _connect_once(self, raise_missing_credentials: bool) -> None: ...
|
59
|
+
async def async_first_connect(self) -> None: ...
|
60
|
+
async def connect_once(self, raise_missing_credentials: bool) -> None: ...
|
61
|
+
async def _connect_loop(self) -> None: ...
|
62
|
+
async def _scan(self) -> AppleTV | None: ...
|
63
|
+
async def _connect(self, conf: AppleTV, raise_missing_credentials: bool) -> None: ...
|
64
|
+
def _async_setup_device_registry(self) -> None: ...
|
65
|
+
@property
|
66
|
+
def is_connecting(self) -> bool: ...
|
67
|
+
def _address_updated(self, address: str) -> None: ...
|
68
|
+
def _dispatch_send(self, signal: str, *args: Any) -> None: ...
|
@@ -0,0 +1,5 @@
|
|
1
|
+
from homeassistant.components.media_player import BrowseMedia as BrowseMedia, MediaClass as MediaClass, MediaType as MediaType
|
2
|
+
from typing import Any
|
3
|
+
|
4
|
+
def build_app_list(app_list: dict[str, str]) -> BrowseMedia: ...
|
5
|
+
def item_payload(item: dict[str, Any]) -> BrowseMedia: ...
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import asyncio
|
2
|
+
from .const import CONF_CREDENTIALS as CONF_CREDENTIALS, CONF_IDENTIFIERS as CONF_IDENTIFIERS, CONF_START_OFF as CONF_START_OFF, DOMAIN as DOMAIN
|
3
|
+
from _typeshed import Incomplete
|
4
|
+
from collections import deque
|
5
|
+
from collections.abc import Awaitable, Callable as Callable, Mapping
|
6
|
+
from homeassistant import config_entries as config_entries
|
7
|
+
from homeassistant.components import zeroconf as zeroconf
|
8
|
+
from homeassistant.const import CONF_ADDRESS as CONF_ADDRESS, CONF_NAME as CONF_NAME, CONF_PIN as CONF_PIN
|
9
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
10
|
+
from homeassistant.data_entry_flow import AbortFlow as AbortFlow, FlowResult as FlowResult
|
11
|
+
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
12
|
+
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
13
|
+
from homeassistant.helpers.schema_config_entry_flow import SchemaFlowFormStep as SchemaFlowFormStep, SchemaOptionsFlowHandler as SchemaOptionsFlowHandler
|
14
|
+
from pyatv.const import Protocol
|
15
|
+
from pyatv.interface import BaseConfig as BaseConfig, PairingHandler as PairingHandler
|
16
|
+
from typing import Any
|
17
|
+
|
18
|
+
_LOGGER: Incomplete
|
19
|
+
DEVICE_INPUT: str
|
20
|
+
INPUT_PIN_SCHEMA: Incomplete
|
21
|
+
DEFAULT_START_OFF: bool
|
22
|
+
DISCOVERY_AGGREGATION_TIME: int
|
23
|
+
OPTIONS_SCHEMA: Incomplete
|
24
|
+
OPTIONS_FLOW: Incomplete
|
25
|
+
|
26
|
+
async def device_scan(hass: HomeAssistant, identifier: str | None, loop: asyncio.AbstractEventLoop) -> tuple[BaseConfig | None, list[str] | None]: ...
|
27
|
+
|
28
|
+
class AppleTVConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
29
|
+
VERSION: int
|
30
|
+
scan_filter: str | None
|
31
|
+
atv: BaseConfig | None
|
32
|
+
atv_identifiers: list[str] | None
|
33
|
+
protocol: Protocol | None
|
34
|
+
pairing: PairingHandler | None
|
35
|
+
protocols_to_pair: deque[Protocol] | None
|
36
|
+
@staticmethod
|
37
|
+
def async_get_options_flow(config_entry: config_entries.ConfigEntry) -> SchemaOptionsFlowHandler: ...
|
38
|
+
credentials: Incomplete
|
39
|
+
def __init__(self) -> None: ...
|
40
|
+
@property
|
41
|
+
def device_identifier(self) -> str | None: ...
|
42
|
+
def _entry_unique_id_from_identifers(self, all_identifiers: set[str]) -> str | None: ...
|
43
|
+
async def async_step_reauth(self, entry_data: Mapping[str, Any]) -> FlowResult: ...
|
44
|
+
async def async_step_reconfigure(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
45
|
+
async def async_step_user(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
46
|
+
async def async_step_zeroconf(self, discovery_info: zeroconf.ZeroconfServiceInfo) -> FlowResult: ...
|
47
|
+
async def _async_aggregate_discoveries(self, host: str, unique_id: str) -> None: ...
|
48
|
+
def _async_check_and_update_in_progress(self, host: str, unique_id: str) -> None: ...
|
49
|
+
async def async_found_zeroconf_device(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
50
|
+
async def async_find_device_wrapper(self, next_func: Callable[[], Awaitable[FlowResult]], allow_exist: bool = False) -> FlowResult: ...
|
51
|
+
async def async_find_device(self, allow_exist: bool = False) -> None: ...
|
52
|
+
async def async_step_confirm(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
53
|
+
async def async_pair_next_protocol(self) -> FlowResult: ...
|
54
|
+
async def async_step_protocol_disabled(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
55
|
+
async def async_step_pair_with_pin(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
56
|
+
async def async_step_pair_no_pin(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
57
|
+
async def async_step_service_problem(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
58
|
+
async def async_step_password(self, user_input: dict[str, str] | None = None) -> FlowResult: ...
|
59
|
+
async def _async_cleanup(self) -> None: ...
|
60
|
+
async def _async_get_entry(self) -> FlowResult: ...
|
61
|
+
|
62
|
+
class DeviceNotFound(HomeAssistantError): ...
|
63
|
+
class DeviceAlreadyConfigured(HomeAssistantError): ...
|
@@ -0,0 +1,93 @@
|
|
1
|
+
from . import AppleTVEntity as AppleTVEntity, AppleTVManager as AppleTVManager
|
2
|
+
from .browse_media import build_app_list as build_app_list
|
3
|
+
from .const import DOMAIN as DOMAIN
|
4
|
+
from _typeshed import Incomplete
|
5
|
+
from datetime import datetime
|
6
|
+
from homeassistant.components import media_source as media_source
|
7
|
+
from homeassistant.components.media_player import BrowseMedia as BrowseMedia, MediaPlayerEntity as MediaPlayerEntity, MediaPlayerEntityFeature as MediaPlayerEntityFeature, MediaPlayerState as MediaPlayerState, MediaType as MediaType, RepeatMode as RepeatMode, async_process_play_media_url as async_process_play_media_url
|
8
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
9
|
+
from homeassistant.const import CONF_NAME as CONF_NAME
|
10
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
11
|
+
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
12
|
+
from pyatv.const import FeatureName, PowerState
|
13
|
+
from pyatv.interface import AppleTV as AppleTV, AudioListener, OutputDevice as OutputDevice, Playing as Playing, PowerListener, PushListener, PushUpdater as PushUpdater
|
14
|
+
from typing import Any
|
15
|
+
|
16
|
+
_LOGGER: Incomplete
|
17
|
+
PARALLEL_UPDATES: int
|
18
|
+
SUPPORT_BASE: Incomplete
|
19
|
+
SUPPORT_APPLE_TV: Incomplete
|
20
|
+
SUPPORT_FEATURE_MAPPING: Incomplete
|
21
|
+
|
22
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
23
|
+
|
24
|
+
class AppleTvMediaPlayer(AppleTVEntity, MediaPlayerEntity, PowerListener, AudioListener, PushListener):
|
25
|
+
_attr_supported_features = SUPPORT_APPLE_TV
|
26
|
+
_playing: Incomplete
|
27
|
+
_app_list: Incomplete
|
28
|
+
def __init__(self, name: str, identifier: str, manager: AppleTVManager) -> None: ...
|
29
|
+
def async_device_connected(self, atv: AppleTV) -> None: ...
|
30
|
+
async def _update_app_list(self) -> None: ...
|
31
|
+
def async_device_disconnected(self) -> None: ...
|
32
|
+
@property
|
33
|
+
def state(self) -> MediaPlayerState | None: ...
|
34
|
+
def playstatus_update(self, updater: PushUpdater, playstatus: Playing) -> None: ...
|
35
|
+
def playstatus_error(self, updater: PushUpdater, exception: Exception) -> None: ...
|
36
|
+
def powerstate_update(self, old_state: PowerState, new_state: PowerState) -> None: ...
|
37
|
+
def volume_update(self, old_level: float, new_level: float) -> None: ...
|
38
|
+
def outputdevices_update(self, old_devices: list[OutputDevice], new_devices: list[OutputDevice]) -> None: ...
|
39
|
+
@property
|
40
|
+
def app_id(self) -> str | None: ...
|
41
|
+
@property
|
42
|
+
def app_name(self) -> str | None: ...
|
43
|
+
@property
|
44
|
+
def source_list(self) -> list[str]: ...
|
45
|
+
@property
|
46
|
+
def media_content_type(self) -> MediaType | None: ...
|
47
|
+
@property
|
48
|
+
def media_content_id(self) -> str | None: ...
|
49
|
+
@property
|
50
|
+
def volume_level(self) -> float | None: ...
|
51
|
+
@property
|
52
|
+
def media_duration(self) -> int | None: ...
|
53
|
+
@property
|
54
|
+
def media_position(self) -> int | None: ...
|
55
|
+
@property
|
56
|
+
def media_position_updated_at(self) -> datetime | None: ...
|
57
|
+
async def async_play_media(self, media_type: MediaType | str, media_id: str, **kwargs: Any) -> None: ...
|
58
|
+
@property
|
59
|
+
def media_image_hash(self) -> str | None: ...
|
60
|
+
async def async_get_media_image(self) -> tuple[bytes | None, str | None]: ...
|
61
|
+
@property
|
62
|
+
def media_title(self) -> str | None: ...
|
63
|
+
@property
|
64
|
+
def media_artist(self) -> str | None: ...
|
65
|
+
@property
|
66
|
+
def media_album_name(self) -> str | None: ...
|
67
|
+
@property
|
68
|
+
def media_series_title(self) -> str | None: ...
|
69
|
+
@property
|
70
|
+
def media_season(self) -> str | None: ...
|
71
|
+
@property
|
72
|
+
def media_episode(self) -> str | None: ...
|
73
|
+
@property
|
74
|
+
def repeat(self) -> RepeatMode | None: ...
|
75
|
+
@property
|
76
|
+
def shuffle(self) -> bool | None: ...
|
77
|
+
def _is_feature_available(self, feature: FeatureName) -> bool: ...
|
78
|
+
async def async_browse_media(self, media_content_type: MediaType | str | None = None, media_content_id: str | None = None) -> BrowseMedia: ...
|
79
|
+
async def async_turn_on(self) -> None: ...
|
80
|
+
async def async_turn_off(self) -> None: ...
|
81
|
+
async def async_media_play_pause(self) -> None: ...
|
82
|
+
async def async_media_play(self) -> None: ...
|
83
|
+
async def async_media_stop(self) -> None: ...
|
84
|
+
async def async_media_pause(self) -> None: ...
|
85
|
+
async def async_media_next_track(self) -> None: ...
|
86
|
+
async def async_media_previous_track(self) -> None: ...
|
87
|
+
async def async_media_seek(self, position: float) -> None: ...
|
88
|
+
async def async_volume_up(self) -> None: ...
|
89
|
+
async def async_volume_down(self) -> None: ...
|
90
|
+
async def async_set_volume_level(self, volume: float) -> None: ...
|
91
|
+
async def async_set_repeat(self, repeat: RepeatMode) -> None: ...
|
92
|
+
async def async_set_shuffle(self, shuffle: bool) -> None: ...
|
93
|
+
async def async_select_source(self, source: str) -> None: ...
|
@@ -0,0 +1,23 @@
|
|
1
|
+
from . import AppleTVEntity as AppleTVEntity, AppleTVManager as AppleTVManager
|
2
|
+
from .const import DOMAIN as DOMAIN
|
3
|
+
from _typeshed import Incomplete
|
4
|
+
from collections.abc import Iterable
|
5
|
+
from homeassistant.components.remote import ATTR_DELAY_SECS as ATTR_DELAY_SECS, ATTR_NUM_REPEATS as ATTR_NUM_REPEATS, DEFAULT_DELAY_SECS as DEFAULT_DELAY_SECS, RemoteEntity as RemoteEntity
|
6
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
|
+
from homeassistant.const import CONF_NAME as CONF_NAME
|
8
|
+
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
|
+
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
|
+
from typing import Any
|
11
|
+
|
12
|
+
_LOGGER: Incomplete
|
13
|
+
PARALLEL_UPDATES: int
|
14
|
+
COMMAND_TO_ATTRIBUTE: Incomplete
|
15
|
+
|
16
|
+
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
17
|
+
|
18
|
+
class AppleTVRemote(AppleTVEntity, RemoteEntity):
|
19
|
+
@property
|
20
|
+
def is_on(self) -> bool: ...
|
21
|
+
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
22
|
+
async def async_turn_off(self, **kwargs: Any) -> None: ...
|
23
|
+
async def async_send_command(self, command: Iterable[str], **kwargs: Any) -> None: ...
|
@@ -9,4 +9,4 @@ from homeassistant.helpers.typing import ConfigType
|
|
9
9
|
__all__ = ['DOMAIN', 'async_create_default_pipeline', 'async_get_pipelines', 'async_setup', 'async_pipeline_from_audio_stream', 'async_update_pipeline', 'AudioSettings', 'Pipeline', 'PipelineEvent', 'PipelineEventType', 'PipelineNotFound', 'WakeWordSettings', 'EVENT_RECORDING']
|
10
10
|
|
11
11
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
|
12
|
-
async def async_pipeline_from_audio_stream(hass: HomeAssistant, *, context: Context, event_callback: PipelineEventCallback, stt_metadata: stt.SpeechMetadata, stt_stream: AsyncIterable[bytes], pipeline_id: str | None = None, conversation_id: str | None = None, tts_audio_output: str | None = None, wake_word_settings: WakeWordSettings | None = None, audio_settings: AudioSettings | None = None, device_id: str | None = None, start_stage: PipelineStage = ..., end_stage: PipelineStage = ...) -> None: ...
|
12
|
+
async def async_pipeline_from_audio_stream(hass: HomeAssistant, *, context: Context, event_callback: PipelineEventCallback, stt_metadata: stt.SpeechMetadata, stt_stream: AsyncIterable[bytes], wake_word_phrase: str | None = None, pipeline_id: str | None = None, conversation_id: str | None = None, tts_audio_output: str | None = None, wake_word_settings: WakeWordSettings | None = None, audio_settings: AudioSettings | None = None, device_id: str | None = None, start_stage: PipelineStage = ..., end_stage: PipelineStage = ...) -> None: ...
|
@@ -14,5 +14,9 @@ class WakeWordDetectionAborted(WakeWordDetectionError):
|
|
14
14
|
|
15
15
|
class WakeWordTimeoutError(WakeWordDetectionError): ...
|
16
16
|
class SpeechToTextError(PipelineError): ...
|
17
|
+
|
18
|
+
class DuplicateWakeUpDetectedError(WakeWordDetectionError):
|
19
|
+
def __init__(self, wake_up_phrase: str) -> None: ...
|
20
|
+
|
17
21
|
class IntentRecognitionError(PipelineError): ...
|
18
22
|
class TextToSpeechError(PipelineError): ...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import asyncio
|
2
|
-
from .const import CONF_DEBUG_RECORDING_DIR as CONF_DEBUG_RECORDING_DIR, DATA_CONFIG as DATA_CONFIG, DATA_LAST_WAKE_UP as DATA_LAST_WAKE_UP,
|
3
|
-
from .error import IntentRecognitionError as IntentRecognitionError, PipelineError as PipelineError, PipelineNotFound as PipelineNotFound, SpeechToTextError as SpeechToTextError, TextToSpeechError as TextToSpeechError, WakeWordDetectionAborted as WakeWordDetectionAborted, WakeWordDetectionError as WakeWordDetectionError, WakeWordTimeoutError as WakeWordTimeoutError
|
2
|
+
from .const import CONF_DEBUG_RECORDING_DIR as CONF_DEBUG_RECORDING_DIR, DATA_CONFIG as DATA_CONFIG, DATA_LAST_WAKE_UP as DATA_LAST_WAKE_UP, DOMAIN as DOMAIN, WAKE_WORD_COOLDOWN as WAKE_WORD_COOLDOWN
|
3
|
+
from .error import DuplicateWakeUpDetectedError as DuplicateWakeUpDetectedError, IntentRecognitionError as IntentRecognitionError, PipelineError as PipelineError, PipelineNotFound as PipelineNotFound, SpeechToTextError as SpeechToTextError, TextToSpeechError as TextToSpeechError, WakeWordDetectionAborted as WakeWordDetectionAborted, WakeWordDetectionError as WakeWordDetectionError, WakeWordTimeoutError as WakeWordTimeoutError
|
4
4
|
from .vad import AudioBuffer as AudioBuffer, VoiceActivityTimeout as VoiceActivityTimeout, VoiceCommandSegmenter as VoiceCommandSegmenter, chunk_samples as chunk_samples
|
5
5
|
from _typeshed import Incomplete
|
6
6
|
from collections import deque
|
@@ -102,8 +102,7 @@ class InvalidPipelineStagesError(PipelineRunValidationError):
|
|
102
102
|
class WakeWordSettings:
|
103
103
|
timeout: float | None = ...
|
104
104
|
audio_seconds_to_buffer: float = ...
|
105
|
-
|
106
|
-
def __init__(self, timeout, audio_seconds_to_buffer, cooldown_seconds) -> None: ...
|
105
|
+
def __init__(self, timeout, audio_seconds_to_buffer) -> None: ...
|
107
106
|
|
108
107
|
@dataclass(frozen=True)
|
109
108
|
class AudioSettings:
|
@@ -180,13 +179,14 @@ class PipelineInput:
|
|
180
179
|
run: PipelineRun
|
181
180
|
stt_metadata: stt.SpeechMetadata | None = ...
|
182
181
|
stt_stream: AsyncIterable[bytes] | None = ...
|
182
|
+
wake_word_phrase: str | None = ...
|
183
183
|
intent_input: str | None = ...
|
184
184
|
tts_input: str | None = ...
|
185
185
|
conversation_id: str | None = ...
|
186
186
|
device_id: str | None = ...
|
187
187
|
async def execute(self) -> None: ...
|
188
188
|
async def validate(self) -> None: ...
|
189
|
-
def __init__(self, run, stt_metadata, stt_stream, intent_input, tts_input, conversation_id, device_id) -> None: ...
|
189
|
+
def __init__(self, run, stt_metadata, stt_stream, wake_word_phrase, intent_input, tts_input, conversation_id, device_id) -> None: ...
|
190
190
|
|
191
191
|
class PipelinePreferred(CollectionError):
|
192
192
|
item_id: Incomplete
|
@@ -3,6 +3,7 @@ from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PASSWORD as CONF_PA
|
|
3
3
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
4
4
|
from homeassistant.helpers import discovery as discovery
|
5
5
|
from homeassistant.helpers.dispatcher import async_dispatcher_send as async_dispatcher_send, dispatcher_connect as dispatcher_connect
|
6
|
+
from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, create_issue as create_issue
|
6
7
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
7
8
|
from typing import Any
|
8
9
|
|
@@ -10,7 +10,7 @@ from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
|
10
10
|
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo, format_mac as format_mac
|
11
11
|
from homeassistant.helpers.dispatcher import async_dispatcher_send as async_dispatcher_send
|
12
12
|
from homeassistant.helpers.event import async_track_time_interval as async_track_time_interval
|
13
|
-
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
13
|
+
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator
|
14
14
|
from homeassistant.util import slugify as slugify
|
15
15
|
from typing import Any
|
16
16
|
|
@@ -53,6 +53,6 @@ def _create_auth_code_store() -> tuple[StoreResultType, RetrieveResultType]: ...
|
|
53
53
|
async def websocket_current_user(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
54
54
|
async def websocket_create_long_lived_access_token(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
55
55
|
def websocket_refresh_tokens(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
56
|
-
|
57
|
-
|
56
|
+
def websocket_delete_refresh_token(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
57
|
+
def websocket_delete_all_refresh_tokens(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
58
58
|
def websocket_sign_path(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
@@ -136,7 +136,8 @@ class AutomationEntity(BaseAutomationEntity, RestoreEntity):
|
|
136
136
|
async def async_turn_off(self, **kwargs: Any) -> None: ...
|
137
137
|
async def async_trigger(self, run_variables: dict[str, Any], context: Context | None = None, skip_condition: bool = False) -> ScriptRunResult | None: ...
|
138
138
|
async def async_will_remove_from_hass(self) -> None: ...
|
139
|
-
async def _async_enable_automation(self
|
139
|
+
async def _async_enable_automation(self) -> None: ...
|
140
|
+
def _async_create_enable_automation_task(self, event: Event) -> None: ...
|
140
141
|
async def async_enable(self) -> None: ...
|
141
142
|
async def async_disable(self, stop_actions: bool = ...) -> None: ...
|
142
143
|
def _log_callback(self, level: int, msg: str, **kwargs: Any) -> None: ...
|
@@ -2,6 +2,10 @@ from .device import AxisNetworkDevice as AxisNetworkDevice
|
|
2
2
|
from .entity import AxisEventEntity as AxisEventEntity
|
3
3
|
from _typeshed import Incomplete
|
4
4
|
from axis.models.event import Event as Event
|
5
|
+
from axis.vapix.interfaces.applications.fence_guard import FenceGuardHandler as FenceGuardHandler
|
6
|
+
from axis.vapix.interfaces.applications.loitering_guard import LoiteringGuardHandler as LoiteringGuardHandler
|
7
|
+
from axis.vapix.interfaces.applications.motion_guard import MotionGuardHandler as MotionGuardHandler
|
8
|
+
from axis.vapix.interfaces.applications.vmd4 import Vmd4Handler as Vmd4Handler
|
5
9
|
from collections.abc import Callable as Callable
|
6
10
|
from homeassistant.components.binary_sensor import BinarySensorDeviceClass as BinarySensorDeviceClass, BinarySensorEntity as BinarySensorEntity
|
7
11
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
@@ -1,10 +1,10 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN, EXCLUDE_FROM_BACKUP as EXCLUDE_FROM_BACKUP, LOGGER as LOGGER
|
2
2
|
from _typeshed import Incomplete
|
3
3
|
from dataclasses import dataclass
|
4
|
-
from homeassistant.core import HomeAssistant as HomeAssistant
|
4
|
+
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
5
5
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
6
6
|
from homeassistant.helpers import integration_platform as integration_platform
|
7
|
-
from homeassistant.helpers.json import
|
7
|
+
from homeassistant.helpers.json import json_bytes as json_bytes
|
8
8
|
from homeassistant.util.json import json_loads_object as json_loads_object
|
9
9
|
from pathlib import Path
|
10
10
|
from typing import Any, Protocol
|
@@ -34,7 +34,9 @@ class BackupManager:
|
|
34
34
|
loaded_backups: bool
|
35
35
|
loaded_platforms: bool
|
36
36
|
def __init__(self, hass: HomeAssistant) -> None: ...
|
37
|
-
|
37
|
+
def _add_platform(self, hass: HomeAssistant, integration_domain: str, platform: BackupPlatformProtocol) -> None: ...
|
38
|
+
async def pre_backup_actions(self) -> None: ...
|
39
|
+
async def post_backup_actions(self) -> None: ...
|
38
40
|
async def load_backups(self) -> None: ...
|
39
41
|
async def load_platforms(self) -> None: ...
|
40
42
|
def _read_backups(self) -> dict[str, Backup]: ...
|