mirror of https://github.com/arendst/Tasmota.git
21 lines
362 B
Python
21 lines
362 B
Python
# Register the command 'Antiburn'
|
|
# Module loaded in memory only when the command is first used
|
|
|
|
var wd = tasmota.wd
|
|
|
|
lv.antiburn = def()
|
|
import sys
|
|
var path = sys.path()
|
|
path.push(wd)
|
|
import antiburn
|
|
path.pop()
|
|
antiburn.start()
|
|
end
|
|
|
|
tasmota.add_cmd("Antiburn",
|
|
def ()
|
|
lv.antiburn()
|
|
tasmota.resp_cmnd_done()
|
|
end
|
|
)
|