Update Ecovacs binary sensor keys (#109145)

This commit is contained in:
Robert Resch 2024-01-30 18:55:37 +01:00 committed by GitHub
parent 2b1d1340b7
commit c363edad4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -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,
),
)

View File

@ -1,7 +1,7 @@
{
"entity": {
"binary_sensor": {
"mop_attached": {
"water_mop_attached": {
"default": "mdi:water-off",
"state": {
"on": "mdi:water"

View File

@ -20,7 +20,7 @@
},
"entity": {
"binary_sensor": {
"mop_attached": {
"water_mop_attached": {
"name": "Mop attached"
}
},

View File

@ -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,
})
# ---