diff --git a/homeassistant/components/tuya/__init__.py b/homeassistant/components/tuya/__init__.py index b7a12e7c548..93343cdca92 100644 --- a/homeassistant/components/tuya/__init__.py +++ b/homeassistant/components/tuya/__init__.py @@ -69,7 +69,7 @@ def setup(hass, config, retry_delay=FIRST_RETRY_TIME): try: tuya.init(username, password, country_code, platform) - except RequestsConnectionError as ex: + except RequestsConnectionError: _LOGGER.warning( "Connection error during integration setup. Will retry in %s seconds",