Skip to content

Commit

Permalink
Fix empty serial number error
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanNienhuis committed Feb 8, 2022
1 parent 6eb1371 commit 60d405a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class BoldPlatform implements DynamicPlatformPlugin {
.onGet(() => device.model.model || 'Lock');

informationService.getCharacteristic(this.hap.Characteristic.SerialNumber)
.onGet(() => device.serial || '');
.onGet(() => device.serial || 'Unknown');

informationService.getCharacteristic(this.hap.Characteristic.FirmwareRevision)
.onGet(() => `${device.actualFirmwareVersion || 'Unknown'}`);
Expand Down

0 comments on commit 60d405a

Please sign in to comment.