mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 05:52:20 +00:00
Check for valid Zigbee channel. https://github.com/Koenkk/zigbee2mqtt/issues/1077
This commit is contained in:
1 parent
a62f4289a7
commit
88cec5dfa6
1 file changed
+5
@@ -8,6 +8,11 @@ const Queue = require('queue');
|
||||
const zclId = require('zcl-id');
|
||||
|
||||
const advancedSettings = settings.get().advanced;
|
||||
|
||||
if (advancedSettings.channel < 11 || advancedSettings.channel > 26) {
|
||||
throw new Error(`'${advancedSettings.channel}' is an invalid channel, use a channel between 11 - 26.`);
|
||||
}
|
||||
|
||||
const shepherdSettings = {
|
||||
net: {
|
||||
panId: advancedSettings.pan_id,
|
||||
|
||||
Reference in new issue
Block a user