refactor(api): fix deprecation warnings (#2839)
Fix some deprecation warnings related to the pydantic upgrade.
This commit is contained in:
parent
8ae4dce9e7
commit
d80100a216
3 changed files with 6 additions and 6 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue