Skip to content

Commit

Permalink
Merge pull request #169 from pawel-szopinski/dev22
Browse files Browse the repository at this point in the history
skip DPS detection if it has already been set
  • Loading branch information
jasonacox authored Aug 16, 2022
2 parents 89e3ceb + 55af8d1 commit 2c81750
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tinytuya/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,9 @@ 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()
if self.dps_to_request == {}:
self.dps_to_request = {"1": None}
self.dps_to_request = self.detect_available_dps()

def set_socketPersistent(self, persist):
self.socketPersistent = persist
Expand Down

0 comments on commit 2c81750

Please sign in to comment.