mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Partial fix for default level
This commit is contained in:
parent
fd2093416b
commit
a160abeee4
@ -312,12 +312,12 @@ void TuyaLightPlus::update_current_state(bool state)
|
||||
|
||||
void TuyaLightPlus::update_current_brightness(float brightness)
|
||||
{
|
||||
auto call = state_->make_call();
|
||||
call.set_brightness(brightness);
|
||||
call.perform();
|
||||
|
||||
if (is_on())
|
||||
{
|
||||
auto call = state_->make_call();
|
||||
call.set_brightness(brightness);
|
||||
call.perform();
|
||||
|
||||
update_linked_lights();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user