Skip to content

Commit

Permalink
Fix parsing from cloud data, sending 0x00 in firmwareVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
baudneo committed Nov 28, 2024
1 parent 0537d6d commit be2ce77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cync-lan.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ def version(self, value: Union[str, int]) -> None:
# it is empty
logger.debug(f"{self.lp} in CyncDevice.version(), the passed value is an empty string!")
else:
self._version = int(value.replace(".", "").strip())
self._version = int(value.replace(".", "").replace('\0', '').strip())

def check_dev_type(self, dev_type: int) -> dict:
dev_types = {}
Expand Down

0 comments on commit be2ce77

Please sign in to comment.