Skip to content

Commit

Permalink
Fix bug in stream naming during serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
linknum23 committed Nov 12, 2024
1 parent 55bf540 commit 0d9354e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amplipi/ctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def sync_stream_info(self) -> None:
for sid, stream_inst in self.streams.items():
# TODO: this functionality should be in the unimplemented streams base class
# convert the stream instance info to stream data (serialize its current configuration)
st_type = type(stream_inst).__name__.lower()
st_type = type(stream_inst).stream_type
stream = models.Stream(id=sid, name=stream_inst.name, type=st_type)
for field in models.optional_stream_fields():
if field in stream_inst.__dict__:
Expand Down

0 comments on commit 0d9354e

Please sign in to comment.