I have searched both core.config_entries and core.restore_state, but neither of them has got any sensor which is in Wh. Even put a stab at core.entity_registry. See below relevant extracts for problematic sensor sensor.integral_wasmachine
core.entity_registry
"config_entry_id": null,
"device_class": null,
"device_id": null,
"disabled_by": null,
"entity_category": null,
"entity_id": "sensor.integral_wasmachine",
"hidden_by": null,
"icon": null,
"id": "fc3015e4a4c3e5ee3473b8116616ce8d",
"has_entity_name": false,
"name": "Wasmachine energy",
"options": {
"sensor": {
"display_precision": null
},
"conversation": {
"should_expose": false
},
"cloud.google_assistant": {
"should_expose": false
},
"cloud.alexa": {
"should_expose": false
}
},
"original_device_class": null,
"original_icon": "mdi:chart-histogram",
"original_name": "integral_wasmachine",
"platform": "integration",
"supported_features": 0,
"translation_key": null,
"unique_id": "1bb42230-96d0-4b07-8494-a734c6750056",
"unit_of_measurement": null
},
core.config_entries
NOTHING
core.restore_state
{
"state": {
"entity_id": "sensor.integral_wasmachine",
"state": "17.62",
"attributes": {
"state_class": "total",
"source": "sensor.wasmachine_power",
"unit_of_measurement": "kWh",
"device_class": "energy",
"friendly_name": "Wasmachine energy"
},
"last_changed": "2023-07-08T06:53:53.654155+00:00",
"last_updated": "2023-07-08T06:54:10.381885+00:00",
"context": {
"id": "01H4T4F1YD7A23ADR64606M9DT",
"parent_id": null,
"user_id": null
}
},
And the source of the sensor from configuration.yaml
- platform: integration
source: sensor.wasmachine_power
unique_id: 1bb42230-96d0-4b07-8494-a734c6750056
name: integral_wasmachine
unit_prefix: k
round: 2
method: left