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:
@@ -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={}
|
||||
|
||||
Reference in New Issue
Block a user