Add pair/unpair buttons for tplink
parent
c651e2b3c3
commit
6e53160b12
|
@ -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}
|
||||
|
|
|
@ -138,6 +138,12 @@
|
|||
},
|
||||
"tilt_down": {
|
||||
"name": "Tilt down"
|
||||
},
|
||||
"pair": {
|
||||
"name": "Pair new device"
|
||||
},
|
||||
"unpair": {
|
||||
"name": "Unpair device"
|
||||
}
|
||||
},
|
||||
"camera": {
|
||||
|
|
Loading…
Reference in New Issue