Changed Localization to JSON String

This commit is contained in:
2026-02-17 10:37:18 +02:00
parent 59c5049305
commit cb2c5c6aba
4 changed files with 59 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
from pydantic import BaseModel, Field
from typing import Dict, List, Optional
from typing import List, Optional
from enum import Enum
@@ -17,8 +17,8 @@ class MelodyTone(str, Enum):
class MelodyInfo(BaseModel):
name: Dict[str, str] = {}
description: Dict[str, str] = {}
name: str = ""
description: str = ""
melodyTone: MelodyTone = MelodyTone.normal
customTags: List[str] = []
minSpeed: int = 0