Fix ecobee test helper (#126587)
This commit is contained in:
parent
3c9f51fbbd
commit
ce70f4ebac
1 changed files with 2 additions and 4 deletions
|
@ -5,7 +5,6 @@ from unittest.mock import patch
|
|||
from homeassistant.components.ecobee.const import CONF_REFRESH_TOKEN, DOMAIN
|
||||
from homeassistant.const import CONF_API_KEY
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
@ -25,8 +24,7 @@ async def setup_platform(
|
|||
)
|
||||
mock_entry.add_to_hass(hass)
|
||||
|
||||
with patch("homeassistant.components.ecobee.const.PLATFORMS", [platform]):
|
||||
assert await async_setup_component(hass, DOMAIN, {})
|
||||
with patch("homeassistant.components.ecobee.PLATFORMS", [platform]):
|
||||
await hass.config_entries.async_setup(mock_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
return mock_entry
|
||||
|
|
Loading…
Add table
Reference in a new issue