1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Clean up superfluous integration setup - part 3 (#48484)

This commit is contained in:
Franck Nijhof
2021-03-30 01:23:44 +02:00
committed by GitHub
parent 6ec3234ccc
commit bb9da22a84
19 changed files with 23 additions and 125 deletions

View File

@@ -24,8 +24,6 @@ async def test_form(hass):
"homeassistant.components.coolmaster.config_flow.CoolMasterNet.status",
return_value={"test_id": "test_unit"},
), patch(
"homeassistant.components.coolmaster.async_setup", return_value=True
) as mock_setup, patch(
"homeassistant.components.coolmaster.async_setup_entry",
return_value=True,
) as mock_setup_entry:
@@ -41,7 +39,6 @@ async def test_form(hass):
"port": 10102,
"supported_modes": AVAILABLE_MODES,
}
assert len(mock_setup.mock_calls) == 1
assert len(mock_setup_entry.mock_calls) == 1