Set state class measurement also for Total Energy for AVM Fritz!Smarthome devices (#53707)
This commit is contained in:
parent
6590e464af
commit
2b0b8736f2
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ async def async_setup_entry(
|
|||
ATTR_ENTITY_ID: f"{device.ain}_total_energy",
|
||||
ATTR_UNIT_OF_MEASUREMENT: ENERGY_KILO_WATT_HOUR,
|
||||
ATTR_DEVICE_CLASS: DEVICE_CLASS_ENERGY,
|
||||
ATTR_STATE_CLASS: None,
|
||||
ATTR_STATE_CLASS: STATE_CLASS_MEASUREMENT,
|
||||
},
|
||||
coordinator,
|
||||
ain,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue