feat(ui): pattern modes, bundles, and zone content kind
Add profile/preset/sequence JSON import and export; map preset mode to wire n6 with a mode dropdown for multi-mode patterns; zone edit shows presets or sequences only with content_kind on save; update catalogue and tests for merged pattern names. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -25,18 +25,20 @@ def test_preset():
|
||||
print("\nTesting update preset")
|
||||
update_data = {
|
||||
"name": "test_preset",
|
||||
"pattern": "on",
|
||||
"pattern": "colour_cycle",
|
||||
"colors": ["#FF0000", "#00FF00"],
|
||||
"delay": 100,
|
||||
"brightness": 127,
|
||||
"n1": 10,
|
||||
"n2": 20
|
||||
"n2": 20,
|
||||
"mode": 1,
|
||||
}
|
||||
result = presets.update(preset_id, update_data)
|
||||
assert result is True
|
||||
updated = presets.read(preset_id)
|
||||
assert updated["name"] == "test_preset"
|
||||
assert updated["pattern"] == "on"
|
||||
assert updated["pattern"] == "colour_cycle"
|
||||
assert updated["mode"] == 1
|
||||
assert updated["delay"] == 100
|
||||
|
||||
print("\nTesting list presets")
|
||||
|
||||
Reference in New Issue
Block a user