Skip to content

Commit

Permalink
Increase connect timeout. Disable logging errors from Sentry due to a…
Browse files Browse the repository at this point in the history
…mount of messages
  • Loading branch information
aivus committed Sep 26, 2024
1 parent 7d477f3 commit 605b955
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/gree_cooper_hunter_hvac/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const POLLING_INTERVAL = 3500;
// Timeout for response from the HVAC during polling process (ms)
const POLLING_TIMEOUT = 3000;

// Timeout of the connection to the HVAC (ms)
const CONNECT_TIMEOUT = 5000;

class GreeHVACDevice extends Homey.Device {

/**
Expand Down Expand Up @@ -99,6 +102,7 @@ class GreeHVACDevice extends Homey.Device {
host: hvac.remoteInfo.address,
pollingInterval: POLLING_INTERVAL,
pollingTimeout: POLLING_TIMEOUT,
connectTimeout: CONNECT_TIMEOUT,
encryptionVersion,
});

Expand Down Expand Up @@ -407,9 +411,6 @@ class GreeHVACDevice extends Homey.Device {
_onError(message) {
this.log('[ERROR]', 'Message:', message);

const { homeyLog } = this.homey.app;
homeyLog.captureMessage(message);

this._markOffline();
}

Expand Down

0 comments on commit 605b955

Please sign in to comment.