Skip to content

CLI for SidePulse

Python

Align idle patterns across animation profiles (#40)

unrelatedlabscd01d69d1a96
diff --git a/src/sidepulse/resources/animations/ember-idle-8.LED b/src/sidepulse/resources/animations/ember-idle-8.LED
index 54aa5dc..9ba9f48 100644
--- a/src/sidepulse/resources/animations/ember-idle-8.LED
+++ b/src/sidepulse/resources/animations/ember-idle-8.LED
@@ -1,3 +1,3 @@
off 2s
-3:#F23819 4:#F23819 2s ease
+2:#F23819 3:#F23819 4:#F23819 5:#F23819 2s ease
repeat
diff --git a/src/sidepulse/resources/animations/idle-pulse-8.LED b/src/sidepulse/resources/animations/idle-pulse-8.LED
index 2c439fc..7f61822 100644
--- a/src/sidepulse/resources/animations/idle-pulse-8.LED
+++ b/src/sidepulse/resources/animations/idle-pulse-8.LED
@@ -1,3 +1,3 @@
off 2s
-3:#006060 4:#006060 2s ease
+2:#006060 3:#006060 4:#006060 5:#006060 2s ease
repeat
diff --git a/tests/test_sidepulse.py b/tests/test_sidepulse.py
index b555a97..c340dc7 100644
--- a/tests/test_sidepulse.py
+++ b/tests/test_sidepulse.py
@@ -3830,7 +3830,9 @@ class AgentMonitorTests(unittest.TestCase):
self.assertEqual(
program_for_display_state(LedDisplayState.IDLE),
- "off 2s\n3:#006060 4:#006060 2s ease\nrepeat",
+ "off 2s\n"
+ "2:#006060 3:#006060 4:#006060 5:#006060 2s ease\n"
+ "repeat",
)
self.assertEqual(
program_for_display_state(LedDisplayState.DONE),
@@ -3910,7 +3912,9 @@ class AgentMonitorTests(unittest.TestCase):
self.assertEqual(builtin_animation_file_name("idle-pulse", 8), "idle-pulse-8.LED")
self.assertEqual(
builtin_animation_program("idle-pulse", 8),
- "off 2s\n3:#006060 4:#006060 2s ease\nrepeat",
+ "off 2s\n"
+ "2:#006060 3:#006060 4:#006060 5:#006060 2s ease\n"
+ "repeat",
)
self.assertEqual(
builtin_animation_program("idle-pulse", 2),
@@ -3977,16 +3981,15 @@ class AgentMonitorTests(unittest.TestCase):
),
cyan_idle_shape,
)
- if led_count == 2:
- self.assertEqual(
- without_colors(
- builtin_animation_program(
- AGENT_ANIMATION_PURPLE_IDLE,
- led_count,
- )
- ),
- cyan_idle_shape,
- )
+ self.assertEqual(
+ without_colors(
+ builtin_animation_program(
+ AGENT_ANIMATION_PURPLE_IDLE,
+ led_count,
+ )
+ ),
+ cyan_idle_shape,
+ )
corresponding_animations = (
(