Bouke / HAP

Swift implementation of the Homekit Accessory Protocol
https://boukehaarsma.nl/HAP/
MIT License
366 stars 50 forks source link

Remove all pairings if no admins remain #42

Closed Bouke closed 6 years ago

Bouke commented 6 years ago

When the last admin pairing is removed, all other non-admin pairings should be removed as well. Per HAP specification (page 54):

If the last remaining admin controller pairing is removed, all pairings on the accessory must be removed.

Bouke commented 6 years ago

Fixed in 20adefca7a5d7595fdadba96d8b272fb637fb58d.