I’m working on updating the integration for Sony Songpal, including making it discoverable via ssdp. I’ve set up my development environment according to the instructions here, and I’ve got an initial implementation.
However, I’m now stuck on testing. If I test using the development version running in the docker container, nothing comes back in discovery, including things that are currently discovered in my production Home Assistant environment. I’m pretty sure this is because docker keeps the network environment separate, but I can’t figure out how to override this. For example, I’ve tried passing
runArgs section, but that didn’t seem to work.
I’ve also tried using the component I’m developing as a custom component in my production Home Assistant environment. The integration works (e.g. I can manually enter the necessary information and it creates a Config Entry. However, ssdp discovery doesn’t work. I’m pretty sure this is because it isn’t generating an entry in
/homeassistant/generated/ssdp.py, but not certain.
Any pointers here? How can I test ssdp discovery for this integration? Apologies if this is something obvious.