History Graph not updating template entity

I have templates to show water usage in minute from water counter.
Automation updates templates once per minute and all works expect History Graph card updates only when I click browser update.
Graphs move left but lines remain straigth until I refresh browser page.

Before browser reload:

After browser reload:

###### automations.yaml #########################################################
######################################################### water_now - water_past
- id: trigerWaterPerMinut
  alias: Update water per minut
  trigger:
    - platform: time_pattern
      minutes: '/1'
      seconds: 1
  condition: []
  action:
  - service: homeassistant.update_entity
    data:
      entity_id: sensor.water_per_minut
      
########################################################## save water minute ago
- id: trigerWaterPast
  alias: Update water last minute
  trigger:
    - platform: time_pattern
      minutes: '/1'
      seconds: 2
  condition: []
  action:
  - service: homeassistant.update_entity
    data:
      entity_id: sensor.water_past

conf

###### configuration.yaml #######################################################
      water_now:
        unique_id: water_now
        friendly_name: "Vesi_praegu"
        unit_of_measurement: 'L'
        value_template: "{{ states('sensor.vesi') | int }}"
          
      water_per_minut:
        unique_id: water_per_minut
        friendly_name: "Vee_kulu_minutis"
        unit_of_measurement: 'L/min'

        value_template: >
          {% if now().second == 1  %}
            {{ states('sensor.water_now') | int - states('sensor.water_past') | int }}
          {%- else %}
            {{ states('sensor.water_per_minut') | int }}
          {%- endif %}

      water_past:
        unique_id: water_past
        friendly_name: "Vesi_varem"
        unit_of_measurement: 'L'
        value_template: >
          {% if now().second  == 2 %}
            {{ states('sensor.water_now') | int }}
          {%- else %}
            {{ states('sensor.water_past') | int }}
          {%- endif %}

###############################################################################

lovlace

'title: Murru
views:
  - badges: []
    cards:history-graph
      - type: history-graph
        entities:
          - entity: sensor.water_now
          - entity: sensor.water_past
        hours_to_show: 1
        refresh_interval: 5
      - type: history-graph
        entities:
          - entity: sensor.water_per_minut
        hours_to_show: 1
        refresh_interval: 5
      - type: history-graph
        entities:
          - sensor.vesi_minutis
        hours_to_show: 1
        refresh_interval: 5
      - type: history-graph
        entities:
          - entity: sensor.elekter_minutis
        hours_to_show: 1
        refresh_interval: 5
    path: test
    title: Test

Any idea how to force History Graph update?

Hi, I have the same kind of problem: history graph is not updating at all (version 2022.6.6).
Did you solve your problem anyhow?

Actually back then this problem disappeared after some time, probably some update solved it.
Few weeks ago I noticed same effect on my very old tablet. There I must refresh browser for graph update.
On PC graphs update only when values changes, so I’m not happy. Graphs must move with time.

I’ve noticed that one of my History Graphs is now getting stuck, but others seem okay.