From c8843c4f0aa4dc92bb1aafe96081f7cd9caabe35 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 29 Nov 2026 10:36:39 +0100 Subject: [PATCH] Set up the config entry directly in Electricity Maps tests (#195168) Co-authored-by: Claude --- tests/components/co2signal/conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/components/co2signal/conftest.py b/tests/components/co2signal/conftest.py index 0c2356f0cebb..28de7f7bae82 100644 --- a/tests/components/co2signal/conftest.py +++ b/tests/components/co2signal/conftest.py @@ -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()