Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Aug 30, 2024
1 parent b147118 commit fc00436
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions homebridge-ui/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class PluginUiServer extends HomebridgePluginUiServer {
} catch (error) {
return data = {
info: error,
status: 1,
data: data
status: 1
};
};
};
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class MelCloudPlatform {
};

const deviceId = device.id.toString();
const deviceType = device.type ?? 0;
const deviceName = device.name;
const deviceTypeText = device.typeString;
const deviceInfoFile = `${prefDir}/${accountName}_Device_${deviceId}`;
Expand Down
2 changes: 1 addition & 1 deletion src/melcloudata.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class MelCloudAta extends EventEmitter {
const debug1 = debugLog ? this.emit('debug', `Device Info: ${JSON.stringify(deviceData, null, 2)}`) : false;

if (!deviceData) {
this.emit('warn', `Device not data found.`);
this.emit('warn', `Device data not found.`);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/melcloudatw.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class MelCloudAtw extends EventEmitter {
const debug1 = debugLog ? this.emit('debug', `Device Info: ${JSON.stringify(deviceData, null, 2)}`) : false;

if (!deviceData) {
this.emit('warn', `Device not data found.`);
this.emit('warn', `Device data not found.`);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/melclouderv.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class MelCloudErv extends EventEmitter {
const debug1 = debugLog ? this.emit('debug', `Device Info: ${JSON.stringify(deviceData, null, 2)}`) : false;

if (!deviceData) {
this.emit('warn', `Device not data found.`);
this.emit('warn', `Device data not found.`);
return;
}

Expand Down

0 comments on commit fc00436

Please sign in to comment.