mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +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](
|
EcovacsBinarySensorEntityDescription[WaterInfoEvent](
|
||||||
capability_fn=lambda caps: caps.water,
|
capability_fn=lambda caps: caps.water,
|
||||||
value_fn=lambda e: e.mop_attached,
|
value_fn=lambda e: e.mop_attached,
|
||||||
key="mop_attached",
|
key="water_mop_attached",
|
||||||
translation_key="mop_attached",
|
translation_key="water_mop_attached",
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"entity": {
|
"entity": {
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
"mop_attached": {
|
"water_mop_attached": {
|
||||||
"default": "mdi:water-off",
|
"default": "mdi:water-off",
|
||||||
"state": {
|
"state": {
|
||||||
"on": "mdi:water"
|
"on": "mdi:water"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
},
|
},
|
||||||
"entity": {
|
"entity": {
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
"mop_attached": {
|
"water_mop_attached": {
|
||||||
"name": "Mop attached"
|
"name": "Mop attached"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
'platform': 'ecovacs',
|
'platform': 'ecovacs',
|
||||||
'previous_unique_id': None,
|
'previous_unique_id': None,
|
||||||
'supported_features': 0,
|
'supported_features': 0,
|
||||||
'translation_key': 'mop_attached',
|
'translation_key': 'water_mop_attached',
|
||||||
'unique_id': 'E1234567890000000001_mop_attached',
|
'unique_id': 'E1234567890000000001_water_mop_attached',
|
||||||
'unit_of_measurement': None,
|
'unit_of_measurement': None,
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
@ -56,8 +56,8 @@
|
|||||||
'platform': 'ecovacs',
|
'platform': 'ecovacs',
|
||||||
'previous_unique_id': None,
|
'previous_unique_id': None,
|
||||||
'supported_features': 0,
|
'supported_features': 0,
|
||||||
'translation_key': 'mop_attached',
|
'translation_key': 'water_mop_attached',
|
||||||
'unique_id': 'E1234567890000000001_mop_attached',
|
'unique_id': 'E1234567890000000001_water_mop_attached',
|
||||||
'unit_of_measurement': None,
|
'unit_of_measurement': None,
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user