Sensor string trim and conversion to number

Hi Guys, I am quite new here and just starting.
Being searching the forum, but could not resolve my case.
Got sensor scraping currency exchange from website as per picture:


and it is working (updating value), but got it as string: = 5.5565 PLN
How to keep only value as number, so it can be presented on graph?
Thank you for understanding and help.

Can you post your configuration for your scrape sensor please

1 Like

This is the part:

sensor:
  # sensor for pound from grosik.com
  - platform: scrape
    name: funt
    resource: https://www.grosik.com
    select: "#buy-pannel > div:nth-child(1) > div:nth-child(1) > div:nth-child(2)"

add

value_template: "{{ value.split(' ')[1].replace(',','') }}"

Thank you @petro all works now.