mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Clean up unnecessary setup calls in tests (#114644)
This commit is contained in:
parent
581c67ed29
commit
52bd3efad9
@ -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", {}
|
||||
|
@ -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={
|
||||
|
Loading…
x
Reference in New Issue
Block a user