Skip to content

Commit

Permalink
fix: missing interpolation for off and toggle command (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaurele authored Dec 8, 2024
1 parent 4ce4377 commit 13e053b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipx800/ipx800.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 13e053b

Please sign in to comment.