Add new Button card support

This commit is contained in:
Yegor Vialov 2020-04-13 18:17:14 +00:00
parent 8bf2d31e72
commit de4e0bfb3a
2 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,10 @@ class CardWidget extends StatelessWidget {
return _buildEntityButtonCard(context);
}
case CardType.BUTTON: {
return _buildEntityButtonCard(context);
}
case CardType.GAUGE: {
return _buildGaugeCard(context);
}

View File

@ -113,6 +113,7 @@ class CardType {
static const IFRAME = "iframe";
static const GAUGE = "gauge";
static const ENTITY_BUTTON = "entity-button";
static const BUTTON = "button";
static const CONDITIONAL = "conditional";
static const ALARM_PANEL = "alarm-panel";
static const MARKDOWN = "markdown";