diff --git a/plugins/homekit/src/hap-utils.ts b/plugins/homekit/src/hap-utils.ts index e982dcec8..0020d32db 100644 --- a/plugins/homekit/src/hap-utils.ts +++ b/plugins/homekit/src/hap-utils.ts @@ -26,8 +26,7 @@ class HAPLocalStorage { // HAP storage seems to be global? export function initializeHapStorage() { - HAPStorage.storage(); - (HAPStorage as any).INSTANCE.localStore = new HAPLocalStorage(); + HAPStorage.setStorage(new HAPLocalStorage()); }