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