mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Don't gamma correct the brightness value
This commit is contained in:
parent
3077d3d944
commit
ebb35f4a0e
@ -27,7 +27,7 @@ LightTraits GosundSW2Light::get_traits() {
|
||||
|
||||
void GosundSW2Light::write_state(light::LightState *state) {
|
||||
float brightness;
|
||||
state->current_values_as_brightness(&brightness);
|
||||
state->current_values.as_brightness(&brightness);
|
||||
uint8_t command;
|
||||
|
||||
if (brightness == 0.0f) {
|
||||
|
Loading…
Reference in New Issue
Block a user