I get the warning "The unit has changed"

Running latest HA.

I get a warning like this:

The unit has changed

The unit of 'Nordpool 10 Day Average' (sensor.nordpool_10_day_average) changed to 'Öre/kWh' which can't be converted to the previously stored unit, ''.
If the historic statistic values have a wrong unit, you can update the units of the old values. The values will not be updated.
Otherwise you can choose to delete all historic statistic values, and start over.

### How do you want to fix this issue?

 1 Update the unit of the historic statistic values from '' to 'Öre/kWh', without converting.

 2 Delete all old statistic data for this entity

The definition of sensor.nordpool_10_day_average is

sensor:
  - platform: statistics
    name: "Nordpool 10 Day Average"
    unique_id: "1b42533a-ba84-4739-9e83-fd71854368a2"
    entity_id: sensor.nordpool
    state_characteristic: mean
    precision: 1
    max_age:
      days: 10

In the warning I can chose between option 1 and 2. I have tried option 2 but the warning came back.
What can I do to solve the situation?

i’ve been getting exactly the same warnings for the openhardwaremonitor integration for the last several months. I think the issue was that the units of the reported memory usage data got changed during the normal course of PC usage (from mb to gb?). And that triggered the warning.

I submitted a bug report for it but it wasn’t acted on and was eventually closed automatically.

All that said I’m going to go out on a limb and say that there’s not a lot that you can do unless you figure out a way to force the units to never change when receiving the data from Nordpool.

AFAIK, you can’t even remove the sensor from the historical statistics database or otherwise ignore it either since we aren’t provided adequate control over that data.

It’s annoying but the only thing I can do is just click thru to “resolve” the warning and wait for it to inevitably pop back up again later.

Thanks for your comment!
I thought i did something wrong.