mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add entity translations to Rympro (#96087)
This commit is contained in:
parent
849aa5d9ef
commit
17440c9608
@ -34,7 +34,7 @@ class RymProSensor(CoordinatorEntity[RymProDataUpdateCoordinator], SensorEntity)
|
||||
"""Sensor for RymPro meters."""
|
||||
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = "Total consumption"
|
||||
_attr_translation_key = "total_consumption"
|
||||
_attr_device_class = SensorDeviceClass.WATER
|
||||
_attr_native_unit_of_measurement = UnitOfVolume.CUBIC_METERS
|
||||
_attr_state_class = SensorStateClass.TOTAL_INCREASING
|
||||
|
@ -16,5 +16,12 @@
|
||||
"abort": {
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"total_consumption": {
|
||||
"name": "Total consumption"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user