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)) + } }