mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Add logging to NYT Games setup failures (#126832)
This commit is contained in:
parent
9d6569d515
commit
1380ed7328
@ -9,7 +9,7 @@ from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
|||||||
from homeassistant.const import CONF_TOKEN
|
from homeassistant.const import CONF_TOKEN
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN, LOGGER
|
||||||
|
|
||||||
|
|
||||||
class NYTGamesConfigFlow(ConfigFlow, domain=DOMAIN):
|
class NYTGamesConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||||
@ -30,6 +30,7 @@ class NYTGamesConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
except NYTGamesError:
|
except NYTGamesError:
|
||||||
errors["base"] = "cannot_connect"
|
errors["base"] = "cannot_connect"
|
||||||
except Exception: # noqa: BLE001
|
except Exception: # noqa: BLE001
|
||||||
|
LOGGER.exception("Unexpected error")
|
||||||
errors["base"] = "unknown"
|
errors["base"] = "unknown"
|
||||||
else:
|
else:
|
||||||
await self.async_set_unique_id(str(user_id))
|
await self.async_set_unique_id(str(user_id))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user