Removed unused event code
This commit is contained in:
@@ -31,7 +31,6 @@ local mqtt_client = automation.new_mqtt_client({
|
||||
|
||||
local ntfy = Ntfy.new({
|
||||
topic = automation.util.get_env("NTFY_TOPIC"),
|
||||
event_channel = automation.device_manager:event_channel(),
|
||||
})
|
||||
automation.device_manager:add(ntfy)
|
||||
|
||||
@@ -251,7 +250,6 @@ automation.device_manager:add(Washer.new({
|
||||
topic = mqtt_z2m("bathroom/washer"),
|
||||
client = mqtt_client,
|
||||
threshold = 1,
|
||||
event_channel = automation.device_manager:event_channel(),
|
||||
done_callback = function()
|
||||
ntfy:send_notification({
|
||||
title = "Laundy is done",
|
||||
|
||||
Reference in New Issue
Block a user