Fix empty cards on default_view
This commit is contained in:
parent
8284bb6e76
commit
75041f5c23
@ -30,7 +30,7 @@ part 'card_class.dart';
|
|||||||
|
|
||||||
EventBus eventBus = new EventBus();
|
EventBus eventBus = new EventBus();
|
||||||
const String appName = "HA Client";
|
const String appName = "HA Client";
|
||||||
const appVersion = "0.3.1";
|
const appVersion = "0.3.2";
|
||||||
|
|
||||||
String homeAssistantWebHost;
|
String homeAssistantWebHost;
|
||||||
|
|
||||||
|
@ -31,7 +31,12 @@ class ViewBuilder{
|
|||||||
Map<String, List<String>> userGroupsList = entityCollection.getDefaultViewTopLevelEntities();
|
Map<String, List<String>> userGroupsList = entityCollection.getDefaultViewTopLevelEntities();
|
||||||
List<Entity> entitiesForView = [];
|
List<Entity> entitiesForView = [];
|
||||||
userGroupsList["userGroups"].forEach((groupId){
|
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){
|
userGroupsList["notGroupedEntities"].forEach((entityId){
|
||||||
entitiesForView.add(entityCollection.get(entityId));
|
entitiesForView.add(entityCollection.get(entityId));
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: hass_client
|
name: hass_client
|
||||||
description: Home Assistant Android Client
|
description: Home Assistant Android Client
|
||||||
|
|
||||||
version: 0.3.1+41
|
version: 0.3.2+42
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
||||||
|
Reference in New Issue
Block a user