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