Skip to content

Commit

Permalink
Make the source info definition a little looser for older api examples
Browse files Browse the repository at this point in the history
  • Loading branch information
linknum23 committed Jan 9, 2025
1 parent 5373854 commit 5724718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyamplipi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

class SourceInfo(BaseModel):
""" Info about the current audio playing from the connected stream (generated during playback) """
name: str
state: str # paused, playing, stopped, unknown, loading ???
name: Optional[str] = None
state: Optional[str] = None # paused, playing, stopped, ???
artist: Optional[str] = None
track: Optional[str] = None
album: Optional[str] = None
Expand Down

0 comments on commit 5724718

Please sign in to comment.