Implement Volume Persistence

Adds a new volume_level: float field to the Preferences dataclass. This creates a dedicated entry in the preferences.json file to store the user's desired volume (from 0.0 to 1.0).
This commit is contained in:
imonlinux
2025-10-11 15:33:13 -07:00
committed by GitHub
parent d5eef16235
commit 6e63111e63
+1
View File
@@ -59,6 +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)
@dataclass