Update pattern tests for new preset-based API

- Replace add() calls with edit() for preset creation
- Update tests to work with merged patterns.py
- Ensure all tests use new Preset object structure
This commit is contained in:
2026-01-27 00:42:33 +13:00
parent a999b9054e
commit a75d71d9f4
8 changed files with 40 additions and 40 deletions

View File

@@ -14,7 +14,7 @@ def main():
wdt = WDT(timeout=10000)
# Create an "off" preset
p.add("test_off", {"pattern": "off"})
p.edit("test_off", {"pattern": "off"})
p.select("test_off")
start = utime.ticks_ms()