mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Ensure ovo_energy config flow title_placeholders items are [str, str] (#127204)
This commit is contained in:
parent
ee8f4a5367
commit
df6370dd61
@ -90,7 +90,9 @@ class OVOEnergyFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user