Complement to issue #16561 (#16589)

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Gaël L'hopital 2024-03-29 09:11:46 +01:00 committed by Ciprian Pascu
parent 09431e5245
commit 2f6e8a0871

View File

@ -110,10 +110,12 @@ public class HomeCapability extends CacheCapability<HomeApi> {
List<NAObject> result = new ArrayList<>();
homeIds.stream().filter(id -> !id.isEmpty()).forEach(id -> {
try {
HomeData homeData = api.getHomeData(id);
if (homeData != null) {
result.add(homeData);
featureAreas.addAll(homeData.getFeatures());
if (firstLaunch) {
HomeData homeData = api.getHomeData(id);
if (homeData != null) {
result.add(homeData);
featureAreas.addAll(homeData.getFeatures());
}
}
api.getHomeStatus(id).ifPresent(body -> {