mirror of
https://github.com/home-assistant/core.git
synced 2025-11-05 00:49:37 +00:00
Avoid directly changing config entry state in tests (part 2) (#110115)
followup to #110048 for more places
This commit is contained in:
@@ -4633,7 +4633,7 @@ async def test_validate_action_config(
|
||||
"""Validate action config."""
|
||||
|
||||
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)
|
||||
|
||||
mock_device = device_registry.async_get_or_create(
|
||||
|
||||
Reference in New Issue
Block a user