mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Add Gas device class to DSMR component (#2169)
This commit is contained in:
parent
cbdb96f105
commit
44bb5a89c8
2 changed files with 5 additions and 2 deletions
|
@ -5,6 +5,7 @@ from esphome.const import (
|
||||||
DEVICE_CLASS_CURRENT,
|
DEVICE_CLASS_CURRENT,
|
||||||
DEVICE_CLASS_EMPTY,
|
DEVICE_CLASS_EMPTY,
|
||||||
DEVICE_CLASS_ENERGY,
|
DEVICE_CLASS_ENERGY,
|
||||||
|
DEVICE_CLASS_GAS,
|
||||||
DEVICE_CLASS_POWER,
|
DEVICE_CLASS_POWER,
|
||||||
DEVICE_CLASS_VOLTAGE,
|
DEVICE_CLASS_VOLTAGE,
|
||||||
ICON_EMPTY,
|
ICON_EMPTY,
|
||||||
|
@ -178,7 +179,7 @@ CONFIG_SCHEMA = cv.Schema(
|
||||||
"m³",
|
"m³",
|
||||||
ICON_EMPTY,
|
ICON_EMPTY,
|
||||||
3,
|
3,
|
||||||
DEVICE_CLASS_EMPTY,
|
DEVICE_CLASS_GAS,
|
||||||
STATE_CLASS_MEASUREMENT,
|
STATE_CLASS_MEASUREMENT,
|
||||||
LAST_RESET_TYPE_NEVER,
|
LAST_RESET_TYPE_NEVER,
|
||||||
),
|
),
|
||||||
|
@ -186,7 +187,7 @@ CONFIG_SCHEMA = cv.Schema(
|
||||||
"m³",
|
"m³",
|
||||||
ICON_EMPTY,
|
ICON_EMPTY,
|
||||||
3,
|
3,
|
||||||
DEVICE_CLASS_EMPTY,
|
DEVICE_CLASS_GAS,
|
||||||
STATE_CLASS_MEASUREMENT,
|
STATE_CLASS_MEASUREMENT,
|
||||||
LAST_RESET_TYPE_NEVER,
|
LAST_RESET_TYPE_NEVER,
|
||||||
),
|
),
|
||||||
|
|
|
@ -40,6 +40,7 @@ from esphome.const import (
|
||||||
DEVICE_CLASS_CARBON_DIOXIDE,
|
DEVICE_CLASS_CARBON_DIOXIDE,
|
||||||
DEVICE_CLASS_CURRENT,
|
DEVICE_CLASS_CURRENT,
|
||||||
DEVICE_CLASS_ENERGY,
|
DEVICE_CLASS_ENERGY,
|
||||||
|
DEVICE_CLASS_GAS,
|
||||||
DEVICE_CLASS_HUMIDITY,
|
DEVICE_CLASS_HUMIDITY,
|
||||||
DEVICE_CLASS_ILLUMINANCE,
|
DEVICE_CLASS_ILLUMINANCE,
|
||||||
DEVICE_CLASS_MONETARY,
|
DEVICE_CLASS_MONETARY,
|
||||||
|
@ -62,6 +63,7 @@ DEVICE_CLASSES = [
|
||||||
DEVICE_CLASS_CARBON_DIOXIDE,
|
DEVICE_CLASS_CARBON_DIOXIDE,
|
||||||
DEVICE_CLASS_CURRENT,
|
DEVICE_CLASS_CURRENT,
|
||||||
DEVICE_CLASS_ENERGY,
|
DEVICE_CLASS_ENERGY,
|
||||||
|
DEVICE_CLASS_GAS,
|
||||||
DEVICE_CLASS_HUMIDITY,
|
DEVICE_CLASS_HUMIDITY,
|
||||||
DEVICE_CLASS_ILLUMINANCE,
|
DEVICE_CLASS_ILLUMINANCE,
|
||||||
DEVICE_CLASS_MONETARY,
|
DEVICE_CLASS_MONETARY,
|
||||||
|
|
Loading…
Reference in a new issue