From 9b8a18d1b247f0de2ea1e0e60332c8b3891dbc97 Mon Sep 17 00:00:00 2001 From: Austin Mroczek Date: Mon, 17 Feb 2020 08:33:53 -0800 Subject: [PATCH] Update data_entry_flow_index.md (#408) It seems the code has moved to async_create_entry() but the docs have not. Changes all listings of create_entry() to async_create_entry() --- docs/data_entry_flow_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data_entry_flow_index.md b/docs/data_entry_flow_index.md index 045f2830..1ddf1264 100644 --- a/docs/data_entry_flow_index.md +++ b/docs/data_entry_flow_index.md @@ -132,7 +132,7 @@ class ExampleConfigFlow(data_entry_flow.FlowHandler): valid = await is_valid(user_input) if valid: # See next section on create entry usage - return self.create_entry(...) + return self.async_create_entry(...) errors["base"] = "auth_error" @@ -174,7 +174,7 @@ When the result is "Create Entry", an entry will be created and passed to the pa ```python class ExampleConfigFlow(data_entry_flow.FlowHandler): async def async_step_user(self, user_input=None): - return self.create_entry( + return self.async_create_entry( title="Title of the entry", data={ "something_special": user_input["username"]