Skip to content

Commit

Permalink
Add force-scanning v3.5 devices to scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
uzlonewolf committed Jun 23, 2024
1 parent d088823 commit e9fd881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tinytuya/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def read_data( self ):
prefix_offset = data.find(tinytuya.PREFIX_BIN)
if prefix_offset >= 0:
data = data[prefix_offset:]
self.try_v35 = False
elif self.try_v35 and self.deviceinfo['version'] == 3.4:
prefix_offset = data.find(tinytuya.PREFIX_6699_BIN)
if prefix_offset >= 0:
Expand Down

0 comments on commit e9fd881

Please sign in to comment.