Resolves #439 Fix negative and zero columns issue for glance card

This commit is contained in:
estevez-dev 2019-09-03 23:58:28 +03:00
parent 6a8cee2cc2
commit 5f0bc83d67

View File

@ -29,7 +29,11 @@ class HACard {
this.states,
this.conditions: const [],
@required this.type
});
}) {
if (this.columnsCount <= 0) {
this.columnsCount = 4;
}
}
List<EntityWrapper> getEntitiesToShow() {
return entities.where((entityWrapper) {