From 13e053b8a4420bbafbab64d45c973e1605bef0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Aur=C3=A8le=20Brothier?= Date: Sun, 8 Dec 2024 15:51:31 +0100 Subject: [PATCH] fix: missing interpolation for off and toggle command (#106) --- ipx800/ipx800.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipx800/ipx800.py b/ipx800/ipx800.py index ae8555e..b38fa73 100644 --- a/ipx800/ipx800.py +++ b/ipx800/ipx800.py @@ -101,13 +101,13 @@ def on(self) -> bool: def off(self) -> bool: """Turn off and return True if it was successful.""" - params = {"Clear{self._code}": self.id} + params = {f"Clear{self._code}": self.id} self._request(params) return True def toggle(self) -> bool: """Toggle and return True if it was successful.""" - params = {"Toggle{self._code}": self.id} + params = {f"Toggle{self._code}": self.id} self._request(params) return True