Adjust state class of Toon monetary sensors (#89985)

This commit is contained in:
Franck Nijhof
2023-03-20 13:42:59 +01:00
committed by GitHub
parent b9ff69d3ac
commit 9949ca13aa

View File

@@ -183,7 +183,7 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
section="gas_usage",
measurement="day_cost",
device_class=SensorDeviceClass.MONETARY,
state_class=SensorStateClass.TOTAL_INCREASING,
state_class=SensorStateClass.TOTAL,
native_unit_of_measurement=CURRENCY_EUR,
icon="mdi:gas-cylinder",
cls=ToonGasMeterDeviceSensor,
@@ -233,7 +233,7 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
section="power_usage",
measurement="day_cost",
device_class=SensorDeviceClass.MONETARY,
state_class=SensorStateClass.TOTAL_INCREASING,
state_class=SensorStateClass.TOTAL,
native_unit_of_measurement=CURRENCY_EUR,
icon="mdi:power-plug",
cls=ToonElectricityMeterDeviceSensor,
@@ -358,7 +358,7 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
section="water_usage",
measurement="day_cost",
device_class=SensorDeviceClass.MONETARY,
state_class=SensorStateClass.TOTAL_INCREASING,
state_class=SensorStateClass.TOTAL,
native_unit_of_measurement=CURRENCY_EUR,
icon="mdi:water-pump",
entity_registry_enabled_default=False,