Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pyamplipi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down Expand Up @@ -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
Expand Down