Skip to content

Commit

Permalink
fix: config_flow improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
geertmeersman committed Jan 10, 2025
1 parent e129953 commit 9aa61c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/mobile_vikings/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def test_connection(self, user_input: dict | None = None) -> dict:
profile = await self.async_validate_input(user_input)
except AssertionError as exception:
errors["base"] = "cannot_connect"
_LOGGER.debug(f"[async_step_password|login] AssertionError {exception}")
_LOGGER.debug(f"[test_connection|login] AssertionError {exception}")
except ConnectionError:
errors["base"] = "cannot_connect"
except MobileVikingsServiceException:
Expand All @@ -128,7 +128,7 @@ async def async_step_password(self, user_input: dict | None = None) -> FlowResul
password=user_input[CONF_PASSWORD],
)
_LOGGER.debug(
f"Password changed for {test['user_details'].get('customer_number')}"
f"Password changed for {test['profile'].get('customer_number')}"
)
return self.finish_flow()

Expand Down Expand Up @@ -156,6 +156,7 @@ class MobileVikingsOptionsFlow(MobileVikingsCommonFlow, OptionsFlow):
def __init__(self, config_entry: ConfigEntry) -> None:
"""Initialize MobileVikings options flow."""
self.config_entry = config_entry
self.general_settings = {}
super().__init__(initial_data=config_entry.data) # type: ignore[arg-type]

@callback
Expand Down

0 comments on commit 9aa61c2

Please sign in to comment.