Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure ovo_energy config flow title_placeholders items are [str, str] #127204

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion homeassistant/components/ovo_energy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ async def async_step_reauth(
if user_input and user_input.get(CONF_ACCOUNT):
self.account = user_input[CONF_ACCOUNT]

self.context["title_placeholders"] = {CONF_USERNAME: self.username}
if self.username:
# If we have a username, use it as flow title
self.context["title_placeholders"] = {CONF_USERNAME: self.username}

if user_input is not None and user_input.get(CONF_PASSWORD) is not None:
client = OVOEnergy(
Expand Down