Add type hints to homekit events fixture (#121211)

This commit is contained in:
epenet
2024-07-04 16:32:01 +02:00
committed by GitHub
parent 411630429d
commit 28f06cb5a0
16 changed files with 182 additions and 144 deletions

View File

@@ -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)