mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 18:58:04 +02:00
Avoid directly changing config entry state in tests (part 2) (#110115)
followup to #110048 for more places
This commit is contained in:
@ -718,7 +718,7 @@ async def test_extraction_functions(
|
||||
) -> None:
|
||||
"""Test extraction functions."""
|
||||
config_entry = MockConfigEntry(domain="fake_integration", data={})
|
||||
config_entry.state = config_entries.ConfigEntryState.LOADED
|
||||
config_entry.mock_state(hass, config_entries.ConfigEntryState.LOADED)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
device_in_both = device_registry.async_get_or_create(
|
||||
|
Reference in New Issue
Block a user