@callback
def async_add_characteristic(char: Characteristic):
    kwargs = NUMBER_ENTITIES.get(char.type)
    if (not kwargs):
        return False
    info = {'aid': char.service.accessory.aid, 'iid': char.service.iid}
    async_add_entities([HomeKitNumber(conn, info, char, **kwargs)], True)
    return True
@callback
def async_add_characteristic(char: Characteristic):
    kwargs = NUMBER_ENTITIES.get(char.type)
    if (not kwargs):
        return False
    info = {'aid': char.service.accessory.aid, 'iid': char.service.iid}
    async_add_entities([HomeKitNumber(conn, info, char, **kwargs)], True)
    return True