[homekit] fix pairing after update (#9769)

Signed-off-by: Eugen Freiter <freiter@gmx.de>

Co-authored-by: Eugen Freiter <freiter@gmx.de>
This commit is contained in:
eugen 2021-01-10 16:25:18 +01:00 committed by GitHub
parent 25498701bf
commit 79b94e3e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ public class HomekitImpl implements Homekit {
changeListener.setBridge(bridge); changeListener.setBridge(bridge);
this.bridge = bridge; this.bridge = bridge;
bridge.setConfigurationIndex(changeListener.getConfigurationRevision()); bridge.setConfigurationIndex(changeListener.getConfigurationRevision());
bridge.refreshAuthInfo();
final int lastAccessoryCount = changeListener.getLastAccessoryCount(); final int lastAccessoryCount = changeListener.getLastAccessoryCount();
int currentAccessoryCount = changeListener.getAccessories().size(); int currentAccessoryCount = changeListener.getAccessories().size();
if (currentAccessoryCount < lastAccessoryCount) { if (currentAccessoryCount < lastAccessoryCount) {