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 Aurora ABB PowerOne tests (#195166)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
cff2122a88
commit
a5c7e2a0fd
@@ -13,7 +13,6 @@ from homeassistant.components.aurora_abb_powerone.const import (
|
||||
from homeassistant.config_entries import ConfigEntryState
|
||||
from homeassistant.const import CONF_ADDRESS, CONF_PORT
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from .test_sensor import _simulated_returns
|
||||
|
||||
@@ -60,7 +59,7 @@ async def test_unload_entry(hass: HomeAssistant) -> None:
|
||||
},
|
||||
)
|
||||
mock_entry.add_to_hass(hass)
|
||||
assert await async_setup_component(hass, DOMAIN, {})
|
||||
assert await hass.config_entries.async_setup(mock_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
assert mock_entry.state is ConfigEntryState.LOADED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user