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