shelly_mcp: Gen-Feld in Status aus Device-Config

This commit is contained in:
Homelab Cursor 2026-08-01 15:30:31 +02:00
parent 3ea427e3f0
commit 3ba8edb59a

View file

@ -231,7 +231,7 @@ def _status_gen2(d: dict) -> dict:
out: dict = {
"ip": ip,
"name": (info.get("name") if isinstance(info, dict) else None) or d["name"],
"gen": 2,
"gen": int(d.get("gen", 2)),
"kind": d["kind"],
"id": info.get("id") if isinstance(info, dict) else None,
}