diff --git a/tests/components/homekit_controller/common.py b/tests/components/homekit_controller/common.py index 68791e89af2..bdd8987c031 100644 --- a/tests/components/homekit_controller/common.py +++ b/tests/components/homekit_controller/common.py @@ -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.""" diff --git a/tests/components/homekit_controller/specific_devices/test_anker_eufycam.py b/tests/components/homekit_controller/specific_devices/test_anker_eufycam.py index b963d33c83e..6fd52b68064 100644 --- a/tests/components/homekit_controller/specific_devices/test_anker_eufycam.py +++ b/tests/components/homekit_controller/specific_devices/test_anker_eufycam.py @@ -1,6 +1,7 @@ """Test against characteristics captured from a eufycam.""" from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -17,7 +18,7 @@ async def test_eufycam_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="eufy HomeBase2-0AAA", model="T8010", manufacturer="Anker", diff --git a/tests/components/homekit_controller/specific_devices/test_aqara_gateway.py b/tests/components/homekit_controller/specific_devices/test_aqara_gateway.py index 70b6dc4870a..b75c8993904 100644 --- a/tests/components/homekit_controller/specific_devices/test_aqara_gateway.py +++ b/tests/components/homekit_controller/specific_devices/test_aqara_gateway.py @@ -13,6 +13,7 @@ from homeassistant.components.number import NumberMode from homeassistant.helpers.entity import EntityCategory from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -29,7 +30,7 @@ async def test_aqara_gateway_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Aqara Hub-1563", model="ZHWA11LM", manufacturer="Aqara", @@ -88,7 +89,7 @@ async def test_aqara_gateway_e1_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Aqara-Hub-E1-00A0", model="HE1-G01", manufacturer="Aqara", diff --git a/tests/components/homekit_controller/specific_devices/test_aqara_switch.py b/tests/components/homekit_controller/specific_devices/test_aqara_switch.py index 342dda263d8..e6dce42a1f7 100644 --- a/tests/components/homekit_controller/specific_devices/test_aqara_switch.py +++ b/tests/components/homekit_controller/specific_devices/test_aqara_switch.py @@ -10,6 +10,7 @@ https://github.com/home-assistant/core/pull/39090 from homeassistant.const import PERCENTAGE from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, DeviceTriggerInfo, EntityTestInfo, @@ -27,7 +28,7 @@ async def test_aqara_switch_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Programmable Switch", model="AR004", manufacturer="Aqara", diff --git a/tests/components/homekit_controller/specific_devices/test_arlo_baby.py b/tests/components/homekit_controller/specific_devices/test_arlo_baby.py index 815613e675e..166f662347e 100644 --- a/tests/components/homekit_controller/specific_devices/test_arlo_baby.py +++ b/tests/components/homekit_controller/specific_devices/test_arlo_baby.py @@ -5,6 +5,7 @@ from homeassistant.components.sensor import SensorStateClass from homeassistant.const import PERCENTAGE, TEMP_CELSIUS from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -21,7 +22,7 @@ async def test_arlo_baby_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="ArloBabyA0", model="ABC1000", manufacturer="Netgear, Inc", diff --git a/tests/components/homekit_controller/specific_devices/test_connectsense.py b/tests/components/homekit_controller/specific_devices/test_connectsense.py index 702ca825752..0b87c5fe4f1 100644 --- a/tests/components/homekit_controller/specific_devices/test_connectsense.py +++ b/tests/components/homekit_controller/specific_devices/test_connectsense.py @@ -8,6 +8,7 @@ from homeassistant.const import ( ) from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -24,7 +25,7 @@ async def test_connectsense_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="InWall Outlet-0394DE", model="CS-IWO", manufacturer="ConnectSense", diff --git a/tests/components/homekit_controller/specific_devices/test_ecobee3.py b/tests/components/homekit_controller/specific_devices/test_ecobee3.py index 5847d222e9e..bd272459bdb 100644 --- a/tests/components/homekit_controller/specific_devices/test_ecobee3.py +++ b/tests/components/homekit_controller/specific_devices/test_ecobee3.py @@ -20,6 +20,7 @@ from homeassistant.const import TEMP_CELSIUS from homeassistant.helpers import entity_registry as er from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -38,7 +39,7 @@ async def test_ecobee3_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="HomeW", model="ecobee3", manufacturer="ecobee Inc.", diff --git a/tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py b/tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py index 293ecd07dd2..6d98467a4cb 100644 --- a/tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py +++ b/tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py @@ -5,6 +5,7 @@ https://github.com/home-assistant/core/issues/31827 """ from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -21,7 +22,7 @@ async def test_ecobee_occupancy_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Master Fan", model="ecobee Switch+", manufacturer="ecobee Inc.", diff --git a/tests/components/homekit_controller/specific_devices/test_eve_degree.py b/tests/components/homekit_controller/specific_devices/test_eve_degree.py index 466123a224e..446ebb712d9 100644 --- a/tests/components/homekit_controller/specific_devices/test_eve_degree.py +++ b/tests/components/homekit_controller/specific_devices/test_eve_degree.py @@ -6,6 +6,7 @@ from homeassistant.const import PERCENTAGE, PRESSURE_HPA, TEMP_CELSIUS from homeassistant.helpers.entity import EntityCategory from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -22,7 +23,7 @@ async def test_eve_degree_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Eve Degree AA11", model="Eve Degree 00AAA0000", manufacturer="Elgato", diff --git a/tests/components/homekit_controller/specific_devices/test_haa_fan.py b/tests/components/homekit_controller/specific_devices/test_haa_fan.py index cd12831210a..cdaee412565 100644 --- a/tests/components/homekit_controller/specific_devices/test_haa_fan.py +++ b/tests/components/homekit_controller/specific_devices/test_haa_fan.py @@ -4,6 +4,7 @@ from homeassistant.components.fan import SUPPORT_SET_SPEED from homeassistant.helpers.entity import EntityCategory from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -22,7 +23,7 @@ async def test_haa_fan_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="HAA-C718B3", model="RavenSystem HAA", manufacturer="José A. Jiménez Campos", diff --git a/tests/components/homekit_controller/specific_devices/test_homeassistant_bridge.py b/tests/components/homekit_controller/specific_devices/test_homeassistant_bridge.py index 684b2ebde27..af1a639b2e1 100644 --- a/tests/components/homekit_controller/specific_devices/test_homeassistant_bridge.py +++ b/tests/components/homekit_controller/specific_devices/test_homeassistant_bridge.py @@ -7,6 +7,7 @@ from homeassistant.components.fan import ( ) from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -25,7 +26,7 @@ async def test_homeassistant_bridge_fan_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Home Assistant Bridge", model="Bridge", manufacturer="Home Assistant", diff --git a/tests/components/homekit_controller/specific_devices/test_hue_bridge.py b/tests/components/homekit_controller/specific_devices/test_hue_bridge.py index 2a8855ac9da..9c58bc8a8a4 100644 --- a/tests/components/homekit_controller/specific_devices/test_hue_bridge.py +++ b/tests/components/homekit_controller/specific_devices/test_hue_bridge.py @@ -3,6 +3,7 @@ from homeassistant.const import PERCENTAGE from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, DeviceTriggerInfo, EntityTestInfo, @@ -20,7 +21,7 @@ async def test_hue_bridge_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Philips hue - 482544", model="BSB002", manufacturer="Philips Lighting", diff --git a/tests/components/homekit_controller/specific_devices/test_koogeek_ls1.py b/tests/components/homekit_controller/specific_devices/test_koogeek_ls1.py index ef655d79fdf..f5c09342402 100644 --- a/tests/components/homekit_controller/specific_devices/test_koogeek_ls1.py +++ b/tests/components/homekit_controller/specific_devices/test_koogeek_ls1.py @@ -12,6 +12,7 @@ import homeassistant.util.dt as dt_util from tests.common import async_fire_time_changed from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, Helper, @@ -31,7 +32,7 @@ async def test_koogeek_ls1_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Koogeek-LS1-20833F", model="LS1", manufacturer="Koogeek", diff --git a/tests/components/homekit_controller/specific_devices/test_koogeek_p1eu.py b/tests/components/homekit_controller/specific_devices/test_koogeek_p1eu.py index 1065cfe2209..162cbaf9ecb 100644 --- a/tests/components/homekit_controller/specific_devices/test_koogeek_p1eu.py +++ b/tests/components/homekit_controller/specific_devices/test_koogeek_p1eu.py @@ -4,6 +4,7 @@ from homeassistant.components.sensor import SensorStateClass from homeassistant.const import POWER_WATT from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -20,7 +21,7 @@ async def test_koogeek_p1eu_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Koogeek-P1-A00AA0", model="P1EU", manufacturer="Koogeek", diff --git a/tests/components/homekit_controller/specific_devices/test_koogeek_sw2.py b/tests/components/homekit_controller/specific_devices/test_koogeek_sw2.py index 7a94a6652b9..8e44fc34f07 100644 --- a/tests/components/homekit_controller/specific_devices/test_koogeek_sw2.py +++ b/tests/components/homekit_controller/specific_devices/test_koogeek_sw2.py @@ -10,6 +10,7 @@ from homeassistant.components.sensor import SensorStateClass from homeassistant.const import POWER_WATT from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -26,7 +27,7 @@ async def test_koogeek_sw2_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Koogeek-SW2-187A91", model="KH02CN", manufacturer="Koogeek", diff --git a/tests/components/homekit_controller/specific_devices/test_lennox_e30.py b/tests/components/homekit_controller/specific_devices/test_lennox_e30.py index 979fbd48028..a53916cc0a9 100644 --- a/tests/components/homekit_controller/specific_devices/test_lennox_e30.py +++ b/tests/components/homekit_controller/specific_devices/test_lennox_e30.py @@ -10,6 +10,7 @@ from homeassistant.components.climate.const import ( ) from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -26,7 +27,7 @@ async def test_lennox_e30_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Lennox", model="E30 2B", manufacturer="Lennox", diff --git a/tests/components/homekit_controller/specific_devices/test_lg_tv.py b/tests/components/homekit_controller/specific_devices/test_lg_tv.py index 2841acac402..1140ee2dabe 100644 --- a/tests/components/homekit_controller/specific_devices/test_lg_tv.py +++ b/tests/components/homekit_controller/specific_devices/test_lg_tv.py @@ -7,6 +7,7 @@ from homeassistant.components.media_player.const import ( ) from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -23,7 +24,7 @@ async def test_lg_tv(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="LG webOS TV AF80", model="OLED55B9PUA", manufacturer="LG Electronics", diff --git a/tests/components/homekit_controller/specific_devices/test_mysa_living.py b/tests/components/homekit_controller/specific_devices/test_mysa_living.py index e2fdb7b2a8f..b26ce713a80 100644 --- a/tests/components/homekit_controller/specific_devices/test_mysa_living.py +++ b/tests/components/homekit_controller/specific_devices/test_mysa_living.py @@ -6,6 +6,7 @@ from homeassistant.components.sensor import SensorStateClass from homeassistant.const import PERCENTAGE, TEMP_CELSIUS from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -22,7 +23,7 @@ async def test_mysa_living_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Mysa-85dda9", model="v1", manufacturer="Empowered Homes Inc.", diff --git a/tests/components/homekit_controller/specific_devices/test_netamo_doorbell.py b/tests/components/homekit_controller/specific_devices/test_netamo_doorbell.py index 969f03cdeb8..5d2b7fcbded 100644 --- a/tests/components/homekit_controller/specific_devices/test_netamo_doorbell.py +++ b/tests/components/homekit_controller/specific_devices/test_netamo_doorbell.py @@ -5,6 +5,7 @@ https://github.com/home-assistant/core/issues/44596 """ from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, DeviceTriggerInfo, EntityTestInfo, @@ -22,7 +23,7 @@ async def test_netamo_doorbell_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="Netatmo-Doorbell-g738658", model="Netatmo Doorbell", manufacturer="Netatmo", diff --git a/tests/components/homekit_controller/specific_devices/test_rainmachine_pro_8.py b/tests/components/homekit_controller/specific_devices/test_rainmachine_pro_8.py index 5b29c2d52e7..6da8f13cbdd 100644 --- a/tests/components/homekit_controller/specific_devices/test_rainmachine_pro_8.py +++ b/tests/components/homekit_controller/specific_devices/test_rainmachine_pro_8.py @@ -5,6 +5,7 @@ https://github.com/home-assistant/core/issues/31745 """ from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -21,7 +22,7 @@ async def test_rainmachine_pro_8_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="RainMachine-00ce4a", model="SPK5 Pro", manufacturer="Green Electronics LLC", diff --git a/tests/components/homekit_controller/specific_devices/test_ryse_smart_bridge.py b/tests/components/homekit_controller/specific_devices/test_ryse_smart_bridge.py index 54393d1ac4f..b714f460d5e 100644 --- a/tests/components/homekit_controller/specific_devices/test_ryse_smart_bridge.py +++ b/tests/components/homekit_controller/specific_devices/test_ryse_smart_bridge.py @@ -8,6 +8,7 @@ from homeassistant.components.cover import ( from homeassistant.const import PERCENTAGE from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -26,7 +27,7 @@ async def test_ryse_smart_bridge_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="RYSE SmartBridge", model="RYSE SmartBridge", manufacturer="RYSE Inc.", @@ -103,7 +104,7 @@ async def test_ryse_smart_bridge_four_shades_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="RYSE SmartBridge", model="RYSE SmartBridge", manufacturer="RYSE Inc.", diff --git a/tests/components/homekit_controller/specific_devices/test_simpleconnect_fan.py b/tests/components/homekit_controller/specific_devices/test_simpleconnect_fan.py index 1df0a0192db..ce21d643bab 100644 --- a/tests/components/homekit_controller/specific_devices/test_simpleconnect_fan.py +++ b/tests/components/homekit_controller/specific_devices/test_simpleconnect_fan.py @@ -7,6 +7,7 @@ https://github.com/home-assistant/core/issues/26180 from homeassistant.components.fan import SUPPORT_DIRECTION, SUPPORT_SET_SPEED from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -23,7 +24,7 @@ async def test_simpleconnect_fan_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="SIMPLEconnect Fan-06F674", model="SIMPLEconnect", manufacturer="Hunter Fan", diff --git a/tests/components/homekit_controller/specific_devices/test_velux_gateway.py b/tests/components/homekit_controller/specific_devices/test_velux_gateway.py index d6b9fe9cfbf..e2db1a7b425 100644 --- a/tests/components/homekit_controller/specific_devices/test_velux_gateway.py +++ b/tests/components/homekit_controller/specific_devices/test_velux_gateway.py @@ -16,6 +16,7 @@ from homeassistant.const import ( ) from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -32,7 +33,7 @@ async def test_velux_cover_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="VELUX Gateway", model="VELUX Gateway", manufacturer="VELUX", diff --git a/tests/components/homekit_controller/specific_devices/test_vocolinc_flowerbud.py b/tests/components/homekit_controller/specific_devices/test_vocolinc_flowerbud.py index 3680437ada6..b02be9bfd64 100644 --- a/tests/components/homekit_controller/specific_devices/test_vocolinc_flowerbud.py +++ b/tests/components/homekit_controller/specific_devices/test_vocolinc_flowerbud.py @@ -8,6 +8,7 @@ from homeassistant.const import PERCENTAGE from homeassistant.helpers.entity import EntityCategory from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -24,7 +25,7 @@ async def test_vocolinc_flowerbud_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="VOCOlinc-Flowerbud-0d324b", model="Flowerbud", manufacturer="VOCOlinc", diff --git a/tests/components/homekit_controller/specific_devices/test_vocolinc_vp3.py b/tests/components/homekit_controller/specific_devices/test_vocolinc_vp3.py index 7489dca2f08..6fdad72b8a5 100644 --- a/tests/components/homekit_controller/specific_devices/test_vocolinc_vp3.py +++ b/tests/components/homekit_controller/specific_devices/test_vocolinc_vp3.py @@ -4,6 +4,7 @@ from homeassistant.components.sensor import SensorStateClass from homeassistant.const import POWER_WATT from tests.components.homekit_controller.common import ( + HUB_TEST_ACCESSORY_ID, DeviceTestInfo, EntityTestInfo, assert_devices_and_entities_created, @@ -20,7 +21,7 @@ async def test_vocolinc_vp3_setup(hass): await assert_devices_and_entities_created( hass, DeviceTestInfo( - unique_id="00:00:00:00:00:00", + unique_id=HUB_TEST_ACCESSORY_ID, name="VOCOlinc-VP3-123456", model="VP3", manufacturer="VOCOlinc",