MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / get

Function get

src/commands/edge/drivers/devices.ts:77–83  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

75 const list = async (): Promise<DeviceDriverInfo[]> => matchingDevices
76
77 const get = async (id: string): Promise<DeviceDriverInfo> => {
78 const match = matchingDevices.find(device => device.deviceId === id)
79 if (match) {
80 return match
81 }
82 throw Error(`Could not find device with id ${id}`)
83 }
84
85 await outputItemOrList(command, config, argv.idOrIndex, list, get)
86}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected