16 lines
324 B
Python
16 lines
324 B
Python
from pydantic import BaseModel
|
|
from typing import List, Optional
|
|
|
|
|
|
class Device(BaseModel):
|
|
id: str # MAC-адрес или UUID
|
|
ip: str
|
|
name: str
|
|
room: str
|
|
|
|
|
|
class Group(BaseModel):
|
|
id: str
|
|
name: str
|
|
device_ids: List[str] # Список ID устройств, входящих в люстру
|