mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Clean up superfluous integration setup - part 6 (#49298)
This commit is contained in:
@@ -31,8 +31,6 @@ async def test_user_form(hass):
|
||||
"homeassistant.components.harmony.util.HarmonyAPI",
|
||||
return_value=harmonyapi,
|
||||
), patch(
|
||||
"homeassistant.components.harmony.async_setup", return_value=True
|
||||
) as mock_setup, patch(
|
||||
"homeassistant.components.harmony.async_setup_entry",
|
||||
return_value=True,
|
||||
) as mock_setup_entry:
|
||||
@@ -45,7 +43,6 @@ async def test_user_form(hass):
|
||||
assert result2["type"] == "create_entry"
|
||||
assert result2["title"] == "friend"
|
||||
assert result2["data"] == {"host": "1.2.3.4", "name": "friend"}
|
||||
assert len(mock_setup.mock_calls) == 1
|
||||
assert len(mock_setup_entry.mock_calls) == 1
|
||||
|
||||
|
||||
@@ -83,8 +80,6 @@ async def test_form_ssdp(hass):
|
||||
"homeassistant.components.harmony.util.HarmonyAPI",
|
||||
return_value=harmonyapi,
|
||||
), patch(
|
||||
"homeassistant.components.harmony.async_setup", return_value=True
|
||||
) as mock_setup, patch(
|
||||
"homeassistant.components.harmony.async_setup_entry",
|
||||
return_value=True,
|
||||
) as mock_setup_entry:
|
||||
@@ -97,7 +92,6 @@ async def test_form_ssdp(hass):
|
||||
assert result2["type"] == "create_entry"
|
||||
assert result2["title"] == "Harmony Hub"
|
||||
assert result2["data"] == {"host": "192.168.1.12", "name": "Harmony Hub"}
|
||||
assert len(mock_setup.mock_calls) == 1
|
||||
assert len(mock_setup_entry.mock_calls) == 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user