mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Update Ecovacs binary sensor keys (#109145)
This commit is contained in:
parent
2b1d1340b7
commit
c363edad4a
@ -36,8 +36,8 @@ ENTITY_DESCRIPTIONS: tuple[EcovacsBinarySensorEntityDescription, ...] = (
|
||||
EcovacsBinarySensorEntityDescription[WaterInfoEvent](
|
||||
capability_fn=lambda caps: caps.water,
|
||||
value_fn=lambda e: e.mop_attached,
|
||||
key="mop_attached",
|
||||
translation_key="mop_attached",
|
||||
key="water_mop_attached",
|
||||
translation_key="water_mop_attached",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"mop_attached": {
|
||||
"water_mop_attached": {
|
||||
"default": "mdi:water-off",
|
||||
"state": {
|
||||
"on": "mdi:water"
|
||||
|
@ -20,7 +20,7 @@
|
||||
},
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"mop_attached": {
|
||||
"water_mop_attached": {
|
||||
"name": "Mop attached"
|
||||
}
|
||||
},
|
||||
|
@ -25,8 +25,8 @@
|
||||
'platform': 'ecovacs',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'mop_attached',
|
||||
'unique_id': 'E1234567890000000001_mop_attached',
|
||||
'translation_key': 'water_mop_attached',
|
||||
'unique_id': 'E1234567890000000001_water_mop_attached',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -56,8 +56,8 @@
|
||||
'platform': 'ecovacs',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'mop_attached',
|
||||
'unique_id': 'E1234567890000000001_mop_attached',
|
||||
'translation_key': 'water_mop_attached',
|
||||
'unique_id': 'E1234567890000000001_water_mop_attached',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
|
Loading…
x
Reference in New Issue
Block a user