feat(config)!: Made schedule part of new modules
All checks were successful
Build and deploy / build (push) Successful in 11m57s
Build and deploy / Deploy container (push) Has been skipped

This commit is contained in:
2025-10-22 03:24:34 +02:00
parent a938f3d71b
commit 9546585440
7 changed files with 64 additions and 52 deletions

View File

@@ -11,12 +11,12 @@ local FulfillmentConfig
---@field fulfillment FulfillmentConfig
---@field modules (Module)[]
---@field mqtt MqttConfig
---@field schedule (table<string, fun() | fun()[]>)?
local Config
---@class Module
---@field setup (fun(mqtt_client: AsyncClient): Module | DeviceInterface[] | nil)?
---@field devices (DeviceInterface)[]?
---@field schedule table<string, fun() | fun()[]>?
---@field [number] (Module)[]?
local Module