From e5095e1774d81b018503fe431514b63dcde70c32 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 16 Mar 2026 12:06:37 +0100 Subject: [PATCH] Fix Vlan model to use parent field matching Supervisor API The Supervisor API has returned "parent" (not "interface") in the vlan object since vlan support was added in Dec 2020. Rename the field to match the actual API response and prevent mashumaro deserialization failures on systems with VLAN interfaces configured. Co-Authored-By: Claude Sonnet 4.6 --- aiohasupervisor/models/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohasupervisor/models/network.py b/aiohasupervisor/models/network.py index d27f4d4..a312a35 100644 --- a/aiohasupervisor/models/network.py +++ b/aiohasupervisor/models/network.py @@ -124,7 +124,7 @@ class Vlan(ResponseData): """Vlan model.""" id: int - interface: str | None + parent: str | None @dataclass(frozen=True, slots=True)