shelly_mcp: Gen-Feld in Status aus Device-Config
This commit is contained in:
parent
3ea427e3f0
commit
3ba8edb59a
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue