Skip to content

Commit

Permalink
Generate v2025.2.0b2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 31, 2025
1 parent fb037a8 commit 3136069
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
1 change: 1 addition & 0 deletions homeassistant-stubs/components/assist_satellite/const.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ CONNECTION_TEST_DATA: HassKey[dict[str, asyncio.Event]]

class AssistSatelliteEntityFeature(IntFlag):
ANNOUNCE = 1
START_CONVERSATION = 2
6 changes: 5 additions & 1 deletion homeassistant-stubs/components/assist_satellite/entity.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ from abc import abstractmethod
from collections.abc import AsyncIterable
from dataclasses import dataclass
from enum import StrEnum
from homeassistant.components import media_source as media_source, stt as stt, tts as tts
from homeassistant.components import conversation as conversation, media_source as media_source, stt as stt, tts as tts
from homeassistant.components.assist_pipeline import AudioSettings as AudioSettings, OPTION_PREFERRED as OPTION_PREFERRED, PipelineEvent as PipelineEvent, PipelineEventType as PipelineEventType, PipelineStage as PipelineStage, async_get_pipeline as async_get_pipeline, async_get_pipelines as async_get_pipelines, async_pipeline_from_audio_stream as async_pipeline_from_audio_stream, vad as vad
from homeassistant.components.media_player import async_process_play_media_url as async_process_play_media_url
from homeassistant.core import Context as Context, callback as callback
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
from homeassistant.helpers import entity as entity
from homeassistant.helpers.entity import EntityDescription as EntityDescription
from typing import Any, Final, Literal, final
Expand Down Expand Up @@ -55,6 +56,7 @@ class AssistSatelliteEntity(entity.Entity, metaclass=abc.ABCMeta):
_conversation_id_time: float | None
_run_has_tts: bool
_is_announcing: bool
_extra_system_prompt: str | None
_wake_word_intercept_future: asyncio.Future[str | None] | None
_attr_tts_options: dict[str, Any] | None
_pipeline_task: asyncio.Task | None
Expand All @@ -76,6 +78,8 @@ class AssistSatelliteEntity(entity.Entity, metaclass=abc.ABCMeta):
async def async_intercept_wake_word(self) -> str | None: ...
async def async_internal_announce(self, message: str | None = None, media_id: str | None = None) -> None: ...
async def async_announce(self, announcement: AssistSatelliteAnnouncement) -> None: ...
async def async_internal_start_conversation(self, start_message: str | None = None, start_media_id: str | None = None, extra_system_prompt: str | None = None) -> None: ...
async def async_start_conversation(self, start_announcement: AssistSatelliteAnnouncement) -> None: ...
async def async_accept_pipeline_from_satellite(self, audio_stream: AsyncIterable[bytes], start_stage: PipelineStage = ..., end_stage: PipelineStage = ..., wake_word_phrase: str | None = None) -> None: ...
async def _cancel_running_pipeline(self) -> None: ...
@abstractmethod
Expand Down
5 changes: 5 additions & 0 deletions homeassistant-stubs/components/backup/agent.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class BackupAgentUnreachableError(BackupAgentError):
error_code: str
_message: str

class BackupNotFound(BackupAgentError):
error_code: str

class BackupAgent(abc.ABC, metaclass=abc.ABCMeta):
domain: str
name: str
Expand All @@ -33,6 +36,8 @@ class BackupAgent(abc.ABC, metaclass=abc.ABCMeta):
class LocalBackupAgent(BackupAgent, metaclass=abc.ABCMeta):
@abc.abstractmethod
def get_backup_path(self, backup_id: str) -> Path: ...
@abc.abstractmethod
def get_new_backup_path(self, backup: AgentBackup) -> Path: ...

