mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Revert the state class removal in dsmr_reader after bugfix (#84267)
This commit is contained in:
parent
bd65258905
commit
5df7cb0fb5
@ -225,36 +225,42 @@ SENSORS: tuple[DSMRReaderSensorEntityDescription, ...] = (
|
|||||||
name="Low tariff usage (daily)",
|
name="Low tariff usage (daily)",
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
DSMRReaderSensorEntityDescription(
|
DSMRReaderSensorEntityDescription(
|
||||||
key="dsmr/day-consumption/electricity2",
|
key="dsmr/day-consumption/electricity2",
|
||||||
name="High tariff usage (daily)",
|
name="High tariff usage (daily)",
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
DSMRReaderSensorEntityDescription(
|
DSMRReaderSensorEntityDescription(
|
||||||
key="dsmr/day-consumption/electricity1_returned",
|
key="dsmr/day-consumption/electricity1_returned",
|
||||||
name="Low tariff return (daily)",
|
name="Low tariff return (daily)",
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
DSMRReaderSensorEntityDescription(
|
DSMRReaderSensorEntityDescription(
|
||||||
key="dsmr/day-consumption/electricity2_returned",
|
key="dsmr/day-consumption/electricity2_returned",
|
||||||
name="High tariff return (daily)",
|
name="High tariff return (daily)",
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
DSMRReaderSensorEntityDescription(
|
DSMRReaderSensorEntityDescription(
|
||||||
key="dsmr/day-consumption/electricity_merged",
|
key="dsmr/day-consumption/electricity_merged",
|
||||||
name="Power usage total (daily)",
|
name="Power usage total (daily)",
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
DSMRReaderSensorEntityDescription(
|
DSMRReaderSensorEntityDescription(
|
||||||
key="dsmr/day-consumption/electricity_returned_merged",
|
key="dsmr/day-consumption/electricity_returned_merged",
|
||||||
name="Power return total (daily)",
|
name="Power return total (daily)",
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||||
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
DSMRReaderSensorEntityDescription(
|
DSMRReaderSensorEntityDescription(
|
||||||
key="dsmr/day-consumption/electricity1_cost",
|
key="dsmr/day-consumption/electricity1_cost",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user