Remove incorrect constant usage in test (#91198)

This commit is contained in:
epenet 2023-04-11 10:00:17 +02:00 committed by GitHub
parent 2f7c5a56eb
commit 7b3a932cd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 85 additions and 87 deletions

View file

@ -54,7 +54,7 @@ async def test_form(hass: HomeAssistant) -> None:
)
assert result["type"] == data_entry_flow.FlowResultType.FORM
assert result["step_id"] == SOURCE_USER
assert result["step_id"] == "user"
assert result["errors"] == {}
result = await hass.config_entries.flow.async_configure(
@ -97,7 +97,7 @@ async def test_form_invalid_system_id(hass: HomeAssistant) -> None:
)
assert result["type"] == data_entry_flow.FlowResultType.FORM
assert result["step_id"] == SOURCE_USER
assert result["step_id"] == "user"
assert result["errors"] == {CONF_ID: "invalid_system_id"}
mock_hvac.return_value = HVAC_MOCK[API_SYSTEMS][0]