Clean up unnecessary setup calls in tests (#114644)

This commit is contained in:
Paulus Schoutsen 2024-04-02 11:30:41 -04:00 committed by GitHub
parent 581c67ed29
commit 52bd3efad9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 3 deletions

View File

@ -27,7 +27,6 @@ def mock_config_entry(hass):
@pytest.fixture
async def mock_init_component(hass: HomeAssistant, mock_config_entry: ConfigEntry):
"""Initialize integration."""
assert await async_setup_component(hass, "homeassistant", {})
with patch("google.generativeai.get_model"):
assert await async_setup_component(
hass, "google_generative_ai_conversation", {}

View File

@ -10,7 +10,6 @@ from homeassistant.components import conversation
from homeassistant.core import Context, HomeAssistant
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import area_registry as ar, device_registry as dr, intent
from homeassistant.setup import async_setup_component
from tests.common import MockConfigEntry
@ -125,7 +124,6 @@ async def test_template_error(
hass: HomeAssistant, mock_config_entry: MockConfigEntry
) -> None:
"""Test that template error handling works."""
assert await async_setup_component(hass, "homeassistant", {})
hass.config_entries.async_update_entry(
mock_config_entry,
options={