Update the OP25 generator model to take either a string or an int
Some checks failed
release-tag / release-image (push) Successful in 1h14m31s
Lint / lint (push) Failing after 12s

This commit is contained in:
Logan Cusano
2025-06-22 23:25:13 -04:00
parent 3086da0e2b
commit 6324f82789

View File

@@ -1,5 +1,5 @@
from pydantic import BaseModel
from typing import List, Optional
from typing import List, Optional, Union
from enum import Enum
@@ -25,7 +25,7 @@ class TalkgroupTag(BaseModel):
class ConfigGenerator(BaseModel):
type: DecodeMode
systemName: str
channels: List[str]
channels: List[Union[int, str]]
tags: Optional[List[TalkgroupTag]]
whitelist: Optional[List[int]]