No statistics found for my template sensor?

this is my chart configuration

          - chart_type: line
            title: Dew Point v obýváku v prostřed stěny za °C
            period: 5minute
            type: statistics-graph
            entities:
              - entity: sensor.lvrmmilo_dew_point_in
                name: Na podlaze
              - entity: sensor.lvrmmimi_dew_point_in
                name: V 125cm
              - entity: sensor.lvrmmihi_dew_point_in
                name: Pod stropem
            stat_types:
              - mean
              - min
              - max            
            style:
              statistics-chart$ha-chart-base$: |
                .chartLegend li[title*=max] {
                  display: none !important;
                }
                .chartLegend li[title*=min] {
                  display: none !important;
                }
                .label {
                  text-overflow: clip !important;
                }
                .label::after {
                  content: "\00a0(mean)";
                  margin-right: -7em;
                }

sensor template:

      - name: LvRmCoLo Dew Point in
        icon: mdi:water-alert-outline
        state: "{{ ( (states('sensor.zm2_tuya_living_room_th_lower_temperature') | float) - (states('sensor.tc_lvrmcolo_dew_point') | float) ) | round(2) }}"
        unit_of_measurement: °C

It does get data:

But than nothing shows in statistics graph.

Solved by @Tim0 on discord, template needs state_class specified.