diff --git a/infra/hermes/shelly_mcp.py b/infra/hermes/shelly_mcp.py index 9836c4f34..891192806 100755 --- a/infra/hermes/shelly_mcp.py +++ b/infra/hermes/shelly_mcp.py @@ -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, }