mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
This commit is contained in:
+2
@@ -110,11 +110,13 @@ public class HomeCapability extends CacheCapability<HomeApi> {
|
||||
List<NAObject> result = new ArrayList<>();
|
||||
homeIds.stream().filter(id -> !id.isEmpty()).forEach(id -> {
|
||||
try {
|
||||
if (firstLaunch) {
|
||||
HomeData homeData = api.getHomeData(id);
|
||||
if (homeData != null) {
|
||||
result.add(homeData);
|
||||
featureAreas.addAll(homeData.getFeatures());
|
||||
}
|
||||
}
|
||||
|
||||
api.getHomeStatus(id).ifPresent(body -> {
|
||||
body.getHomeStatus().ifPresent(result::add);
|
||||
|
||||
Reference in New Issue
Block a user