diff --git a/src/homebridge-ui/server.ts b/src/homebridge-ui/server.ts index f6e46a57..414d96e3 100644 --- a/src/homebridge-ui/server.ts +++ b/src/homebridge-ui/server.ts @@ -6,7 +6,9 @@ import { AuthorizeURL } from '../settings.js'; import { createServer } from 'http'; import fs from 'fs'; import url from 'url'; -import { exec } from 'child_process'; +import { exec as execCb } from 'child_process'; +import util from 'util'; +const exec = util.promisify(execCb); class PluginUiServer extends HomebridgePluginUiServer { public key!: string;