Change brightness to be real-time rather than max value (#1029)

This commit is contained in:
PeteBa 2018-03-26 20:44:09 +01:00 committed by NovapaX
parent 981e94e84d
commit 7be6d17b37

View File

@ -102,9 +102,6 @@
} }
computeValue(stateObj, sensor) { computeValue(stateObj, sensor) {
if ((sensor === 'brightness') && ('max_brightness' in stateObj.attributes)) {
return stateObj.attributes.max_brightness;
}
if (sensor in stateObj.attributes) { if (sensor in stateObj.attributes) {
return stateObj.attributes[sensor]; return stateObj.attributes[sensor];
} }