mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Remove unneeded mock from Epion (#110815)
This commit is contained in:
parent
4570eed6f6
commit
1417428880
@ -100,10 +100,6 @@ async def test_duplicate_entry(hass: HomeAssistant, mock_epion: MagicMock) -> No
|
|||||||
DOMAIN, context={"source": config_entries.SOURCE_USER}
|
DOMAIN, context={"source": config_entries.SOURCE_USER}
|
||||||
)
|
)
|
||||||
|
|
||||||
with patch(
|
|
||||||
"homeassistant.components.epion.async_setup_entry",
|
|
||||||
return_value=True,
|
|
||||||
) as mock_setup_entry:
|
|
||||||
result = await hass.config_entries.flow.async_configure(
|
result = await hass.config_entries.flow.async_configure(
|
||||||
result["flow_id"],
|
result["flow_id"],
|
||||||
{CONF_API_KEY: API_KEY},
|
{CONF_API_KEY: API_KEY},
|
||||||
@ -112,4 +108,3 @@ async def test_duplicate_entry(hass: HomeAssistant, mock_epion: MagicMock) -> No
|
|||||||
|
|
||||||
assert result["type"] == FlowResultType.ABORT
|
assert result["type"] == FlowResultType.ABORT
|
||||||
assert result["reason"] == "already_configured"
|
assert result["reason"] == "already_configured"
|
||||||
assert mock_setup_entry.call_count == 0
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user