public void removeAccessory ( HomekitAccessory accessory ) { this . registry . remove ( accessory ) ; logger . info ( "Removed accessory " + accessory . getLabel ( ) ) ; if ( started ) { registry . reset ( ) ; webHandler . resetConnections ( ) ; } }
Removes an accessory from being handled or advertised by this root . Any existing Homekit connections will be terminated to allow the clients to reconnect and see the updated accessory list .