Append name char value from the service to HomeKit Controller Entities (#74359)

This commit is contained in:
J. Nick Koston 2022-07-03 15:47:54 -05:00 committed by GitHub
parent 737a1fd9fa
commit 30a5df5895
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 662 additions and 145 deletions

View file

@ -16,8 +16,8 @@ from .common import Helper, remove_device
from tests.components.homekit_controller.common import setup_test_component
ALIVE_DEVICE_NAME = "Light Bulb"
ALIVE_DEEVICE_ENTITY_ID = "light.testdevice"
ALIVE_DEVICE_NAME = "testdevice"
ALIVE_DEVICE_ENTITY_ID = "light.testdevice"
def create_motion_sensor_service(accessory):
@ -72,7 +72,7 @@ async def test_device_remove_devices(hass, hass_ws_client):
entry_id = config_entry.entry_id
registry: EntityRegistry = er.async_get(hass)
entity = registry.entities[ALIVE_DEEVICE_ENTITY_ID]
entity = registry.entities[ALIVE_DEVICE_ENTITY_ID]
device_registry = dr.async_get(hass)
live_device_entry = device_registry.async_get(entity.device_id)