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 = ( ENTITY_DESCRIPTIONS = (
RitualsBinarySensorEntityDescription( RitualsBinarySensorEntityDescription(
key="charging", key="charging",
translation_key="charging",
device_class=BinarySensorDeviceClass.BATTERY_CHARGING, device_class=BinarySensorDeviceClass.BATTERY_CHARGING,
entity_category=EntityCategory.DIAGNOSTIC, entity_category=EntityCategory.DIAGNOSTIC,
is_on_fn=lambda diffuser: diffuser.charging, is_on_fn=lambda diffuser: diffuser.charging,

View File

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

View File

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