Resolves #422 Fix noSuchMethod for group-based UI
This commit is contained in:
parent
05c05ba768
commit
8c0d1f90a3
@ -27,7 +27,7 @@ class HACard {
|
||||
this.showEmpty: true,
|
||||
this.content,
|
||||
this.states,
|
||||
this.conditions,
|
||||
this.conditions: const [],
|
||||
@required this.type
|
||||
});
|
||||
|
||||
|
@ -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']);
|
||||
|
Reference in New Issue
Block a user