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:
parent
be255613de
commit
db92f29c00
24 changed files with 132 additions and 85 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue