fix: rename 'message' key to 'note' in info() offline response
Prevents _ok() from getting duplicate 'message' argument when unpacking the dict returned by info() when TV is unreachable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
66bb08b683
commit
82b99225bc
2
tv.py
2
tv.py
|
|
@ -233,7 +233,7 @@ class SamsungTV:
|
||||||
"volume": device.get("currentVolume"),
|
"volume": device.get("currentVolume"),
|
||||||
}
|
}
|
||||||
except (URLError, OSError):
|
except (URLError, OSError):
|
||||||
return {"power": "off", "ip": ip, "message": "TV appears to be off"}
|
return {"power": "off", "ip": ip, "note": "TV appears to be off"}
|
||||||
|
|
||||||
# ── Power ────────────────────────────────────────────────
|
# ── Power ────────────────────────────────────────────────
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue