Log bare exceptions in the config flow (#135584)

* Log bare exceptions in the config flow

* add more

* Fix
This commit is contained in:
Joost Lekkerkerker
2025-03-25 10:34:05 +01:00
committed by GitHub
parent 348ebe1402
commit 615afeb4d5
45 changed files with 151 additions and 59 deletions
@@ -52,7 +52,7 @@ class HomeeConfigFlow(ConfigFlow, domain=DOMAIN):
errors["base"] = "cannot_connect"
except HomeeAuthenticationFailedException:
errors["base"] = "invalid_auth"
except Exception: # pylint: disable=broad-except
except Exception:
_LOGGER.exception("Unexpected exception")
errors["base"] = "unknown"
else: