home-assistant-js-websocket
Advanced tools
Comparing version 5.4.0 to 5.4.1
@@ -173,6 +173,5 @@ /** | ||
// No need to unsubscribe if we're disconnected | ||
if (!this.connected) { | ||
return; | ||
if (this.connected) { | ||
await this.sendMessagePromise(messages.unsubscribeEvents(commandId)); | ||
} | ||
await this.sendMessagePromise(messages.unsubscribeEvents(commandId)); | ||
this.commands.delete(commandId); | ||
@@ -179,0 +178,0 @@ }, |
@@ -329,6 +329,5 @@ (function (global, factory) { | ||
// No need to unsubscribe if we're disconnected | ||
if (!this.connected) { | ||
return; | ||
if (this.connected) { | ||
await this.sendMessagePromise(unsubscribeEvents(commandId)); | ||
} | ||
await this.sendMessagePromise(unsubscribeEvents(commandId)); | ||
this.commands.delete(commandId); | ||
@@ -335,0 +334,0 @@ }, |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "5.4.0", | ||
"version": "5.4.1", | ||
"description": "Home Assistant websocket client", | ||
@@ -8,0 +8,0 @@ "source": "lib/index.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112476
2104