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:
@@ -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"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user