From 280887789578b4125db4db7a73d210b39c5c4b45 Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Tue, 18 Nov 2025 11:51:04 -0800 Subject: [PATCH] Update models.py Uploaded wrong version of the file. --- linux_voice_assistant/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux_voice_assistant/models.py b/linux_voice_assistant/models.py index 97ae49e..2114ca6 100644 --- a/linux_voice_assistant/models.py +++ b/linux_voice_assistant/models.py @@ -84,14 +84,15 @@ class ServerState: timer_finished_sound: str preferences_path: Path download_dir: Path - preferences: Preferences # <-- MOVED UP + preferences: Preferences # --- Fields WITH default values --- satellite: "Optional[VoiceSatelliteProtocol]" = None wake_words_changed: bool = False refractory_seconds: float = 2.0 mic_muted: bool = False - + shutdown: bool = False + def save_preferences(self) -> None: """Save preferences as JSON.""" _LOGGER.debug("Saving preferences: %s", self.preferences_path)