mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +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,
|
CURRENCY_EURO,
|
||||||
DEVICE_CLASS_CURRENT,
|
DEVICE_CLASS_CURRENT,
|
||||||
DEVICE_CLASS_ENERGY,
|
DEVICE_CLASS_ENERGY,
|
||||||
|
DEVICE_CLASS_GAS,
|
||||||
DEVICE_CLASS_POWER,
|
DEVICE_CLASS_POWER,
|
||||||
DEVICE_CLASS_TIMESTAMP,
|
DEVICE_CLASS_TIMESTAMP,
|
||||||
DEVICE_CLASS_VOLTAGE,
|
DEVICE_CLASS_VOLTAGE,
|
||||||
@ -201,14 +202,14 @@ SENSORS: tuple[DSMRReaderSensorEntityDescription, ...] = (
|
|||||||
DSMRReaderSensorEntityDescription(
|
DSMRReaderSensorEntityDescription(
|
||||||
key="dsmr/consumption/gas/delivered",
|
key="dsmr/consumption/gas/delivered",
|
||||||
name="Gas usage",
|
name="Gas usage",
|
||||||
icon="mdi:fire",
|
device_class=DEVICE_CLASS_GAS,
|
||||||
native_unit_of_measurement=VOLUME_CUBIC_METERS,
|
native_unit_of_measurement=VOLUME_CUBIC_METERS,
|
||||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
DSMRReaderSensorEntityDescription(
|
DSMRReaderSensorEntityDescription(
|
||||||
key="dsmr/consumption/gas/currently_delivered",
|
key="dsmr/consumption/gas/currently_delivered",
|
||||||
name="Current gas usage",
|
name="Current gas usage",
|
||||||
icon="mdi:fire",
|
device_class=DEVICE_CLASS_GAS,
|
||||||
native_unit_of_measurement=VOLUME_CUBIC_METERS,
|
native_unit_of_measurement=VOLUME_CUBIC_METERS,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user