Skip to content

Commit

Permalink
Add dps "1" seed to discovery for 3.2 prot
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Aug 14, 2022
1 parent 5601eab commit 89e3ceb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tinytuya/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ def __init__(
if ver == "3.2": # 3.2 behaves like 3.3 with device22
self.version = 3.3
self.dev_type="device22"
self.dps_to_request = {"1": None}
self.dps_to_request = self.detect_available_dps()
time.sleep(0.5)

Expand Down Expand Up @@ -819,6 +820,7 @@ def set_version(self, version):
if version == 3.2: # 3.2 behaves like 3.3 with device22
self.version = 3.3
self.dev_type="device22"
self.dps_to_request = {"1": None}
self.dps_to_request = self.detect_available_dps()

def set_socketPersistent(self, persist):
Expand Down

0 comments on commit 89e3ceb

Please sign in to comment.