Skip to content
Snippets Groups Projects
Unverified Commit 17440c96 authored by Joost Lekkerkerker's avatar Joost Lekkerkerker Committed by GitHub
Browse files

Add entity translations to Rympro (#96087)

parent 849aa5d9
No related branches found
No related tags found
No related merge requests found
......@@ -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"
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment