Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions homeassistant/components/homekit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,7 @@ def _has_all_unique_names_and_ports(
)


UNPAIR_SERVICE_SCHEMA = vol.All(
vol.Schema(cv.ENTITY_SERVICE_FIELDS),
cv.has_at_least_one_key(ATTR_DEVICE_ID),
)
UNPAIR_SERVICE_SCHEMA = vol.Schema({vol.Required(ATTR_DEVICE_ID): str})


@callback
Expand Down
9 changes: 6 additions & 3 deletions homeassistant/components/homekit/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ reset_accessory:
entity: {}

unpair:
target:
device:
integration: homekit
fields:
device_id:
required: true
selector:
device:
integration: homekit
8 changes: 7 additions & 1 deletion homeassistant/components/homekit/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@
},
"unpair": {
"name": "Unpair an accessory or bridge",
"description": "Forcefully removes all pairings from an accessory to allow re-pairing. Use this action if the accessory is no longer responsive, and you want to avoid deleting and re-adding the entry. Room locations, and accessory preferences will be lost."
"description": "Forcefully removes all pairings from an accessory to allow re-pairing. Use this action if the accessory is no longer responsive, and you want to avoid deleting and re-adding the entry. Room locations, and accessory preferences will be lost.",
"fields": {
"device_id": {
"name": "Device",
"description": "Device to unpair."
}
}
}
}
}
Loading