Test always catching exceptions

This commit is contained in:
ollo69
2020-04-26 15:42:02 +02:00
parent ee1f86a499
commit 66b3c56905

View File

@@ -70,8 +70,6 @@ def setup(hass, config, retry_delay=FIRST_RETRY_TIME):
try: try:
tuya.init(username, password, country_code, platform) tuya.init(username, password, country_code, platform)
except RequestsConnectionError as ex: except RequestsConnectionError as ex:
if "NewConnectionError" not in str(ex):
raise ex
_LOGGER.warning( _LOGGER.warning(
"Connection error during integration setup. Will retry in %s seconds", "Connection error during integration setup. Will retry in %s seconds",