Fix translation error in Reolink reauth flow (#120385)

This commit is contained in:
starkillerOG 2024-06-25 10:37:42 +02:00 committed by GitHub
parent 1d16cbec96
commit ddd8083302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,7 +123,10 @@ class ReolinkFlowHandler(ConfigFlow, domain=DOMAIN):
"""Dialog that informs the user that reauth is required."""
if user_input is not None:
return await self.async_step_user()
return self.async_show_form(step_id="reauth_confirm")
placeholders = {"name": self.context["title_placeholders"]["name"]}
return self.async_show_form(
step_id="reauth_confirm", description_placeholders=placeholders
)
async def async_step_dhcp(
self, discovery_info: dhcp.DhcpServiceInfo