Add Landis+Gyr missing device class (#90182)
Add missing device class for heat_previous_year_gjpull/90187/head
parent
73ed6e039a
commit
cb578c71e0
|
@ -77,6 +77,7 @@ HEAT_METER_SENSOR_TYPES = (
|
|||
icon="mdi:fire",
|
||||
name="Heat previous year GJ",
|
||||
native_unit_of_measurement=UnitOfEnergy.GIGA_JOULE,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
value_fn=lambda res: getattr(res, "heat_previous_year_gj", None),
|
||||
),
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
}),
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'energy',
|
||||
'friendly_name': 'Heat Meter Heat previous year GJ',
|
||||
'icon': 'mdi:fire',
|
||||
'unit_of_measurement': <UnitOfEnergy.GIGA_JOULE: 'GJ'>,
|
||||
|
|
Loading…
Reference in New Issue