diff --git a/tinytuya/core.py b/tinytuya/core.py index d7a8cbb..dc44466 100644 --- a/tinytuya/core.py +++ b/tinytuya/core.py @@ -1654,6 +1654,7 @@ def add_dps_to_request(self, dp_indicies): self.dps_to_request.update({str(index): None for index in dp_indicies}) def set_version(self, version): # pylint: disable=W0621 + version = float(version) self.version = version self.version_str = "v" + str(version) self.version_bytes = str(version).encode('latin1')