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

Function withLocationAndRoom

src/lib/api-helpers.ts:74–75  ·  view source on GitHub ↗
(client: SmartThingsClient, item: T)

Source from the content-addressed store, hash-verified

72}
73
74export const withLocationAndRoom = async <T extends WithRoom>(client: SmartThingsClient, item: T): Promise<T & WithNamedRoom> =>
75 (await withLocationsAndRooms(client, [item]))[0]
76
77export async function forAllOrganizations<T>(
78 client: SmartThingsClient,

Callers 2

handlerFunction · 0.85

Calls 1

withLocationsAndRoomsFunction · 0.85

Tested by

no test coverage detected