From 3c53b21fbe0daf154442b18ee69ca2f39a652487 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:34:52 +0200 Subject: [PATCH] Lint --- ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml index 1bbee37..3bf536c 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml @@ -570,7 +570,7 @@ script: - lambda: |- auto attrs_pair = tx_ultimate_easy::unpack_dual_light_attributes(*attr_global_ptr); tx_ultimate_easy::LightAttributes attrs = (group_index == 1) ? attrs_pair.first : attrs_pair.second; - + auto call = light_ptr->make_call(); call.set_brightness(attrs.brightness / 100.0f); call.set_rgb(attrs.red / 255.0f, attrs.green / 255.0f, attrs.blue / 255.0f); @@ -610,10 +610,10 @@ script: .green = uint8_t(current.get_green() * 255.0f), .blue = uint8_t(current.get_blue() * 255.0f) }; - + // Unpack existing dual attributes auto existing = tx_ultimate_easy::unpack_dual_light_attributes(*attr_global_ptr); - + // Update the appropriate group if (group_index == 1) { *attr_global_ptr = tx_ultimate_easy::pack_dual_light_attributes(new_attrs, existing.second);