Clean up device class based entity translations in Rituals Perfume Genie (#95124)

This commit is contained in:
Franck Nijhof 2023-06-23 17:24:57 +02:00 committed by GitHub
parent cd66da0ab1
commit 31a2b2e3a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 10 deletions

View file

@ -39,7 +39,6 @@ class RitualsBinarySensorEntityDescription(
ENTITY_DESCRIPTIONS = (
RitualsBinarySensorEntityDescription(
key="charging",
translation_key="charging",
device_class=BinarySensorDeviceClass.BATTERY_CHARGING,
entity_category=EntityCategory.DIAGNOSTIC,
is_on_fn=lambda diffuser: diffuser.charging,

View file

@ -40,7 +40,6 @@ class RitualsSensorEntityDescription(
ENTITY_DESCRIPTIONS = (
RitualsSensorEntityDescription(
key="battery_percentage",
translation_key="battery_percentage",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.BATTERY,
value_fn=lambda diffuser: diffuser.battery_percentage,

View file

@ -19,11 +19,6 @@
}
},
"entity": {
"binary_sensor": {
"charging": {
"name": "[%key:component::binary_sensor::entity_component::battery_charging::name%]"
}
},
"number": {
"perfume_amount": {
"name": "Perfume amount"
@ -35,9 +30,6 @@
}
},
"sensor": {
"battery_percentage": {
"name": "[%key:component::sensor::entity_component::battery::name%]"
},
"fill": {
"name": "Fill"
},