def mute(self, mute):
        """Mute receiver"""
        try:
            if (mute and self._mute == STATE_OFF):
                self.send_command("MUTE_TOGGLE")
                self._mute = STATE_ON
                return True
            elif not mute and self._mute == STATE_ON:
                self.send_command("MUTE_TOGGLE")
                self._mute = STATE_OFF
                return True
        except requests.exceptions.RequestException:
            _LOGGER.error("Connection error: mute command not sent.")
            return False
Mute receiver