Skip to content

Commit b70e8c4

Browse files
committed
fix: Missed using the security information
Fixed #197
1 parent 4a91208 commit b70e8c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/smarthome-mqtt.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export class SmarthomeMqtt{
2020
private readonly security?: SecureConfig;
2121
public readonly Events: TypedEmitter<MqttEvents> = new EventEmitter() as TypedEmitter<MqttEvents>;
2222
constructor(mqttUrl: string, private readonly prefix: string = 'sonos', private readonly clientId?: string, security?: SecureConfig) {
23-
this.uri = new URL(mqttUrl)
23+
this.uri = new URL(mqttUrl);
24+
this.security = security;
2425
}
2526

2627
connect(): void {

0 commit comments

Comments
 (0)