History_graph charts change after loading

Hi, I have a problem with history_graph. I don’t know is this is a bug or it’s my fault.
I try to show two charts:

history_graph:
  graph_pogoda:
    name: Pogoda
    entities:
      - sensor.tempzewn
      - sensor.tempdom
    hours_to_show: 6
  graph_piwnica:
    name: Ogrzewanie
    entities:
      - sensor.piwnicakaloryfery
      - sensor.piwnicaco
    hours_to_show: 6

Both are loaded correctly in browser, showing 6 hours history (left side on the picture below), but just after loading they change into graph_piwnica and 24 hours (right side). I used this value before.

w3

After refreshing (refresh: 120) it shows good charts again (left side)

It looks like:

  • drawing both charts correctly (“pogoda” and “ogrzewanie”)
  • after everything is loaded, it takes some old chart of “ogrzewanie” (HA cache?) and replace both charts with it.
  • after “reload: time” it shows again good results

If I use only one chart (any of them) everything is ok.
It doesn’t help if I restart HA or use another browser with clean cache (like Edge, never loaded HA before)
It doesn’t help if I use “history_graph.pogoda” and “history_graph.piwnica” directly, or I create groups (group.pogoda and group.piwnica) and load them separately.
Clicking on charts always shows correct graphs.

default_view:
      view: yes
      name: 'Dom'
      entities:
        - sensor.tempdom
        - sensor.tempzewn
        - history_graph.pogoda
        - history_graph.ogrzewanie

or

default_view:
      view: yes
      name: 'Dom'
      entities:
        - sensor.tempdom
        - sensor.tempzewn
        - group.piwnica
        - group.pogoda

Anyone could help me or had similar problem?

UPDATE: Moving from sqlite to MariaDB solved the problem for now. I’ll check after some time