MQTT things don't survive reboot, ESPURNA RF bridge

I came to this post looking for a solution to my sonoff devices showing not available after a HA restart.
I ended up using the solution posted by @francisp on this thread: Tasmota - Entity Not Available