Default_config breaking google cast?

Hello!

I’ve been working on this for a while now and just can’t get anywhere so hoping someone can help?

I’d noticed that all of my google cast devices were showing as unavailable and have been troubleshooting what might be causing it. After a lot of messing about I found this…

If I remove Default_config: from my configuration.yaml and restart HA they’re instantly discovered and available. Adding default_config back in makes them go unavailable again.

Now obviously removing default config breaks a load of stuff for me so I’ll have to get it back in somehow, but I’m wondering if it’s been messed up somehow?

I’ve tried to --update --force to see if that fixed it but it doesn’t seem to have done anything. Everything else seems fine apart from the google cast. No errors in the log either.

Anyone seen anything like this?
Cheers,
Jon

I’m running in a venv on a truenas core jail.

Version core-2021.9.7
Installation Type Home Assistant Core
Development false
Supervisor false
Docker false
Virtual Environment true
Python Version 3.8.12
Operating System Family FreeBSD

Some more info I thought might be useful…

I’ve also tried;
removing and re-adding the integration
deleting homeassistant db
removing all traces of the devices from entities and device register

Everything is on the same subnet, nothing going on with vlans or anything like that.

A further update - it seems to be something to do with zeroconf, which is pretty weird…
I removed default_conf from my configuration.yaml and replaced it with everything that it loads and then went through and commented each one out, restarted, re-enabled and went on to the next one.
Once I commented out zeroconf all of my cast devices were detected, I thought zeroconf did a lot of the work in detection so I’m confused at how things are detected when it’s not loaded and lost when it is.

Here’s my list instead of loading default_config
automation:
cloud:
config:
counter:
dhcp:
energy:
frontend:
history:
image:
input_boolean:
input_datetime:
input_number:
input_select:
input_text:
logbook:
map:
media_source:
mobile_app:
my:
person:
scene:
script:
ssdp:
stream:
sun:
system_health:
tag:
timer:
updater:
usb:
webhook:
#zeroconf:
zone:

Anyone got any insight? Or maybe I should open a bug?

Thanks,
Jon