From bceb7640ef6abfa5cfc125a906348c5c74800b67 Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Sat, 11 Oct 2025 17:07:15 -0700 Subject: [PATCH] Add Microphone Mute Switch Entity Adds a mic_muted: bool flag to the ServerState dataclass to globally track the mute status of the microphone. --- linux_voice_assistant/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux_voice_assistant/models.py b/linux_voice_assistant/models.py index 2cb22dc..f007e68 100644 --- a/linux_voice_assistant/models.py +++ b/linux_voice_assistant/models.py @@ -59,7 +59,7 @@ class AvailableWakeWord: @dataclass class Preferences: active_wake_words: List[str] = field(default_factory=list) - volume_level: float = 1.0 # ADD THIS LINE (volume from 0.0 to 1.0) + volume_level: float = 1.0 @dataclass @@ -89,6 +89,7 @@ class ServerState: satellite: "Optional[VoiceSatelliteProtocol]" = None wake_words_changed: bool = False refractory_seconds: float = 2.0 + mic_muted: bool = False # ADD THIS LINE def save_preferences(self) -> None: """Save preferences as JSON."""