Add entity translations to Recollect waste (#96037)

This commit is contained in:
Joost Lekkerkerker 2023-07-07 16:32:59 +02:00 committed by GitHub
parent 529846d3a2
commit fec40ec250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -28,11 +28,11 @@ SENSOR_TYPE_NEXT_PICKUP = "next_pickup"
SENSOR_DESCRIPTIONS = (
SensorEntityDescription(
key=SENSOR_TYPE_CURRENT_PICKUP,
name="Current pickup",
translation_key=SENSOR_TYPE_CURRENT_PICKUP,
),
SensorEntityDescription(
key=SENSOR_TYPE_NEXT_PICKUP,
name="Next pickup",
translation_key=SENSOR_TYPE_NEXT_PICKUP,
),
)

View File

@ -24,5 +24,15 @@
}
}
}
},
"entity": {
"sensor": {
"current_pickup": {
"name": "Current pickup"
},
"next_pickup": {
"name": "Next pickup"
}
}
}
}