After rebooting Home Assistant, history gets corrupted

Same here,
version: 2022.11.1, MariaDB.

After the new update, the simple history stats gets corrupted.

- platform: history_stats
  name: Fridge Working Hours
  entity_id: input_boolean.fridge_running
  state: "on"
  type: time
  start: "{{ 0 }}"
  end: "{{ now() }}"