hass-core/tests/components/lg_netcast/conftest.py
epenet 7e62061b9a
Improve typing for calls fixture in tests (a-l) (#118349)
* Improve typing for `calls` fixture in tests (a-l)

* More

* More
2024-05-29 09:06:48 +02:00

13 lines
361 B
Python

"""Common fixtures and objects for the LG Netcast integration tests."""
import pytest
from homeassistant.core import HomeAssistant, ServiceCall
from tests.common import async_mock_service
@pytest.fixture
def calls(hass: HomeAssistant) -> list[ServiceCall]:
"""Track calls to a mock service."""
return async_mock_service(hass, "test", "automation")