[homekit] properly expose services from dummy accessories (#14169)

Signed-off-by: Cody Cutrer <cody@cutrer.us>
This commit is contained in:
Cody Cutrer 2023-01-06 08:25:42 -07:00 committed by GitHub
parent 5655303cf1
commit 7608c41484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ package org.openhab.io.homekit.internal.accessories;
import java.io.StringReader; import java.io.StringReader;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
@ -161,4 +162,9 @@ public class DummyHomekitAccessory implements HomekitAccessory {
public CompletableFuture<String> getFirmwareRevision() { public CompletableFuture<String> getFirmwareRevision() {
return CompletableFuture.completedFuture("none"); return CompletableFuture.completedFuture("none");
} }
@Override
public Collection<Service> getServices() {
return services;
}
} }