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

Function customPreferences

src/commands/devicepreferences.ts:29–32  ·  view source on GitHub ↗
(command: APICommand<APICommandFlags>)

Source from the content-addressed store, hash-verified

27}
28
29export const customPreferences = async (command: APICommand<APICommandFlags>): Promise<DevicePreference[]> => {
30 return (await command.client.devicePreferences.list())
31 .filter(preference => preference.preferenceId.split('.').length > 1)
32}
33
34export async function preferencesForAllOrganizations(command: APICommand<APICommandFlags>): Promise<DevicePreference[]> {
35 return forAllOrganizations(command.client, (orgClient, org) => {

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected