mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Add type hints to homekit events fixture (#121211)
This commit is contained in:
@@ -47,7 +47,7 @@ from homeassistant.const import (
|
||||
STATE_UNAVAILABLE,
|
||||
__version__ as hass_version,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.core import Event, HomeAssistant
|
||||
|
||||
from tests.common import async_mock_service
|
||||
|
||||
@@ -667,7 +667,9 @@ async def test_battery_appears_after_startup(
|
||||
assert acc._char_battery is None
|
||||
|
||||
|
||||
async def test_call_service(hass: HomeAssistant, hk_driver, events) -> None:
|
||||
async def test_call_service(
|
||||
hass: HomeAssistant, hk_driver, events: list[Event]
|
||||
) -> None:
|
||||
"""Test call_service method."""
|
||||
entity_id = "homekit.accessory"
|
||||
hass.states.async_set(entity_id, None)
|
||||
|
||||
Reference in New Issue
Block a user