TTLock Error: Config flow could not be loaded: {"message":"Invalid handler specified"}

I did post about this on the integration repository but no reply yet and I suspect it may be a HAss problem however, I’m not sure.

For some reason, no clue why, as the integration has been working fine for over a year and there wasn’t even any updates or reboots, it just stopped working this morning.

I see this message in the logs:

Logger: homeassistant.config_entries
Source: config_entries.py:4040
First occurred: 00:07:18 (2 occurrences)
Last logged: 00:12:38

Error occurred loading flow for integration ttlock: RuntimeError importing custom_components.ttlock.config_flow: unable to infer type for attribute "id"

Obviously tried a restart, then reboot but no change.

So I tried to delete the OAuth stuff, which failed as it was “in use”.

I then deleted the integration totally, checked the files and it was gone. re-downloaded it. Reinstalled it. Several times with restarts/reboots to try to get it to stop giving me the very annoying invalid handler error but to no avail.

I am totally stuck, I have no idea why I’m getting that error when the integration has been completely removed and reinstalled, it makes no sense to me.

Can anyone shed any light please?

The solution can be found here if anyone else has this problem: