mirror of
https://github.com/parnic/MMM-IntelliCenter.git
synced 2025-06-16 13:20:12 -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 on = false;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user