Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chasenicholl committed Dec 4, 2024
1 parent 9798e8c commit 5a4ba0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class WeatherFlowTempestPlatform implements DynamicPlatformPlugin {
wind_chill: 0,
dew_point: 0,
lightning_strike_last_epoch: 0,
lightning_strike_last_distance: 0
lightning_strike_last_distance: 0,
};
this.tempest_battery_level = 0;

Expand Down
6 changes: 3 additions & 3 deletions src/platformAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,9 @@ class ContactSensor {
const current_epoch_now = Math.floor(Date.now() / 1000);
if (lightning_strike_last_epoch > 0
&& lightning_strike_last_distance > 0
&& lightning_strike_last_distance <= trigger_distance
&& lightning_strike_last_distance <= trigger_distance
&& (current_epoch_now - lightning_strike_last_epoch) <= trigger_time) {
return 1; // trigger CONTACT_NOT_DETECTED.
return 1; // trigger CONTACT_NOT_DETECTED.
}
return 0;
} catch(exception) {
Expand All @@ -652,7 +652,7 @@ class ContactSensor {
}

/**
*
*
*/
private handleCurrentStateGet(): number {

Expand Down
2 changes: 1 addition & 1 deletion src/tempest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class TempestSocket {
uv: 0,
brightness: 0,
lightning_strike_last_epoch: 0,
lightning_strike_last_distance: 0
lightning_strike_last_distance: 0,
};
this.tempest_battery_level = 0;
this.s = dgram.createSocket({ type: 'udp4', reuseAddr: reuse_address });
Expand Down

0 comments on commit 5a4ba0b

Please sign in to comment.