Verify type

This commit is contained in:
Douglas Barone 2022-08-30 07:33:02 -04:00
parent 7e2db1aad5
commit c9307e4273

View File

@ -165,7 +165,8 @@ const usedControllerMethods = [
] ]
for (let key of usedControllerMethods) for (let key of usedControllerMethods)
unifiController[key] = promisify(unifiController[key]) if (typeof unifiController[key] === 'function')
unifiController[key] = promisify(unifiController[key])
export async function getOnlineWifiDevices() { export async function getOnlineWifiDevices() {
try { try {