local devices = require("automation:devices") local secrets = require("automation:secrets") local module = {} local ntfy_topic = secrets.ntfy_topic if ntfy_topic == nil then error("Ntfy topic is not specified") end module.device = devices.Ntfy.new({ topic = ntfy_topic, }) return module