Skip to content

Commit

Permalink
eslint tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
arachnetech committed May 18, 2020
1 parent 0dc6733 commit d630e49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand All @@ -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 );
Expand Down

0 comments on commit d630e49

Please sign in to comment.