refactor(api): fix deprecation warnings (#2839)

Fix some deprecation warnings related to the pydantic upgrade.
This commit is contained in:
Jonas L 2023-12-27 15:46:38 +01:00 committed by GitHub
parent 8ae4dce9e7
commit d80100a216
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@ class StreamPreferencesView(views.APIView):
def get(self, request):
data = Preference.get_stream_preferences()
return Response(
data.dict(
data.model_dump(
include={
"input_fade_transition",
"message_format",
@ -32,7 +32,7 @@ class StreamStateView(views.APIView):
def get(self, request):
data = Preference.get_stream_state()
return Response(
data.dict(
data.model_dump(
include={
"input_main_connected",
"input_main_streaming",