Skip to content

Commit

Permalink
Handle devices reporting no audio support (Sky)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Jan 4, 2025
1 parent 3dcffd1 commit 0fb2b7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/demetriek/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class Range(DataClassORJSONMixin):
class Audio(DataClassORJSONMixin):
"""Object holding the audio state of an LaMetric device."""

volume: int
available: bool = True
volume: int | None
volume_limit: Range | None
volume_range: Range | None

Expand Down

0 comments on commit 0fb2b7f

Please sign in to comment.