From 9420ec66f8d3219d8ff06f05afb456690cdf3a76 Mon Sep 17 00:00:00 2001 From: uzlonewolf Date: Sun, 23 Jun 2024 21:12:02 -0700 Subject: [PATCH] Make sure set_version() is given a float (#507) --- tinytuya/core.py | 1 + 1 file changed, 1 insertion(+) 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')