1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use constants in control4 config flow (#58602)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet
2021-10-28 22:15:30 +02:00
committed by GitHub
parent b368476429
commit 1e8ccb47ce
3 changed files with 13 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ from homeassistant.const import (
CONF_SCAN_INTERVAL,
CONF_USERNAME,
)
from homeassistant.data_entry_flow import STEP_ID_INIT
from tests.common import MockConfigEntry
@@ -166,7 +167,7 @@ async def test_option_flow(hass):
result = await hass.config_entries.options.async_init(entry.entry_id)
assert result["type"] == "form"
assert result["step_id"] == "init"
assert result["step_id"] == STEP_ID_INIT
result = await hass.config_entries.options.async_configure(
result["flow_id"],
@@ -186,7 +187,7 @@ async def test_option_flow_defaults(hass):
result = await hass.config_entries.options.async_init(entry.entry_id)
assert result["type"] == "form"
assert result["step_id"] == "init"
assert result["step_id"] == STEP_ID_INIT
result = await hass.config_entries.options.async_configure(
result["flow_id"], user_input={}