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

Method remove

lib/zigbee.ts:145–151  ·  view source on GitHub ↗
(device: Device)

Source from the content-addressed store, hash-verified

143 }
144
145 const remove = async (device: Device): Promise<void> => {
146 try {
147 await device.zh.removeFromNetwork();
148 } catch (error) {
149 logger.error(`Failed to remove '${device.ieeeAddr}' (${(error as Error).message})`);
150 }
151 };
152 // If a passlist is used, all other device will be removed from the network.
153 const passlist = settings.get().passlist;
154

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected