mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Signed-off-by: gael@lhopital.org <gael@lhopital.org> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
09431e5245
commit
2f6e8a0871
@ -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 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user