Remove redundant logging from UptimeRobot config_flow (#142940)

This commit is contained in:
Simone Chemelli 2025-04-14 19:35:30 +02:00 committed by GitHub
parent be6e1e5e15
commit 0479fc6f54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,11 +44,9 @@ class UptimeRobotConfigFlow(ConfigFlow, domain=DOMAIN):
try:
response = await uptime_robot_api.async_get_account_details()
except UptimeRobotAuthenticationException as exception:
LOGGER.error(exception)
except UptimeRobotAuthenticationException:
errors["base"] = "invalid_api_key"
except UptimeRobotException as exception:
LOGGER.error(exception)
except UptimeRobotException:
errors["base"] = "cannot_connect"
except Exception as exception: # noqa: BLE001
LOGGER.exception(exception)