Skip to content

Commit

Permalink
Update homeassistant/components/ovo_energy/config_flow.py
Browse files Browse the repository at this point in the history
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
  • Loading branch information
timmo001 and epenet committed Aug 5, 2022
1 parent 58f5762 commit 9e268bc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions homeassistant/components/ovo_energy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,14 @@ async def async_step_user(
step_id="user", data_schema=USER_SCHEMA, errors=errors
)

async def async_step_reauth(
self,
user_input: Mapping[str, Any],
async def async_step_reauth(self, entry_data: Mapping[str, Any]) -> FlowResult:
"""Handle reauthorization request from OVO Energy."""
self.username = entry_data.get(CONF_USERNAME)

return await self.async_step_reauth_confirm()

async def async_step_reauth_confirm(
self, user_input: dict[str, Any] | None = None
) -> FlowResult:
"""Handle configuration by re-auth."""
errors = {}
Expand Down

0 comments on commit 9e268bc

Please sign in to comment.