mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-08 01:00:31 +03:00
Clean code from commented code
This commit is contained in:
14
device.js
14
device.js
@@ -63,20 +63,6 @@ class Device {
|
||||
value: false
|
||||
}
|
||||
}
|
||||
// case 'color_setting': {
|
||||
// return {
|
||||
// instance: (p => {
|
||||
// if (p.temperature_k != undefined) return 'temperature_k';
|
||||
// if (p.color_model != undefined) return p.color_model;
|
||||
// else return undefined;
|
||||
// })(parameters),
|
||||
// value: (p => {
|
||||
// if (p.temperature_k != undefined) return p.temperature_k.min || 4500;
|
||||
// if (p.color_model == 'rgb') return 16777215;
|
||||
// if (p.color_model == 'hsv') return {h: 0, s: 0, v: 100};
|
||||
// })(parameters)
|
||||
// }
|
||||
// }
|
||||
case 'mode': {
|
||||
return {
|
||||
instance: parameters.instance,
|
||||
|
Reference in New Issue
Block a user