From a435cc97e719a438b4c0b1ad28631790c705584e Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Sun, 12 Oct 2025 12:59:42 -0700 Subject: [PATCH] Implement MQTT for Advanced LVA Controls Includes various compatibility fixes, reversions, and clean-up from the previous development cycle to create a stable base for the MQTT implementation. This ensures the application starts reliably with the pinned aioesphomeapi version. --- linux_voice_assistant/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linux_voice_assistant/models.py b/linux_voice_assistant/models.py index bbc9ced..ddd0ab9 100644 --- a/linux_voice_assistant/models.py +++ b/linux_voice_assistant/models.py @@ -64,6 +64,7 @@ class Preferences: @dataclass class ServerState: + # --- Fields WITHOUT default values --- name: str mac_address: str audio_queue: "Queue[Optional[bytes]]" @@ -80,15 +81,16 @@ class ServerState: libtensorflowlite_c_path: Path event_bus: EventBus loop: asyncio.AbstractEventLoop - - # openWakeWord + # MOVED openWakeWord fields here oww_melspectrogram_path: Path oww_embedding_path: Path + # --- Fields WITH default values --- media_player_entity: "Optional[MediaPlayerEntity]" = None satellite: "Optional[VoiceSatelliteProtocol]" = None wake_words_changed: bool = False refractory_seconds: float = 2.0 + mic_muted: bool = False def save_preferences(self) -> None: """Save preferences as JSON."""