1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 20:39:01 +00:00

Add HUB_TEST_ACCESSORY_ID const for homekit_controller tests (#64750)

This commit is contained in:
Jc2k
2022-01-23 21:51:55 +00:00
committed by GitHub
parent e564f4193f
commit 061ee1b875
25 changed files with 55 additions and 27 deletions

View File

@@ -6,7 +6,7 @@ from datetime import timedelta
import json
import logging
import os
from typing import Any
from typing import Any, Final
from unittest import mock
from aiohomekit.model import Accessories, Accessory
@@ -40,6 +40,10 @@ from tests.common import (
logger = logging.getLogger(__name__)
# Root device in test harness always has an accessory id of this
HUB_TEST_ACCESSORY_ID: Final[str] = "00:00:00:00:00:00"
@dataclass
class EntityTestInfo:
"""Describes how we expected an entity to be created by homekit_controller."""