mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 06:20:07 +00:00
Refactor homekit_controller to prepare for more typing information (#65329)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user