No state history found, rounding

Heya,

Since I updated my HA (doen’t specifically remember from what version) to HassOS 4.13 and HomeAssistant 0.115.2, my template from a sensor data doesn’t work anymore.

I have a xiaomi temp/humi sensor from which the data I correct and round so it only shows 10ths. Unfortunately, the round stopped working for the humidity data and I can’t figure out why. When I paste the code I use in the template page at the developer tools it does show the correct data. I already tried to delete the history database, but no succes.

Anyone got an idea? I added the screenshot/code below.

  - platform: template
    sensors:
     woonkamer_temperaturecor:
      entity_id: sensor.woonkamer_temperature
      value_template: >
        {% set value = (states('sensor.woonkamer_temperature') | float - 1.2 ) | round(1) %}
        {{ '{:.1f}'.format(value) }}
  - platform: template
    sensors:
     woonkamer_humiditycor:
      entity_id: sensor.woonkamer_humidity
      value_template: >
        {% set value = states('sensor.woonkamer_humidity') | round(1) %}
        {{ '{:.1f}'.format(float(value)) }}    

Anyone experiences this aswell?

Anyone experiences this?

Tried to add the sensor again a few times, using different methods/names but still no working solution. Anyone?