Skip to content

Commit

Permalink
fix(home-assistant): fix MQTT options
Browse files Browse the repository at this point in the history
A recent change in the library started modifying the options object
directly, which doesn't play well with the immutable config options we
passed in until now.

Closes #321
  • Loading branch information
mKeRix committed Oct 27, 2020
1 parent c09bccc commit 931b223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/home-assistant/home-assistant.service.ts
Expand Up @@ -65,7 +65,7 @@ export class HomeAssistantService
try {
this.mqttClient = await mqtt.connectAsync(
this.config.mqttUrl,
this.config.mqttOptions,
{ ...this.config.mqttOptions },
false
);
this.mqttClient.on('message', this.handleIncomingMessage.bind(this));
Expand Down

0 comments on commit 931b223

Please sign in to comment.