From d630e498c301268c82608c18e8400f59b3359351 Mon Sep 17 00:00:00 2001 From: David Miller Date: Mon, 18 May 2020 21:12:31 +0100 Subject: [PATCH] eslint tweaks --- .eslintrc.js | 2 +- index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 99f9c94..29cdbab 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -73,7 +73,7 @@ module.exports = { "key-spacing": "error", "keyword-spacing": "off", "line-comment-position": "off", - "lines-around-comment": "error", + "lines-around-comment": "off", "lines-around-directive": "error", "lines-between-class-members": "error", "max-classes-per-file": "error", diff --git a/index.js b/index.js index 1f5ede6..db90494 100644 --- a/index.js +++ b/index.js @@ -2784,7 +2784,7 @@ function makeThing(log, config) { service.setCharacteristic(Characteristic.DisplayOrder, displayOrderTlv); } } else if( config.type == 'irrigationSystem' ) { - let service = new Service.IrrigationSystem( name ); + service = new Service.IrrigationSystem( name ); service.isPrimaryService = true; if ( !config.topics ) { config.topics = {}; @@ -2806,7 +2806,7 @@ function makeThing(log, config) { let zoneId = index + 1; let zoneName = zone.name || ''; // default name doesn't seem to work let valveSvc = new Service.Valve( zoneName, zoneId ); - characteristic_ValveType( valveSvc, Characteristic.ValveType.IRRIGATION) ; + characteristic_ValveType( valveSvc, Characteristic.ValveType.IRRIGATION); characteristic_ServiceLabelIndex( valveSvc, zoneId ); characteristic_Active( valveSvc, zoneId, zone ); characteristic_InUse( valveSvc, zoneId, zone );