Skip to content

Commit

Permalink
fix: linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-smirnov committed Apr 28, 2022
1 parent a9c45d2 commit 4acc79c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/neptunSmart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ export class NeptunSmart {
this.valvesServices.push(this.accessory.getService('Valves group 1') ||
this.accessory.addService(this.platform.Service.Valve, 'Valves group 1', 'neptun-valves-group-1'));
this.valvesServices[0].setCharacteristic(this.platform.Characteristic.Name, 'Valves group 1');
this.valvesServices[0].setCharacteristic(this.platform.Characteristic.ValveType, this.platform.Characteristic.ValveType.GENERIC_VALVE);
this.valvesServices[0].setCharacteristic(
this.platform.Characteristic.ValveType, this.platform.Characteristic.ValveType.GENERIC_VALVE);
this.valvesServices[0].setCharacteristic(this.platform.Characteristic.InUse, this.platform.Characteristic.InUse.IN_USE);
this.valvesServices[0].getCharacteristic(this.platform.Characteristic.Active)
.onSet(this.handleFaucetFirstGroupActiveSet.bind(this));
if (this.isGroupsEnabled) {
this.valvesServices.push(this.accessory.getService('Valves group 2') ||
this.accessory.addService(this.platform.Service.Valve, 'Valves group 2', 'neptun-valves-group-1'));
this.valvesServices[1].setCharacteristic(this.platform.Characteristic.Name, 'Valves group 2');
this.valvesServices[1].setCharacteristic(this.platform.Characteristic.ValveType, this.platform.Characteristic.ValveType.GENERIC_VALVE);
this.valvesServices[1].setCharacteristic(
this.platform.Characteristic.ValveType, this.platform.Characteristic.ValveType.GENERIC_VALVE);
this.valvesServices[1].setCharacteristic(this.platform.Characteristic.InUse, this.platform.Characteristic.InUse.IN_USE);
this.valvesServices[1].getCharacteristic(this.platform.Characteristic.Active)
.onSet(this.handleFaucetSecondGroupActiveSet.bind(this));
Expand Down

0 comments on commit 4acc79c

Please sign in to comment.