From 532acafc06bcd2e9d2839e35723c87c3ba121b54 Mon Sep 17 00:00:00 2001 From: LJU Date: Wed, 20 Oct 2021 11:13:20 +0200 Subject: [PATCH] Test change --- light-entity-row.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/light-entity-row.js b/light-entity-row.js index 1111d98..4b79160 100644 --- a/light-entity-row.js +++ b/light-entity-row.js @@ -181,7 +181,9 @@ class AdjustableLightEntityRow extends Polymer.Element { } this._config = JSON.parse(JSON.stringify(config)); - this._buttons = JSON.parse(JSON.stringify(config.buttons)) + if (config.buttons) { + this._buttons = JSON.parse(JSON.stringify(config.buttons)) + } }