mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Add previously missing state classes to dsmr sensors (#147633)
This commit is contained in:
parent
19d89c8952
commit
d874c28dc9
@ -241,6 +241,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference="SHORT_POWER_FAILURE_COUNT",
|
obis_reference="SHORT_POWER_FAILURE_COUNT",
|
||||||
dsmr_versions={"2.2", "4", "5", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5L"},
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -249,6 +250,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference="LONG_POWER_FAILURE_COUNT",
|
obis_reference="LONG_POWER_FAILURE_COUNT",
|
||||||
dsmr_versions={"2.2", "4", "5", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5L"},
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -257,6 +259,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference="VOLTAGE_SAG_L1_COUNT",
|
obis_reference="VOLTAGE_SAG_L1_COUNT",
|
||||||
dsmr_versions={"2.2", "4", "5", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5L"},
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -265,6 +268,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference="VOLTAGE_SAG_L2_COUNT",
|
obis_reference="VOLTAGE_SAG_L2_COUNT",
|
||||||
dsmr_versions={"2.2", "4", "5", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5L"},
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -273,6 +277,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference="VOLTAGE_SAG_L3_COUNT",
|
obis_reference="VOLTAGE_SAG_L3_COUNT",
|
||||||
dsmr_versions={"2.2", "4", "5", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5L"},
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -281,6 +286,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference="VOLTAGE_SWELL_L1_COUNT",
|
obis_reference="VOLTAGE_SWELL_L1_COUNT",
|
||||||
dsmr_versions={"2.2", "4", "5", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5L"},
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -289,6 +295,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference="VOLTAGE_SWELL_L2_COUNT",
|
obis_reference="VOLTAGE_SWELL_L2_COUNT",
|
||||||
dsmr_versions={"2.2", "4", "5", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5L"},
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -297,6 +304,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference="VOLTAGE_SWELL_L3_COUNT",
|
obis_reference="VOLTAGE_SWELL_L3_COUNT",
|
||||||
dsmr_versions={"2.2", "4", "5", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5L"},
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user