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.
This commit is contained in:
imonlinux
2025-10-12 12:59:42 -07:00
committed by GitHub
parent 402a6d1855
commit a435cc97e7
+4 -2
View File
@@ -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."""