From 1e1479a263f16694b8421339e2cfff0af7c5e3d6 Mon Sep 17 00:00:00 2001 From: Dan Greco Date: Fri, 29 Jan 2021 09:08:07 -0500 Subject: [PATCH] Fix theme being undefined --- src/Components/Card/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Card/index.js b/src/Components/Card/index.js index cd28032..ed220d0 100644 --- a/src/Components/Card/index.js +++ b/src/Components/Card/index.js @@ -21,7 +21,7 @@ const Card = ({ }) => { const [hiddenOverride, setHiddenOveride] = useState(false); - const theme = config.theme; + const theme = config.theme || 'Default'; const state = hass.states[`${config.base_entity}_current_state`].state const hidden = state !== 'Printing' && !hiddenOverride;