Restore value integration sensor help

Hello
I have a problem with restore of values of two integration sensors.

After restart the values are unknown.

  - platform: integration
    name: "In Energy"
    sensor: powink
    id: int2
    accuracy_decimals: 3
    unit_of_measurement: kWh
    state_class: total_increasing
    device_class: energy
    icon: "mdi:battery-positive"
    time_unit: h
    restore: true
    min_save_interval: 60s
    integration_method: right

 - platform: integration
    name: "Out Energy"
    sensor: powoutk
    id: int1
    accuracy_decimals: 3
    unit_of_measurement: kWh
    state_class: total_increasing
    device_class: energy
    icon: "mdi:battery-negative"
    time_unit: h
    restore: true
    min_save_interval: 60s
    integration_method: right

What did I wrong?
Thanks

You should provide your full ESPhome YAML config, excluding secret info, so that we can tell what is going on. The info you provided is not enough to figure out what is going on.

You should not use “restore: true”, unless absolutely necessary, as it will cause excessive memory writes.