mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Test always catching exceptions
This commit is contained in:
@@ -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",
|
||||||
|
Reference in New Issue
Block a user