class BackupAgentPlatformProtocol(Protocol):
async def async_get_backup_agents(self, hass: HomeAssistant, **kwargs: Any) -> list[BackupAgent]: ...
Expand Down
7 changes: 4 additions & 3 deletions homeassistant-stubs/components/backup/backup.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .agent import BackupAgent as BackupAgent, LocalBackupAgent as LocalBackupAgent
from .agent import BackupAgent as BackupAgent, BackupNotFound as BackupNotFound, LocalBackupAgent as LocalBackupAgent
from .const import DOMAIN as DOMAIN, LOGGER as LOGGER
from .models import AgentBackup as AgentBackup
from .util import read_backup as read_backup
Expand All @@ -17,14 +17,15 @@ class CoreLocalBackupAgent(LocalBackupAgent):
unique_id: str
_hass: Incomplete
_backup_dir: Incomplete
_backups: dict[str, AgentBackup]
_backups: dict[str, tuple[AgentBackup, Path]]
_loaded_backups: bool
def __init__(self, hass: HomeAssistant) -> None: ...
async def _load_backups(self) -> None: ...
def _read_backups(self) -> dict[str, AgentBackup]: ...
def _read_backups(self) -> dict[str, tuple[AgentBackup, Path]]: ...
async def async_download_backup(self, backup_id: str, **kwargs: Any) -> AsyncIterator[bytes]: ...
async def async_upload_backup(self, *, open_stream: Callable[[], Coroutine[Any, Any, AsyncIterator[bytes]]], backup: AgentBackup, **kwargs: Any) -> None: ...
async def async_list_backups(self, **kwargs: Any) -> list[AgentBackup]: ...
async def async_get_backup(self, backup_id: str, **kwargs: Any) -> AgentBackup | None: ...
def get_backup_path(self, backup_id: str) -> Path: ...
def get_new_backup_path(self, backup: AgentBackup) -> Path: ...
async def async_delete_backup(self, backup_id: str, **kwargs: Any) -> None: ...
2 changes: 1 addition & 1 deletion homeassistant_core
Submodule homeassistant_core updated 48 files
+1 −0 homeassistant/backup_restore.py
+1 −0 homeassistant/components/assist_pipeline/pipeline.py
+15 −0 homeassistant/components/assist_satellite/__init__.py
+3 −0 homeassistant/components/assist_satellite/const.py
+58 −1 homeassistant/components/assist_satellite/entity.py
+3 −0 homeassistant/components/assist_satellite/icons.json
+20 −0 homeassistant/components/assist_satellite/services.yaml
+18 −0 homeassistant/components/assist_satellite/strings.json
+12 −1 homeassistant/components/backup/agent.py
+27 −14 homeassistant/components/backup/backup.py
+22 −16 homeassistant/components/backup/manager.py
+1 −1 homeassistant/components/frontend/manifest.json
+4 −9 homeassistant/components/google_drive/backup.py
+9 −8 homeassistant/components/hassio/backup.py
+1 −1 homeassistant/components/nest/manifest.json
+7 −1 homeassistant/components/onedrive/backup.py
+5 −2 homeassistant/components/onedrive/config_flow.py
+1 −0 homeassistant/components/onewire/config_flow.py
+3 −0 homeassistant/components/onewire/strings.json
+2 −2 homeassistant/components/shelly/number.py
+10 −6 homeassistant/components/smlight/coordinator.py
+7 −3 homeassistant/components/sonos/__init__.py
+7 −1 homeassistant/components/synology_dsm/strings.json
+30 −8 homeassistant/components/voip/assist_satellite.py
+3 −1 homeassistant/components/xbox/__init__.py
+4 −2 homeassistant/components/xbox/api.py
+1 −1 homeassistant/components/zha/manifest.json
+1 −1 homeassistant/const.py
+2 −0 homeassistant/helpers/service.py
+1 −1 homeassistant/package_constraints.txt
+1 −1 pyproject.toml
+3 −3 requirements_all.txt
+3 −3 requirements_test_all.txt
+14 −1 tests/components/assist_satellite/conftest.py
+115 −13 tests/components/assist_satellite/test_entity.py
+15 −2 tests/components/backup/common.py
+7 −3 tests/components/backup/conftest.py
+28 −5 tests/components/backup/snapshots/test_backup.ambr
+38 −12 tests/components/backup/test_backup.py
+18 −11 tests/components/backup/test_http.py
+73 −19 tests/components/backup/test_manager.py
+3 −3 tests/components/google_drive/test_backup.py
+218 −58 tests/components/hassio/test_backup.py
+1 −1 tests/components/onedrive/conftest.py
+23 −1 tests/components/onedrive/test_backup.py
+42 −2 tests/components/smlight/test_init.py
+1 −1 tests/components/smlight/test_update.py
+105 −2 tests/components/voip/test_voip.py
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ keywords = ["homeassistant", "typing", "pep484"]
requires-python = ">=3.13,<3.14"
dynamic = ["version"]
dependencies = [
"homeassistant==2025.2.0b1",
"homeassistant==2025.2.0b2",
]

[dependency-groups]
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3136069

Please sign in to comment.