Error when adding any input boolean or switch

I have a pretty solid setup and just updated through the 77’s to 77.3 . What I am seeing now is log errors every few seconds

http://192.168.1.50:8123/frontend_latest/app-1fe7ad4f.js:2:12805 Uncaught TypeError: Cannot read property 'input_boolean' of undefined

I have narrowed this down to my input booleans and switches. If I remove them all in config then the error disappears , as soon as I add even one back it reappears - even a ‘new’ one. I’m pretty sure my config is correct as I haven’t changed anything there for months.

One thing probably related is I had to delete the home-assistant_v2.db and allow Hass.io to recreate it a few days back - which seemed fine but now is perhaps not so ??