default-routes: switch to the route when availability changed
This MR fixes the default-routes.lua
script to switch to the new route when availability changed.
This is needed so that audio is automatically switched to headphones when plugged, and switched back to speakers when unplugged.
The logic is based on media-session's commit: pipewire@84acfbbd
Fixes #69 (closed)