Add pair/unpair buttons for tplink

pull/135847/head
Teemu Rytilahti 2025-01-17 14:48:25 +01:00
parent c651e2b3c3
commit 6e53160b12
2 changed files with 8 additions and 0 deletions

View File

@ -70,6 +70,8 @@ BUTTON_DESCRIPTIONS: Final = [
key="tilt_down",
available_fn=lambda dev: dev.is_on,
),
TPLinkButtonEntityDescription(key="pair"),
TPLinkButtonEntityDescription(key="unpair"),
]
BUTTON_DESCRIPTIONS_MAP = {desc.key: desc for desc in BUTTON_DESCRIPTIONS}

View File

@ -138,6 +138,12 @@
},
"tilt_down": {
"name": "Tilt down"
},
"pair": {
"name": "Pair new device"
},
"unpair": {
"name": "Unpair device"
}
},
"camera": {