Fix KeyError in config flow of Bring integration (#122136)

This commit is contained in:
Mr. Bubbles 2024-07-19 09:11:29 +02:00 committed by Franck Nijhof
parent d0d2fd7918
commit 1ef4332af6
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -58,7 +58,7 @@ class BringConfigFlow(ConfigFlow, domain=DOMAIN):
):
self._abort_if_unique_id_configured()
return self.async_create_entry(
title=self.info["name"] or user_input[CONF_EMAIL], data=user_input
title=self.info.get("name") or user_input[CONF_EMAIL], data=user_input
)
return self.async_show_form(