Log lutron_caseta exception on pairing failure (#140776)

pull/142779/head
J. Nick Koston 2025-04-11 13:57:47 -10:00 committed by GitHub
parent 49721a541a
commit ee37b32ca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ class LutronCasetaFlowHandler(ConfigFlow, domain=DOMAIN):
assets = None
try:
assets = await async_pair(self.data[CONF_HOST])
except (TimeoutError, OSError):
except (TimeoutError, OSError) as exc:
_LOGGER.debug("Pairing failed", exc_info=exc)
errors["base"] = "cannot_connect"
if not errors: