mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Use config_entries.SOURCE_* constants (#49631)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""Tests for config flow."""
|
||||
from aiohttp.test_utils import TestClient
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.withings import const
|
||||
from homeassistant.config import async_process_ha_core_config
|
||||
from homeassistant.const import (
|
||||
@@ -58,7 +59,8 @@ async def test_config_reauth_profile(
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
const.DOMAIN, context={"source": "reauth", "profile": "person0"}
|
||||
const.DOMAIN,
|
||||
context={"source": config_entries.SOURCE_REAUTH, "profile": "person0"},
|
||||
)
|
||||
assert result
|
||||
assert result["type"] == "form"
|
||||
|
||||
Reference in New Issue
Block a user