feat: Use ActionCallback for schedule
All checks were successful
Build and deploy / build (push) Successful in 11m12s
Build and deploy / Deploy container (push) Has been skipped

This has two advantages:
- Each schedule entry can take either a single function or table of
  functions.
- We get a better type definition.
This commit is contained in:
2025-10-19 02:43:24 +02:00
parent 92a0bff8c4
commit 64c4a47c6f
3 changed files with 6 additions and 4 deletions

View File

@@ -10,5 +10,5 @@ local FulfillmentConfig
---@class Config
---@field fulfillment FulfillmentConfig
---@field devices DeviceInterface[]?
---@field schedule table<string, function>?
---@field schedule table<string, fun() | fun()[]>?
local Config