mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Allowing for TOON cost sensors to work with Energy (#74315)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user