homekit: init hap properly

This commit is contained in:
Koushik Dutta
2022-02-12 19:12:08 -08:00
parent ef98bdcda3
commit cb44bc5d04

View File

@@ -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());
}