Skip to content

Commit

Permalink
Fix serialization of notifications with no sound (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainGehrig authored Jan 4, 2025
1 parent ffcf066 commit 3dcffd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/demetriek/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ class Model(DataClassORJSONMixin):

cycles: int = 1
frames: list[Chart | Goal | Simple]
sound: SoundURL | Sound | None
sound: SoundURL | Sound | None = None

class Config(BaseConfig):

Check failure on line 199 in src/demetriek/models.py

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (D106)

src/demetriek/models.py:199:11: D106 Missing docstring in public nested class
omit_none = True


@dataclass(kw_only=True)
Expand Down

0 comments on commit 3dcffd1

Please sign in to comment.