From e9fd881cff547f4dd76fb7baa0acaad7edf654cb Mon Sep 17 00:00:00 2001 From: uzlonewolf Date: Sun, 23 Jun 2024 04:38:24 -0700 Subject: [PATCH] Add force-scanning v3.5 devices to scanner --- tinytuya/scanner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tinytuya/scanner.py b/tinytuya/scanner.py index 2b214cd..a5772ef 100644 --- a/tinytuya/scanner.py +++ b/tinytuya/scanner.py @@ -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: