Skip to content

Commit

Permalink
Make sure set_version() is given a float (jasonacox#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzlonewolf committed Jun 24, 2024
1 parent 7259b8d commit 9420ec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tinytuya/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 9420ec6

Please sign in to comment.