def turn_off(self, **kwargs):
        if self.is_on:
            self._pa_svr.turn_off(self._module_idx)
            self._pa_svr.update_module_state(no_throttle=True)
            self._module_idx = self._pa_svr.get_module_idx(self._sink_name,
                                                           self._source_name)
            self.update_ha_state()
        else:
            _LOGGER.warning(IGNORED_SWITCH_WARN)
Turn the device off.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/pulseaudio_loopback.py/PALoopbackSwitch.turn_off