You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Heatstrip convector heater uses ‘level_1’ and ‘level_2’ for the Low and High setting on dpRotationSpeed. ConvectorAccessory.js has an Alphanumeric test on line 32 that doesn’t include _ - so the accessory doesn’t get added.
Expected behavior
Changing the test for CmdLow (and similarly for CmdHigh) to the following allows the ‘level_1’ and ‘level_2’ string to work, and ensures the heater gets added when the plugin initialises.
if (/^[a-z0-9_]+$/i.test(this.device.context.cmdLow)) this.cmdLow = ('' + this.device.context.cmdLow).trim();
The text was updated successfully, but these errors were encountered:
Describe the bug
The Heatstrip convector heater uses ‘level_1’ and ‘level_2’ for the Low and High setting on dpRotationSpeed. ConvectorAccessory.js has an Alphanumeric test on line 32 that doesn’t include _ - so the accessory doesn’t get added.
Expected behavior
Changing the test for CmdLow (and similarly for CmdHigh) to the following allows the ‘level_1’ and ‘level_2’ string to work, and ensures the heater gets added when the plugin initialises.
if (/^[a-z0-9_]+$/i.test(this.device.context.cmdLow)) this.cmdLow = ('' + this.device.context.cmdLow).trim();
The text was updated successfully, but these errors were encountered: