fix(vendor.midea): Add missing return statement

This commit is contained in:
Sören Beye 2025-09-06 14:22:06 +02:00
parent 15c1f801ad
commit 52b462517b

View File

@ -596,7 +596,7 @@ class MSmartDummycloud {
const target = options?.target ?? "device";
const targetTopic = target === "ai" ? this.aiCommandTopic : this.commandTopic;
if (targetTopic.includes("<unknown>")) {
reject(new Error("No robot connected"));
return reject(new Error("No robot connected"));
}
this.pendingRequests[nonce] = {