mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
Improve type hints in zerproc tests (#123925)
This commit is contained in:
@@ -35,13 +35,13 @@ from tests.common import MockConfigEntry, async_fire_time_changed
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
async def mock_entry(hass):
|
async def mock_entry() -> MockConfigEntry:
|
||||||
"""Create a mock light entity."""
|
"""Create a mock light entity."""
|
||||||
return MockConfigEntry(domain=DOMAIN)
|
return MockConfigEntry(domain=DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
async def mock_light(hass, mock_entry):
|
async def mock_light(hass: HomeAssistant, mock_entry: MockConfigEntry) -> MagicMock:
|
||||||
"""Create a mock light entity."""
|
"""Create a mock light entity."""
|
||||||
|
|
||||||
mock_entry.add_to_hass(hass)
|
mock_entry.add_to_hass(hass)
|
||||||
|
Reference in New Issue
Block a user