diff --git a/src/integrations/home-assistant/home-assistant.service.ts b/src/integrations/home-assistant/home-assistant.service.ts index e8f0c0e..e0ea130 100644 --- a/src/integrations/home-assistant/home-assistant.service.ts +++ b/src/integrations/home-assistant/home-assistant.service.ts @@ -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));