Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix theme being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Greco committed Jan 29, 2021
1 parent a70dfba commit 1e1479a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e1479a

Please sign in to comment.