mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Improve type hints in zerproc tests (#123925)
This commit is contained in:
parent
c65f845329
commit
1227cd8693
@ -35,13 +35,13 @@ from tests.common import MockConfigEntry, async_fire_time_changed
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def mock_entry(hass):
|
||||
async def mock_entry() -> MockConfigEntry:
|
||||
"""Create a mock light entity."""
|
||||
return MockConfigEntry(domain=DOMAIN)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def mock_light(hass, mock_entry):
|
||||
async def mock_light(hass: HomeAssistant, mock_entry: MockConfigEntry) -> MagicMock:
|
||||
"""Create a mock light entity."""
|
||||
|
||||
mock_entry.add_to_hass(hass)
|
||||
|
Loading…
x
Reference in New Issue
Block a user