Fix incorrect schema in config tests (#133404)

pull/133392/head
epenet 2024-12-17 11:26:51 +01:00 committed by GitHub
parent d8e853941a
commit 0dbd5bffe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -415,7 +415,7 @@ async def test_initialize_flow(hass: HomeAssistant, client: TestClient) -> None:
return self.async_show_form(
step_id="user",
data_schema=schema,
data_schema=vol.Schema(schema),
description_placeholders={
"url": "https://example.com",
"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(
step_id="user",
data_schema=schema,
data_schema=vol.Schema(schema),
errors={"username": "Should be unique."},
)
@ -842,7 +842,7 @@ async def test_get_progress_flow_unauth(
return self.async_show_form(
step_id="user",
data_schema=schema,
data_schema=vol.Schema(schema),
errors={"username": "Should be unique."},
)
@ -874,7 +874,7 @@ async def test_options_flow(hass: HomeAssistant, client: TestClient) -> None:
schema[vol.Required("enabled")] = bool
return self.async_show_form(
step_id="user",
data_schema=schema,
data_schema=vol.Schema(schema),
description_placeholders={"enabled": "Set to true to be true"},
)