Kodi not ready yet after reboot 0.115.2

Logger: homeassistant.config_entries
Source: config_entries.py:239
First occurred: 20:35:23 (2 occurrences)
Last logged: 20:35:30

Config entry for kodi not ready yet. Retrying in 5 seconds
Config entry for kodi not ready yet. Retrying in 10 seconds

When upgrading to 0.115.2 I had 2 instances, the one configured in yaml and an autoconfigured one. I removed the one from yaml in the integrations page, but now I get above error message and the media player entity for kodi isn’t working.

Anyone? I just rebooted HA and it never finished loading Kodi:

2020-09-22 16:29:23 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 5 seconds
2020-09-22 16:29:28 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 10 seconds
2020-09-22 16:29:38 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 20 seconds
2020-09-22 16:29:58 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 40 seconds
2020-09-22 16:30:38 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:31:58 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:33:18 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:34:38 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:35:58 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:37:18 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:38:38 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:39:58 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:41:18 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:42:38 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:43:58 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:45:18 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:46:39 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:47:59 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:49:19 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:50:39 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds
2020-09-22 16:51:59 WARNING (MainThread) [homeassistant.config_entries] Config entry for kodi not ready yet. Retrying in 80 seconds

Yes, this error occurs after update 15.2. If Kodi is turned on during a restart, the error will not appear even if Kodi is turned off later.

Thing is my kodi al always online (running OSMC on a pi3). I removed the auto discovered device and manually added it again in the integrations screen, seems to work for now.

I found that the Kodi integrations imported automatically from my yaml config were bad too. Then I got discovered duplicates.

Deleted all of them (including my YAML for the Kodi media players). Restarted. Added and configured the discovered Kodi media players and now all is well.