How to solve this error?

I always get this error in log:
“2018-04-20 09:35:05 ERROR (MainThread) [homeassistant.core] Invalid service data for media_player.volume_up: extra keys not allowed @ data[‘volume_level’]. Got ‘0.5’”

and this is my config about volume_level:

input_number:
  radio_volume:
    name: Volume
    icon: mdi:volume-high
    min: 0
    max: 1
    step: 0.05
    initial: '0.5'
    mode: slider

And media_player.volume_up is:

- service: media_player.volume_up
  data_template:
    entity_id: media_player.salotto_audio
    volume_level: 0.50

Where is the error?

You are not passing any template info. Why use data template instead of just data.

Good question! If i remember well i only made a cut and copy from an example… now i will use only data and see what happens…
Thanks…

Don’t think volume_up needs a volume_level. volume_set would though…