Resolves #439 Fix negative and zero columns issue for glance card
This commit is contained in:
parent
6a8cee2cc2
commit
5f0bc83d67
@ -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) {
|
||||
|
Reference in New Issue
Block a user