Skip to content

Commit

Permalink
Merge pull request #13 from LEJOUI/patch-1
Browse files Browse the repository at this point in the history
Update setConfig
  • Loading branch information
iantrich authored Jun 5, 2021
2 parents 513e7ef + 334c89c commit 5b3c904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion light-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class AdjustableLightEntityRow extends Polymer.Element {
throw new Error(`invalid entity ${config.entity}`)
}

this._config = config;
this._config = JSON.parse(JSON.stringify(config));
this._config.buttons = config.buttons || []


Expand Down

0 comments on commit 5b3c904

Please sign in to comment.