mirror of
https://github.com/home-assistant/core.git
synced 2025-11-17 23:10:28 +00:00
Improve type hints in homekit and homekit_controller tests (#124213)
Add missing hass type hint in homekit and homekit_controller tests
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import base64
|
||||
from collections.abc import Callable
|
||||
|
||||
from aiohomekit.model import Accessory
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
from aiohomekit.testing import FAKE_CAMERA_IMAGE
|
||||
|
||||
@@ -13,7 +14,7 @@ from homeassistant.helpers import entity_registry as er
|
||||
from .common import setup_test_component
|
||||
|
||||
|
||||
def create_camera(accessory):
|
||||
def create_camera(accessory: Accessory) -> None:
|
||||
"""Define camera characteristics."""
|
||||
accessory.add_service(ServicesTypes.CAMERA_RTP_STREAM_MANAGEMENT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user