Resolves #422 Fix noSuchMethod for group-based UI

This commit is contained in:
estevez-dev 2019-08-27 20:05:33 +03:00
parent 05c05ba768
commit 8c0d1f90a3
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class HACard {
this.showEmpty: true,
this.content,
this.states,
this.conditions,
this.conditions: const [],
@required this.type
});

View File

@ -24,7 +24,7 @@ class CardWidget extends StatelessWidget {
}
}
if (card.conditions != null && card.conditions.isNotEmpty) {
if (card.conditions.isNotEmpty) {
bool showCardByConditions = false;
for (var condition in card.conditions) {
Entity conditionEntity = HomeAssistant().entities.get(condition['entity']);