Verify type
This commit is contained in:
parent
7e2db1aad5
commit
c9307e4273
|
@ -165,7 +165,8 @@ const 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() {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue
Block a user