From 9fe6b25786a2c118cac5104a096461c2cd4262b9 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sun, 17 May 2026 11:54:17 +0200 Subject: [PATCH] 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 --- backend/routers/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routers/devices.py b/backend/routers/devices.py index 7dc08c0..988859a 100644 --- a/backend/routers/devices.py +++ b/backend/routers/devices.py @@ -15,7 +15,7 @@ router = APIRouter() _VALID_TYPES = { "server", "switch", "router", "nas", "gateway", "livebox", "access_point", "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"}