WIP
This commit is contained in:
15
config/ntfy.lua
Normal file
15
config/ntfy.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user