Clean up device class based entity translations in Rituals Perfume Genie (#95124)
This commit is contained in:
parent
cd66da0ab1
commit
31a2b2e3a9
3 changed files with 0 additions and 10 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue