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

This commit is contained in:
Erik Montnemery 2024-10-01 14:33:40 +02:00 committed by GitHub
parent ee8f4a5367
commit df6370dd61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,6 +90,8 @@ class OVOEnergyFlowHandler(ConfigFlow, domain=DOMAIN):
if user_input and user_input.get(CONF_ACCOUNT):
self.account = user_input[CONF_ACCOUNT]
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: