mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Fix lint
This commit is contained in:
parent
94cde37aaa
commit
0a45e0e95b
@ -149,7 +149,7 @@ Polymer({
|
||||
|
||||
handleSetState: function () {
|
||||
var attr;
|
||||
var attrRaw = this._stateAttributes.replace(/^\s+|\s+$/g, '')
|
||||
var attrRaw = this._stateAttributes.replace(/^\s+|\s+$/g, '');
|
||||
try {
|
||||
attr = attrRaw ?
|
||||
JSON.parse(attrRaw) : {};
|
||||
|
@ -110,7 +110,7 @@ Polymer({
|
||||
this.armHomeButtonVisible = newVal.state === 'disarmed';
|
||||
this.armAwayButtonVisible = newVal.state === 'disarmed';
|
||||
}
|
||||
if (oldval) {
|
||||
if (oldVal) {
|
||||
this.async(function () {
|
||||
this.fire('iron-resize');
|
||||
}.bind(this), 500);
|
||||
|
@ -47,7 +47,7 @@ Polymer({
|
||||
this.callService('lock', { code: this.enteredCode });
|
||||
},
|
||||
|
||||
stateObjChanged: function (newVal, oldVal) {
|
||||
stateObjChanged: function (newVal) {
|
||||
if (newVal) {
|
||||
this.isLocked = newVal.state === 'locked';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user