Adjust data entry flow to have an option data_schema (#67637)

This commit is contained in:
Franck Nijhof
2022-03-04 16:42:02 +01:00
committed by GitHub
parent 3eadc67d59
commit 5965b015dd
21 changed files with 10 additions and 45 deletions

View File

@@ -69,7 +69,7 @@ class FlowResult(TypedDict, total=False):
title: str
data: Mapping[str, Any]
step_id: str
data_schema: vol.Schema
data_schema: vol.Schema | None
extra: str
required: bool
errors: dict[str, str] | None
@@ -408,7 +408,7 @@ class FlowHandler:
self,
*,
step_id: str,
data_schema: vol.Schema = None,
data_schema: vol.Schema | None = None,
errors: dict[str, str] | None = None,
description_placeholders: dict[str, Any] | None = None,
last_step: bool | None = None,