MCPcopy
hub / github.com/Koenkk/zigbee2mqtt / get

Method get

lib/state.ts:113–115  ·  view source on GitHub ↗
(entity: Group | Device)

Source from the content-addressed store, hash-verified

111 }
112
113 get(entity: Group | Device): KeyValue {
114 return this.state.get(entity.ID) || {};
115 }
116
117 set(entity: Group | Device, update: KeyValue, reason?: string): KeyValue {
118 const fromState = this.state.get(entity.ID) || {};

Callers 15

emitLastSeenChangedMethod · 0.80
emitDeviceLeaveMethod · 0.80
onMethod · 0.80
removeListenersMethod · 0.80
constructorMethod · 0.80
connectMethod · 0.80
onConnectMethod · 0.80
onMessageMethod · 0.80
publishMethod · 0.80
startMethod · 0.80
resolveDeviceMethod · 0.80

Calls

no outgoing calls

Tested by 1

writeAndCheckFunction · 0.64