fix: add smart_tv, printer, smartphone to backend _VALID_TYPES

The backend validator was rejecting the three new device types added
in the previous commit, returning HTTP 422.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-17 11:54:17 +02:00
parent 7b32e9b4fd
commit 9fe6b25786
+1 -1
View File
@@ -15,7 +15,7 @@ router = APIRouter()
_VALID_TYPES = { _VALID_TYPES = {
"server", "switch", "router", "nas", "gateway", "livebox", "access_point", "server", "switch", "router", "nas", "gateway", "livebox", "access_point",
"camera", "temperature", "sensor", "hub", "smart_plug", "alarm", "light", "camera", "temperature", "sensor", "hub", "smart_plug", "alarm", "light",
"doorbell", "desktop", "laptop", "other", "doorbell", "desktop", "laptop", "smart_tv", "printer", "smartphone", "other",
} }
_VALID_VIRT_TYPES = {None, "baremetal", "lxc", "qemu"} _VALID_VIRT_TYPES = {None, "baremetal", "lxc", "qemu"}