diff --git a/src/shellies.ts b/src/shellies.ts index 8fe2b4a4..c51d703d 100644 --- a/src/shellies.ts +++ b/src/shellies.ts @@ -377,7 +377,7 @@ export class Shellies extends EventEmitter { const info = await rpcHandler.request('Shelly.GetDeviceInfo'); // make sure the returned device ID matches - if (info.id !== deviceId) { + if (info.id.toLowerCase() !== deviceId.toLowerCase()) { throw new Error(`Unexpected device ID (returned: ${info.id}, expected: ${deviceId})`); }