diff --git a/HCMagicHome.js b/HCMagicHome.js index 819e4d6..955a0c4 100644 --- a/HCMagicHome.js +++ b/HCMagicHome.js @@ -25,6 +25,10 @@ class HCMagicHome extends HCColorLamp { constructor(config) { super(config); + if (!("address" in this._configuration)) { + throw new Error(`Required configuration field "address" is missing"`); + } + let type = "type1"; if (this._configuration.type != undefined) { type = this._configuration.type;