mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Clean up device class based entity translations in Rituals Perfume Genie (#95124)
This commit is contained in:
parent
cd66da0ab1
commit
31a2b2e3a9
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user