Move mock_hass_config fixture to decorator (#118807)

This commit is contained in:
epenet
2024-06-04 16:05:56 +02:00
committed by GitHub
parent 2ac5f8db06
commit 089874f818
4 changed files with 20 additions and 25 deletions

View File

@@ -27,8 +27,9 @@ from tests.common import async_mock_service
}
],
)
@pytest.mark.usefixtures("mock_hass_config")
async def test_if_fires_on_hass_start(
hass: HomeAssistant, mock_hass_config: None, hass_config: ConfigType
hass: HomeAssistant, hass_config: ConfigType
) -> None:
"""Test the firing when Home Assistant starts."""
calls = async_mock_service(hass, "test", "automation")