Refactor homekit_controller to prepare for more typing information (#65329)

This commit is contained in:
Jc2k
2022-01-31 22:48:16 +00:00
committed by GitHub
parent a9af29cbe0
commit 0f88790303
28 changed files with 139 additions and 179 deletions

View File

@@ -95,7 +95,7 @@ async def async_setup_entry(
@callback
def async_add_service(service):
if not (entity_class := ENTITY_TYPES.get(service.short_type)):
if not (entity_class := ENTITY_TYPES.get(service.type)):
return False
info = {"aid": service.accessory.aid, "iid": service.iid}
async_add_entities([entity_class(conn, info)], True)