mirror of
https://github.com/home-assistant/core.git
synced 2026-12-03 04:08:19 -04:00
Set up the config entry directly in Electricity Maps tests (#195168)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
481c7b613d
commit
c8843c4f0a
@@ -9,7 +9,6 @@ from pytest_homeassistant.common import MockConfigEntry
|
||||
from homeassistant.components.co2signal.const import DOMAIN
|
||||
from homeassistant.const import CONF_API_KEY
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from . import VALID_RESPONSE
|
||||
|
||||
@@ -51,5 +50,5 @@ async def mock_setup_integration(
|
||||
"""Fixture for setting up the component."""
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
assert await async_setup_component(hass, DOMAIN, {})
|
||||
assert await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user