From 4c4a741c695edd59cce40a7a6f79635c527e59b3 Mon Sep 17 00:00:00 2001 From: ollo69 <60491700+ollo69@users.noreply.github.com> Date: Sat, 11 Apr 2020 23:34:19 +0200 Subject: [PATCH] Rename exception --- homeassistant/components/tuya/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/tuya/__init__.py b/homeassistant/components/tuya/__init__.py index 7a6defeee90..357c2906229 100644 --- a/homeassistant/components/tuya/__init__.py +++ b/homeassistant/components/tuya/__init__.py @@ -2,7 +2,7 @@ from datetime import timedelta import logging -from requests.exceptions import ConnectionError +from requests.exceptions import ConnectionError as RequestsConnectionError from tuyaha import TuyaApi import voluptuous as vol @@ -69,7 +69,7 @@ def setup(hass, config, retry_delay=FIRST_RETRY_TIME): try: tuya.init(username, password, country_code, platform) - except ConnectionError: + except RequestsConnectionError: _LOGGER.warning( "Connection error initializing %s domain. Will retry in %s seconds...", DOMAIN,