Skip to content

Commit

Permalink
Complement to issue openhab#16561 (openhab#16589)
Browse files Browse the repository at this point in the history
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
  • Loading branch information
clinique authored Mar 29, 2024
1 parent b6e3b81 commit accec17
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ protected List<NAObject> getFreshData(HomeApi api) {
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 -> {
Expand Down

0 comments on commit accec17

Please sign in to comment.