Send the transition with the WLED segment change (#180471)

This commit is contained in:
Franck Nijhof
2026-08-28 16:55:20 +02:00
committed by GitHub
parent 70625db31b
commit e4d7d723c7
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -299,7 +299,6 @@ class WLEDSegmentLight(WLEDEntity, LightEntity):
if ATTR_TRANSITION in data:
main_data[ATTR_TRANSITION] = data[ATTR_TRANSITION]
del data[ATTR_TRANSITION]
await self.coordinator.wled.segment(**data)
await self.coordinator.wled.master(**main_data)
+3 -1
View File
@@ -277,7 +277,9 @@ async def test_single_segment_behavior(
)
assert mock_wled.segment.call_count == 1
assert mock_wled.master.call_count == 2
mock_wled.segment.assert_called_with(on=True, segment_id=0, brightness=255)
mock_wled.segment.assert_called_with(
on=True, segment_id=0, brightness=255, transition=50
)
mock_wled.master.assert_called_with(on=True, transition=50, brightness=42)