From 450b5de00b3f18886d92aefa1281f472e4501dc5 Mon Sep 17 00:00:00 2001 From: Ilya Strukov Date: Fri, 4 Feb 2022 01:57:01 +0800 Subject: [PATCH] TV devices config path fixed --- src/homebridge/DeviceManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/homebridge/DeviceManager.js b/src/homebridge/DeviceManager.js index 3e91141..6b1150f 100644 --- a/src/homebridge/DeviceManager.js +++ b/src/homebridge/DeviceManager.js @@ -1,5 +1,6 @@ import bonjour from "bonjour"; import fs from "fs"; +import path from "path"; import {Device} from "./Device.js"; import EventEmitter from "events"; @@ -12,7 +13,7 @@ class DeviceManager extends EventEmitter { this.api = api; this.devices = {}; - this.config_path = 'androidtv-config.json' + this.config_path = path.join(api.user.storagePath(), 'androidtv-config.json'); } load() {