mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Add Gas device class to DSMR Reader (#54748)
This commit is contained in:
parent
e1926caeb9
commit
73d03bdf1d
@ -13,6 +13,7 @@ from homeassistant.const import (
|
||||
CURRENCY_EURO,
|
||||
DEVICE_CLASS_CURRENT,
|
||||
DEVICE_CLASS_ENERGY,
|
||||
DEVICE_CLASS_GAS,
|
||||
DEVICE_CLASS_POWER,
|
||||
DEVICE_CLASS_TIMESTAMP,
|
||||
DEVICE_CLASS_VOLTAGE,
|
||||
@ -201,14 +202,14 @@ SENSORS: tuple[DSMRReaderSensorEntityDescription, ...] = (
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/consumption/gas/delivered",
|
||||
name="Gas usage",
|
||||
icon="mdi:fire",
|
||||
device_class=DEVICE_CLASS_GAS,
|
||||
native_unit_of_measurement=VOLUME_CUBIC_METERS,
|
||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||
),
|
||||
DSMRReaderSensorEntityDescription(
|
||||
key="dsmr/consumption/gas/currently_delivered",
|
||||
name="Current gas usage",
|
||||
icon="mdi:fire",
|
||||
device_class=DEVICE_CLASS_GAS,
|
||||
native_unit_of_measurement=VOLUME_CUBIC_METERS,
|
||||
state_class=STATE_CLASS_MEASUREMENT,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user