1
0
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:
Ville Skyttä
2021-04-25 12:27:40 +03:00
committed by GitHub
parent 34a588d1ba
commit 153d6e891e
103 changed files with 723 additions and 488 deletions

View File

@@ -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"