diff --git a/charachorder/device.py b/charachorder/device.py index d8cc960..6447c78 100644 --- a/charachorder/device.py +++ b/charachorder/device.py @@ -194,7 +194,9 @@ def _maybe_commit(self, success, commit: bool) -> bool: def get_parameter(self, code: int) -> int: return int(self.execute("VAR", "B1", hex(code))[0]) - def set_parameter(self, code: int, value: int, *, commit: bool = False) -> bool: + def set_parameter( + self, code: int, value: int | str, *, commit: bool = False + ) -> bool: return self._maybe_commit( self.execute("VAR", "B2", hex(code), value)[0] == "0", commit )