|
@@ -127,7 +127,10 @@ class TuyaLocalDevice(object):
|
|
|
raise e
|
|
raise e
|
|
|
|
|
|
|
|
# we handle retries at a higher level so we can rotate protocol version
|
|
# we handle retries at a higher level so we can rotate protocol version
|
|
|
- self._api.set_socketRetryLimit(1)
|
|
|
|
|
|
|
+ # on the other hand, protocol 3.4 devices send encrypted null ACKs that
|
|
|
|
|
+ # often get mixed in, so we need to retry a couple of times before resorting
|
|
|
|
|
+ # to recovery measures that seem to make things worse.
|
|
|
|
|
+ self._api.set_socketRetryLimit(2)
|
|
|
if self._api.parent:
|
|
if self._api.parent:
|
|
|
# Retries cause problems for other children of the parent device
|
|
# Retries cause problems for other children of the parent device
|
|
|
self._api.parent.set_socketRetryLimit(1)
|
|
self._api.parent.set_socketRetryLimit(1)
|