mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix incorrect schema in config tests (#133404)
This commit is contained in:
parent
d8e853941a
commit
0dbd5bffe6
@ -415,7 +415,7 @@ async def test_initialize_flow(hass: HomeAssistant, client: TestClient) -> None:
|
|||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="user",
|
step_id="user",
|
||||||
data_schema=schema,
|
data_schema=vol.Schema(schema),
|
||||||
description_placeholders={
|
description_placeholders={
|
||||||
"url": "https://example.com",
|
"url": "https://example.com",
|
||||||
"show_advanced_options": self.show_advanced_options,
|
"show_advanced_options": self.show_advanced_options,
|
||||||
@ -804,7 +804,7 @@ async def test_get_progress_flow(hass: HomeAssistant, client: TestClient) -> Non
|
|||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="user",
|
step_id="user",
|
||||||
data_schema=schema,
|
data_schema=vol.Schema(schema),
|
||||||
errors={"username": "Should be unique."},
|
errors={"username": "Should be unique."},
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -842,7 +842,7 @@ async def test_get_progress_flow_unauth(
|
|||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="user",
|
step_id="user",
|
||||||
data_schema=schema,
|
data_schema=vol.Schema(schema),
|
||||||
errors={"username": "Should be unique."},
|
errors={"username": "Should be unique."},
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -874,7 +874,7 @@ async def test_options_flow(hass: HomeAssistant, client: TestClient) -> None:
|
|||||||
schema[vol.Required("enabled")] = bool
|
schema[vol.Required("enabled")] = bool
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="user",
|
step_id="user",
|
||||||
data_schema=schema,
|
data_schema=vol.Schema(schema),
|
||||||
description_placeholders={"enabled": "Set to true to be true"},
|
description_placeholders={"enabled": "Set to true to be true"},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user