Skip to content

Commit

Permalink
Merge branch '3.7.0' of https://github.com/alexualbu/localtuya into 3…
Browse files Browse the repository at this point in the history
….7.0
  • Loading branch information
alexualbu committed Apr 2, 2023
2 parents 09ce551 + f521b1b commit 5e3b619
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/localtuya/pytuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,6 @@ async def exchange(self, command, dps=None, cid=None):
seqno = MessageDispatcher.HEARTBEAT_SEQNO
elif command == UPDATEDPS:
seqno = MessageDispatcher.RESET_SEQNO
else:
seqno = self.seqno - 1

enc_payload = self._encode_message(payload)
self.debug("Dispatching sequence number %d", seqno)
Expand Down Expand Up @@ -983,6 +981,7 @@ async def detect_available_dps(self, cid=None):
for i in range(1, 100):
data["dps"][i] = 0

self.debug("Detected dps: %s", self.dps_cache)
return self.dps_cache

def add_dps_to_request(self, dp_indicies, cid=None):
Expand Down

0 comments on commit 5e3b619

Please sign in to comment.