Help.. state 0.10 display on OLED display 10 desired

Hello, I don’t know what to do anymore and need help. Regarding the situation. I want to display the volume of my Denon receiver on my esphome OLED display. This value is displayed on OLED

12:27:19	[D]	[homeassistant.sensor:022]	
'media_player.denon_avc_x4700h::volume_level': Got attribute state 0.10

0.10 also appears on the display but the display should be 10, so 1 - 100. I just can’t get it to display only the places after the decimal point

my Code

sensor:
  - platform: homeassistant
    id: volume_level
    entity_id: media_player.denon_avc_x4700h
    attribute: volume_level
display:
  - platform: ssd1322_spi
    id: mydisplay
    model: "SSD1322 256x64"
    reset_pin: GPIO17
    cs_pin: GPIO19
    dc_pin: GPIO16
    lambda: |-
        it.printf(180, 40, id(Verdana_Bold16), "VOL. %.1f", id(volume_level).state);

what am I doing wrong

Either:

sensor:
  - platform: homeassistant
    id: volume_level
    entity_id: media_player.denon_avc_x4700h
    attribute: volume_level
    filters:
      - multiply: 10

Or:

it.printf(180, 40, id(Verdana_Bold16), "VOL. %u", 100 * id(volume_level).state);`

thank you very much
this is it now

sensor:
  - platform: homeassistant
    id: volume_level
    entity_id: media_player.denon_avc_x4700h
    attribute: volume_level
    filters:
      - multiply: 100
1 Like

Uh yes, multiply by 100, of course :face_with_peeking_eye: