From 60d405a99890f195b11d1962bf74e28f5c0b7563 Mon Sep 17 00:00:00 2001 From: Stefan Nienhuis Date: Tue, 8 Feb 2022 18:01:10 +0100 Subject: [PATCH] Fix empty serial number error --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5d2246b..adf4211 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'}`);