MCPcopy Create free account
hub / github.com/bytespider/Meross / hasAbility

Method hasAbility

packages/lib/src/device.ts:114–119  ·  view source on GitHub ↗
(ability: Namespace)

Source from the content-addressed store, hash-verified

112 }
113
114 hasAbility(ability: Namespace) {
115 deviceLogger.debug(`Checking if device ${this.id} has ability ${ability}`, {
116 ability,
117 });
118 return Object.keys(this.ability).includes(ability);
119 }
120
121 private sendMessage(message: any): Promise<Record<string, any>> {
122 return this.transport.send({

Callers 4

configureWifiMethod · 0.95
shouldEncryptMessageMethod · 0.45
meross-setup.tsFile · 0.45
meross-info.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected