Enable multiple requests in smartprotocol (#584)

* Enable multiple requests in smartprotocol

* Update following review

* Remove error_code parameter in exceptions
This commit is contained in:
sdb9696
2023-12-20 17:08:04 +00:00
committed by GitHub
parent 20ea6700a5
commit 6819c746d7
12 changed files with 260 additions and 76 deletions

View File

@@ -62,6 +62,13 @@ class IotProtocol(TPLinkProtocol):
"Unable to authenticate with %s, not retrying", self._host
)
raise auex
except SmartDeviceException as ex:
_LOGGER.debug(
"Unable to connect to the device: %s, not retrying: %s",
self._host,
ex,
)
raise ex
except Exception as ex:
await self.close()
if retry >= retry_count: