diff --git a/pyproject.toml b/pyproject.toml index 8be0f6e..70154ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "python_thingset" -version = "0.2.4" +version = "0.2.5" description = "A Python library for ThingSet functionality" authors = [ { name = "Adam Mitchell", email = "adam.mitchell@brillpower.com" } diff --git a/python_thingset/response.py b/python_thingset/response.py index 128c2eb..1af4c23 100644 --- a/python_thingset/response.py +++ b/python_thingset/response.py @@ -223,7 +223,7 @@ def _get_status_byte(self, data: bytes) -> int: return None def _strip_null(self, data: bytes) -> bytes: - return data[1:].replace(b"\xf6", b"") + return data[1:].replace(b"\xf6", b"", 1) @property def mode(self) -> int: