diff --git a/homeassistant/components/rympro/sensor.py b/homeassistant/components/rympro/sensor.py index 80675d9dec8cf98d984bd2324c91e256ce7ef769..2c1a3ecee118e8ff3362473cdd434cd6c8838c28 100644 --- a/homeassistant/components/rympro/sensor.py +++ b/homeassistant/components/rympro/sensor.py @@ -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 diff --git a/homeassistant/components/rympro/strings.json b/homeassistant/components/rympro/strings.json index b6e7adc9631e999fd31f35b93cc5caf94b27f675..2909d6c1b9b848069782539a55923db4c7a44909 100644 --- a/homeassistant/components/rympro/strings.json +++ b/homeassistant/components/rympro/strings.json @@ -16,5 +16,12 @@ "abort": { "already_configured": "[%key:common::config_flow::abort::already_configured_device%]" } + }, + "entity": { + "sensor": { + "total_consumption": { + "name": "Total consumption" + } + } } }