Skip to content

Commit

Permalink
chore: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed May 13, 2024
1 parent e5d7531 commit ec75fbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/input-manager/src/integrations/streamdeck/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class StreamDeckDevice extends Device {
}

init = async (): Promise<void> => {
const allDevices = listStreamDecks()
const allDevices = await listStreamDecks()
const deviceInfo = allDevices.find((thisDevice, index) => {
let match = true
if (this.config.path && thisDevice.path !== this.config.path) match = false
Expand All @@ -41,7 +41,7 @@ export class StreamDeckDevice extends Device {
)}`
)

const device = openStreamDeck(deviceInfo.path, {
const device = await openStreamDeck(deviceInfo.path, {
resetToLogoOnClose: true,
})
if (!device) throw new Error(`Could not open device: "${deviceInfo.path}"`)
Expand Down

0 comments on commit ec75fbb

Please sign in to comment.