Connecting a DIY Homekit device working on ESP8266 to HA. - config_flow.py ERROR

I am trying to connect a Homekit device to HA. The homekit device is working on an ESP8266 nodemcu dev board flashed with a ‘HomeKit Light’ device type firmware flashed using the instructions in this github page below…

Apple homekit accessory library

It uses the official apple homekit accessory library to generate a firmware which is then flashed onto ESP8266 for creating DIY apple homekit enabled devices. Everything works fine on the Home app in my Ipad. The home app detects the device and when I connect it to the home app by entering the Pin it connects also. The device shows under the accessory list as Sample LED which i can turn on & off (i use the onboard led instead of relays for the prototyping purposes)

Now I have completely reset my ESP board, flashed the firmware as fresh so that it is in zero conf state.

Now this device is discovered by HA & is showing in the notification waiting to be configured

Image uploaded below (image 2)

but when I click the configure button, the loading screen continues endlessly. I checked the logs and could find the following error

Image uploaded below (image 3)

It says some error in config_flow.py.

How can I get this device to add to the HomeAssistant

Additionaly, The source code of the Homekit library I used is

Sample LED source code

It states the Homekit device characteristics as

HOMEKIT_ACCESSORY(.id=1, .category=homekit_accessory_category_lightbulb, .services=(homekit_service_t*[])

image uploaded below (image 4)

homekit_accessory_t *accessories[] = {
    HOMEKIT_ACCESSORY(.id=1, .category=homekit_accessory_category_lightbulb, .services=(homekit_service_t*[]){
        HOMEKIT_SERVICE(ACCESSORY_INFORMATION, .characteristics=(homekit_characteristic_t*[]){
            HOMEKIT_CHARACTERISTIC(NAME, "Sample LED"),
            HOMEKIT_CHARACTERISTIC(MANUFACTURER, "HaPK"),
            HOMEKIT_CHARACTERISTIC(SERIAL_NUMBER, "037A2BABF19D"),
            HOMEKIT_CHARACTERISTIC(MODEL, "MyLED"),
            HOMEKIT_CHARACTERISTIC(FIRMWARE_REVISION, "0.1"),
            HOMEKIT_CHARACTERISTIC(IDENTIFY, led_identify),
            NULL
        }),
        HOMEKIT_SERVICE(LIGHTBULB, .primary=true, .characteristics=(homekit_characteristic_t*[]){
            HOMEKIT_CHARACTERISTIC(NAME, "Sample LED"),
            HOMEKIT_CHARACTERISTIC(
                ON, false,
                .getter=led_on_get,
                .setter=led_on_set
            ),
            NULL
        }),
        NULL
    }),
    NULL
};

My objective of adding it to HA environment is that then I can configure homekit as well as Google assistant so that I can control it from all 3 interfaces…ie HomeAssistant , Home App on my Ipad as well as from my phone(its android… so google assistant)

Image 2 (device discovered by home assistant