This commit is contained in:
Jonathan Redpath 2018-04-06 15:45:09 +01:00
parent 6eddbde4c5
commit 859fb8cbba

View file

@ -758,7 +758,7 @@ var ELEC = {
foreach(var lighta; lights) {
power_consumption = lighta.power_consumption();
if (getprop(screena.elec_prop) != 0 and getprop(lighta.control_prop) != 0) {
if (getprop(lighta.elec_prop) != 0 and getprop(lighta.control_prop) != 0) {
setprop("/systems/electrical/light/" ~ lighta.name ~ "/watts", power_consumption);
} else {
setprop("/systems/electrical/light/" ~ lighta.name ~ "/watts", 0);