Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/fjs21/homebridge-kumo
Browse files Browse the repository at this point in the history
  • Loading branch information
fjs21 committed Oct 7, 2022
2 parents 93da9fc + 3282d17 commit 18fd4e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ export class KumoHomebridgePlatform implements DynamicPlatformPlugin {

// if you need to update the accessory.context then you should run `api.updatePlatformAccessories`. eg.:
existingAccessory.context.zoneTable = device.zoneTable;
const overrideAddress = this.optionGetOverrideAddress(device, existingAccessory.context.zoneTable.address);
if (overrideAddress != null) {
const overrideAddress = this.optionGetOverrideAddress(device);
if (overrideAddress !== null) {
this.log.info('Override address found for device - using IP %s instead of %s for direct access', overrideAddress, existingAccessory.context.zoneTable.address);
existingAccessory.context.zoneTable.address = overrideAddress;
}
Expand Down Expand Up @@ -183,7 +183,7 @@ export class KumoHomebridgePlatform implements DynamicPlatformPlugin {
accessory.context.serial = device.serial;
accessory.context.zoneTable = device.zoneTable;
const overrideAddress = this.optionGetOverrideAddress(device);
if (overrideAddress != null) {
if (overrideAddress !== null) {
this.log.info('Override address found for device - using IP %s instead of %s for direct access', overrideAddress, accessory.context.zoneTable.address);
accessory.context.zoneTable.address = overrideAddress;
}
Expand Down

0 comments on commit 18fd4e9

Please sign in to comment.