Skip to content

Commit 84ca6dd

Browse files
committed
Fix timestamp format array usage (benct#219)
1 parent 080840b commit 84ca6dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class MultipleEntityRow extends LitElement {
127127
capitalize
128128
></ha-relative-time>`;
129129
}
130-
if (config.format && [TIMESTAMP_FORMATS].includes(config.format)) {
130+
if (config.format && TIMESTAMP_FORMATS.includes(config.format)) {
131131
const value = config.attribute ? stateObj.attributes[config.attribute] : stateObj.state;
132132
const timestamp = new Date(value);
133133
if (!(timestamp instanceof Date) || isNaN(timestamp.getTime())) {

0 commit comments

Comments
 (0)