Merge pull request #152 from estevez-dev/release/0.3.2

Fix empty cards on default_view
This commit is contained in:
Yegor Vialov 2018-10-18 22:03:51 +03:00 committed by GitHub
commit c71ee568b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -31,7 +31,7 @@ part 'card_class.dart';
EventBus eventBus = new EventBus();
const String appName = "HA Client";
const appVersion = "0.3.1";
const appVersion = "0.3.2";
String homeAssistantWebHost;

View File

@ -31,7 +31,12 @@ class ViewBuilder{
Map<String, List<String>> userGroupsList = entityCollection.getDefaultViewTopLevelEntities();
List<Entity> entitiesForView = [];
userGroupsList["userGroups"].forEach((groupId){
entitiesForView.add(entityCollection.get(groupId));
TheLogger.log("Debug","----User defined group: $groupId");
Entity en = entityCollection.get(groupId);
if (en.isGroup) {
en.childEntities = entityCollection.getAll(en.childEntityIds);
}
entitiesForView.add(en);
});
userGroupsList["notGroupedEntities"].forEach((entityId){
entitiesForView.add(entityCollection.get(entityId));

View File

@ -1,7 +1,7 @@
name: hass_client
description: Home Assistant Android Client
version: 0.3.1+41
version: 0.3.2+42
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"