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:
Andres Eduardo Garcia Marquez 2026-03-03 09:35:03 -05:00
parent 66bb08b683
commit 82b99225bc
1 changed files with 1 additions and 1 deletions

2
tv.py
View File

@ -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 ────────────────────────────────────────────────