From 8f20ece6bb042e48f80a235e8aca88c8235bce0e Mon Sep 17 00:00:00 2001 From: Steven Engelbert Date: Mon, 19 May 2025 16:04:36 -0400 Subject: [PATCH] Add ZoneConnectionState enum, fix typo --- pyamplipi/models.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyamplipi/models.py b/pyamplipi/models.py index 750979c..9a99c51 100644 --- a/pyamplipi/models.py +++ b/pyamplipi/models.py @@ -148,6 +148,14 @@ class StreamCommand(str, Enum): BAN = 'ban' SHELVE = 'shelve' +class ZoneConnectionState(int, Enum): + """ Reflects if a zone is off or disconnected, or what source it's connected to """ + OFF = -2 + DISCONNECTED = -1 + SOURCE_1 = 0 + SOURCE_2 = 1 + SOURCE_3 = 2 + SOURCE_4 = 3 class PresetState(BaseModel): """ A set of partial configuration changes to make to sources, zones, and groups """ @@ -199,7 +207,7 @@ class FirmwareInfo(BaseModel): class Info(BaseModel): - config_file: str = 'Uknown' + config_file: str = 'Unknown' version: str = 'Unknown' mock_ctrl: bool = False mock_streams: bool = False