diff --git a/custom_components/tedee/config_flow.py b/custom_components/tedee/config_flow.py index 0d9bced..11125a7 100644 --- a/custom_components/tedee/config_flow.py +++ b/custom_components/tedee/config_flow.py @@ -1,4 +1,6 @@ """Config flow for Tedee integration.""" +import logging + from collections.abc import Mapping from typing import Any @@ -33,6 +35,7 @@ NAME, ) +_LOGGER = logging.getLogger(__name__) async def validate_input(user_input: dict[str, Any]) -> bool: """Validate the user input allows us to connect.""" @@ -44,8 +47,10 @@ async def validate_input(user_input: dict[str, Any]) -> bool: try: await tedee_client.get_locks() except (TedeeAuthException, TedeeLocalAuthException) as ex: + _LOGGER.exception("Exception in validating input %s", ex) raise InvalidAuth from ex except (TedeeClientException, Exception) as ex: + _LOGGER.exception("Exception in validating input %s", ex) raise CannotConnect from ex return True @@ -56,6 +61,7 @@ async def get_local_bridge(host: str, local_access_token: str) -> TedeeBridge: try: return await tedee_client.get_local_bridge() except (TedeeClientException, Exception) as ex: + _LOGGER.exception("Exception in validating input %s", ex) raise CannotConnect from ex diff --git a/custom_components/tedee/manifest.json b/custom_components/tedee/manifest.json index 5c247c6..bca90bd 100644 --- a/custom_components/tedee/manifest.json +++ b/custom_components/tedee/manifest.json @@ -7,6 +7,6 @@ "documentation": "https://github.com/patrickhilker/tedee_hass_integration", "iot_class": "local_push", "issue_tracker": "https://github.com/patrickhilker/tedee_hass_integration/issues", - "requirements": ["pytedee-async==0.2.2"], + "requirements": ["pytedee-async==0.2.4"], "version": "2023.11.0" }