Fix ESLint errors

This commit is contained in:
Paulus Schoutsen 2015-09-16 09:03:50 -07:00
parent 63e039a221
commit 743a519a3e
3 changed files with 6 additions and 13 deletions

View File

@ -1,19 +1,16 @@
import { serviceActions } from '../util/home-assistant-js-instance';
import Polymer from '../polymer';
import attributeClassNames from '../util/attribute-class-names';
const ATTRIBUTE_CLASSES = [];
export default new Polymer({
is: 'more-info-alarm_control_panel',
handleDisarmTap(number) {
handleDisarmTap() {
this.callService('alarm_disarm', {code: this.entered_code});
},
handleHomeTap(number) {
handleHomeTap() {
this.callService('alarm_arm_home', {code: this.entered_code});
},
handleAwayTap(number) {
handleAwayTap() {
this.callService('alarm_arm_away', {code: this.entered_code});
},
properties: {

View File

@ -11,13 +11,9 @@ export default function domainIcon(domain, state) {
case 'switch':
return 'image:flash-on';
case 'alarm_control_panel':
if (state && state === 'disarmed'){
return 'icons:lock-open';
}else{
return 'icons:lock';
}
return state && state === 'disarmed' ? 'icons:lock-open' : 'icons:lock';
case 'media_player':
let icon = 'hardware:cast';

View File

@ -1,6 +1,6 @@
const DOMAINS_WITH_MORE_INFO = [
'light', 'group', 'sun', 'configurator', 'thermostat', 'script',
'media_player', 'camera', 'updater', 'alarm_control_panel'
'media_player', 'camera', 'updater', 'alarm_control_panel',
];
export default function stateMoreInfoType(state) {