From 82b99225bc09f8b505ff7f4611b86bb3d64c68cd Mon Sep 17 00:00:00 2001 From: Andres Eduardo Garcia Marquez Date: Tue, 3 Mar 2026 09:35:03 -0500 Subject: [PATCH] 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 --- tv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tv.py b/tv.py index cc1734d..a276db4 100644 --- a/tv.py +++ b/tv.py @@ -233,7 +233,7 @@ class SamsungTV: "volume": device.get("currentVolume"), } 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 ────────────────────────────────────────────────