mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 19:06:36 +00:00
Fix dev state attributes
This commit is contained in:
parent
792de4c6ac
commit
bd6725d58d
@ -150,7 +150,7 @@ Polymer({
|
|||||||
handleSetState: function () {
|
handleSetState: function () {
|
||||||
var attr;
|
var attr;
|
||||||
try {
|
try {
|
||||||
attr = this.stateAttributes ? JSON.parse(this._stateAttributes) : {};
|
attr = this._stateAttributes ? JSON.parse(this._stateAttributes) : {};
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
/* eslint-disable no-alert */
|
/* eslint-disable no-alert */
|
||||||
alert('Error parsing JSON: ' + err);
|
alert('Error parsing JSON: ' + err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user