Use reference strings in Notion (#41211)

This commit is contained in:
SNoof85 2020-10-05 15:13:37 +02:00 committed by GitHub
parent 20a136e2a1
commit c7027e2828
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -47,6 +47,6 @@ class NotionFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
user_input[CONF_USERNAME], user_input[CONF_PASSWORD], session
)
except NotionError:
return await self._show_form({"base": "invalid_credentials"})
return await self._show_form({"base": "invalid_auth"})
return self.async_create_entry(title=user_input[CONF_USERNAME], data=user_input)