Add state_color support

This commit is contained in:
Yegor Vialov
2020-04-28 21:03:00 +00:00
parent b029146bf3
commit 96b3e7c739
3 changed files with 29 additions and 11 deletions

View File

@ -4,6 +4,7 @@ class EntityWrapper {
String overrideName;
final String overrideIcon;
final bool stateColor;
EntityUIAction uiAction;
Entity entity;
String unitOfMeasurementOverride;
@ -18,6 +19,7 @@ class EntityWrapper {
this.entity,
this.overrideIcon,
this.overrideName,
this.stateColor: true,
this.uiAction,
this.stateFilter
}) {