mirror of
https://github.com/parnic/MMM-IntelliCenter.git
synced 2025-06-16 21:21:53 -05:00
Have user-configured circuit name take precedence
This commit is contained in:
@ -160,7 +160,7 @@ Module.register("MMM-IntelliCenter", {
|
|||||||
let { name } = controlObj;
|
let { name } = controlObj;
|
||||||
let on = false;
|
let on = false;
|
||||||
if (poolData.circuits[controlObj.id]) {
|
if (poolData.circuits[controlObj.id]) {
|
||||||
name = poolData.circuits[controlObj.id].name ?? controlObj.name;
|
name ??= poolData.circuits[controlObj.id].name;
|
||||||
on = poolData.circuits[controlObj.id].status;
|
on = poolData.circuits[controlObj.id].status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user