mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Change brightness to be real-time rather than max value (#1029)
This commit is contained in:
parent
981e94e84d
commit
7be6d17b37
@ -102,9 +102,6 @@
|
||||
}
|
||||
|
||||
computeValue(stateObj, sensor) {
|
||||
if ((sensor === 'brightness') && ('max_brightness' in stateObj.attributes)) {
|
||||
return stateObj.attributes.max_brightness;
|
||||
}
|
||||
if (sensor in stateObj.attributes) {
|
||||
return stateObj.attributes[sensor];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user