mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 22:25:13 +02:00
Rename exception
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from requests.exceptions import ConnectionError
|
from requests.exceptions import ConnectionError as RequestsConnectionError
|
||||||
from tuyaha import TuyaApi
|
from tuyaha import TuyaApi
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ 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 ConnectionError:
|
except RequestsConnectionError:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Connection error initializing %s domain. Will retry in %s seconds...",
|
"Connection error initializing %s domain. Will retry in %s seconds...",
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
|
Reference in New Issue
Block a user