Skip to content

Commit

Permalink
#10 Log detailed exception message during test credentials of config …
Browse files Browse the repository at this point in the history
…form
  • Loading branch information
Fockaert committed Feb 13, 2021
1 parent f3eccb8 commit 8e04414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/rika_firenet/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import logging
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.core import callback

from .const import (CONF_DEFAULT_TEMPERATURE, CONF_PASSWORD, CONF_USERNAME, DOMAIN, PLATFORMS)
from .core import RikaFirenetCoordinator

_LOGGER = logging.getLogger(__name__)

class RikaFirenetFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
VERSION = 1
Expand Down Expand Up @@ -67,6 +69,7 @@ async def _test_credentials(self, username, password):
coordinator.setup()
return True
except Exception: # pylint: disable=broad-except
_LOGGER.exception("test_credentials_exception")
pass
return False

Expand Down

0 comments on commit 8e04414

Please sign in to comment.