From 66b3c56905a3a571db55498ed07a90d6ca4c6051 Mon Sep 17 00:00:00 2001 From: ollo69 <60491700+ollo69@users.noreply.github.com> Date: Sun, 26 Apr 2020 15:42:02 +0200 Subject: [PATCH] Test always catching exceptions --- homeassistant/components/tuya/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/homeassistant/components/tuya/__init__.py b/homeassistant/components/tuya/__init__.py index 9253fd2d4b5..b7a12e7c548 100644 --- a/homeassistant/components/tuya/__init__.py +++ b/homeassistant/components/tuya/__init__.py @@ -70,8 +70,6 @@ def setup(hass, config, retry_delay=FIRST_RETRY_TIME): try: tuya.init(username, password, country_code, platform) except RequestsConnectionError as ex: - if "NewConnectionError" not in str(ex): - raise ex _LOGGER.warning( "Connection error during integration setup. Will retry in %s seconds",