1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Prevent None strings in description_placeholders (#127103)

This commit is contained in:
epenet
2024-11-15 14:39:57 +01:00
committed by GitHub
parent dc09b7a532
commit e772eef035
8 changed files with 15 additions and 5 deletions

View File

@@ -155,7 +155,7 @@ class FlowResult(TypedDict, Generic[_FlowContextT, _HandlerT], total=False):
context: _FlowContextT
data_schema: vol.Schema | None
data: Mapping[str, Any]
description_placeholders: Mapping[str, str | None] | None
description_placeholders: Mapping[str, str] | None
description: str | None
errors: dict[str, str] | None
extra: str
@@ -705,7 +705,7 @@ class FlowHandler(Generic[_FlowContextT, _FlowResultT, _HandlerT]):
step_id: str | None = None,
data_schema: vol.Schema | None = None,
errors: dict[str, str] | None = None,
description_placeholders: Mapping[str, str | None] | None = None,
description_placeholders: Mapping[str, str] | None = None,
last_step: bool | None = None,
preview: str | None = None,
) -> _FlowResultT: