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

Function executeUpdate

src/commands/deviceprofiles/update.ts:56–62  ·  view source on GitHub ↗
(_, data)

Source from the content-addressed store, hash-verified

54
55 const id = await chooseDeviceProfile(command, argv.idOrIndex)
56 const executeUpdate: ActionFunction<void, DeviceDefinitionRequest, DeviceProfile> = async (_, data) => {
57 if (data.view) {
58 return fatalError('Input contains "view" property. Use deviceprofiles:view:update instead.')
59 }
60
61 return command.client.deviceProfiles.update(id, cleanupForUpdate(data))
62 }
63 await inputAndOutputItem(
64 command,
65 { buildTableOutput: data => buildTableOutput(command.tableGenerator, data, { includePreferences: true }) },

Callers

nothing calls this directly

Calls 2

fatalErrorFunction · 0.85
cleanupForUpdateFunction · 0.85

Tested by

no test coverage detected