diff --git a/lib/ui_class/card.class.dart b/lib/ui_class/card.class.dart index f6a2e67..ecc1dfd 100644 --- a/lib/ui_class/card.class.dart +++ b/lib/ui_class/card.class.dart @@ -29,7 +29,11 @@ class HACard { this.states, this.conditions: const [], @required this.type - }); + }) { + if (this.columnsCount <= 0) { + this.columnsCount = 4; + } + } List getEntitiesToShow() { return entities.where((entityWrapper) {