Complement to issue #16561 (#16589)

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
This commit is contained in:
Gaël L'hopital
2024-03-29 09:11:46 +01:00
committed by GitHub
parent b6e3b816ac
commit accec17658
@@ -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 -> {