diff --git a/poetry.lock b/poetry.lock index c79f7925..dfd0ccd4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -934,13 +934,13 @@ tests = ["pytest", "simplejson"] [[package]] name = "mashumaro" -version = "3.14" +version = "3.15" description = "Fast and well tested serialization library" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" files = [ - {file = "mashumaro-3.14-py3-none-any.whl", hash = "sha256:c12a649599a8f7b1a0b35d18f12e678423c3066189f7bc7bd8dd431c5c8132c3"}, - {file = "mashumaro-3.14.tar.gz", hash = "sha256:5ef6f2b963892cbe9a4ceb3441dfbea37f8c3412523f25d42e9b3a7186555f1d"}, + {file = "mashumaro-3.15-py3-none-any.whl", hash = "sha256:cdd45ef5a4d09860846a3ee37a4c2f5f4bc70eb158caa55648c4c99451ca6c4c"}, + {file = "mashumaro-3.15.tar.gz", hash = "sha256:32a2a38a1e942a07f2cbf9c3061cb2a247714ee53e36a5958548b66bd116d0a9"}, ] [package.dependencies] diff --git a/src/spotifyaio/models.py b/src/spotifyaio/models.py index 75b299d9..802217e6 100644 --- a/src/spotifyaio/models.py +++ b/src/spotifyaio/models.py @@ -35,7 +35,7 @@ class DeviceType(StrEnum): class Device(DataClassORJSONMixin): """Device model.""" - device_id: str = field(metadata=field_options(alias="id")) + device_id: str | None = field(metadata=field_options(alias="id")) is_active: bool is_private_session: bool is_restricted: bool