Use default port 443 in case none is defined

This commit is contained in:
tickez 2020-12-31 14:42:08 +01:00
parent d08fd1b2c2
commit 9bf041a43d

View File

@ -38,7 +38,7 @@ class OccupancySensor {
this.unifi = new UnifiEvents({
host: this.controller.hostname,
port: this.controller.port,
port: this.controller.port || 443,
username: config.unifi.username,
password: config.unifi.password,
site: config.unifi.site || 'default',