HTTP sensor value precision


I was able to create some HTTP sensors and the values show up in Lovelace with decimal places. So far, so good.

Unfortunately, the diagram that shows up after clicking the entity only shows whole numbers.

This is an example of the data that i am sending:

 {"state": "-6,23", "attributes": {"device_class": "current", "unit_of_measurement": "A", "friendly_name": "Batteriestrom"}}

Is there a way to see the decimal places in the diagram as well?

Best Regards,

I found the simple solution myself: the value must be sent with a decimal point instead of a decimal comma.