Allowing for TOON cost sensors to work with Energy (#74315)
parent
07f677e9e8
commit
227d8b69a7
|
@ -182,6 +182,8 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||
name="Gas Cost Today",
|
||||
section="gas_usage",
|
||||
measurement="day_cost",
|
||||
device_class=SensorDeviceClass.MONETARY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
native_unit_of_measurement=CURRENCY_EUR,
|
||||
icon="mdi:gas-cylinder",
|
||||
cls=ToonGasMeterDeviceSensor,
|
||||
|
@ -230,6 +232,8 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||
name="Energy Cost Today",
|
||||
section="power_usage",
|
||||
measurement="day_cost",
|
||||
device_class=SensorDeviceClass.MONETARY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
native_unit_of_measurement=CURRENCY_EUR,
|
||||
icon="mdi:power-plug",
|
||||
cls=ToonElectricityMeterDeviceSensor,
|
||||
|
@ -350,6 +354,8 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||
name="Water Cost Today",
|
||||
section="water_usage",
|
||||
measurement="day_cost",
|
||||
device_class=SensorDeviceClass.MONETARY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
native_unit_of_measurement=CURRENCY_EUR,
|
||||
icon="mdi:water-pump",
|
||||
entity_registry_enabled_default=False,
|
||||
|
|
Loading…
Reference in New Issue