diff --git a/lib/home_assistant.class.dart b/lib/home_assistant.class.dart index a76eada..930c4f9 100644 --- a/lib/home_assistant.class.dart +++ b/lib/home_assistant.class.dart @@ -191,7 +191,7 @@ class HomeAssistant { HACard card = HACard( id: "card", name: rawCardInfo["title"] ?? rawCardInfo["name"], - type: rawCardInfo['type'], + type: rawCardInfo['type'] ?? CardType.entities, columnsCount: rawCardInfo['columns'] ?? 4, showName: rawCardInfo['show_name'] ?? true, showState: rawCardInfo['show_state'] ?? true,