part of '../main.dart';
class HACard {
List<Entity> entities = [];
Entity linkedEntity;
String name;
String id;
String type;
HACard({
this.name,
this.id,
this.linkedEntity,
@required this.type
});
Widget build(BuildContext context) {
switch (type) {
case "entities": {
return EntitiesCardWidget(
card: this,
);
}
case "weather-forecast":
case "thermostat":
case "sensor":
case "plant-status":
case "picture-entity":
case "picture-elements":
case "picture":
case "map":
case "iframe":
case "gauge":
case "entity-button":
case "conditional":
case "alarm-panel":
case "media-control": {
return UnsupportedCardWidget(
default: {
if ((linkedEntity == null) && (entities.isNotEmpty)) {
} else {