mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-26 01:14:25 +01:00
change response names, to avoid confusion with berry lang itself
This commit is contained in:
@@ -329,8 +329,8 @@ end
|
||||
|
||||
def get_current_version(cmd, idx, payload, payload_json)
|
||||
import string
|
||||
var version_of_this_script = 1
|
||||
var jm = string.format("{\"berry_version\":\"%s\"}", version_of_this_script)
|
||||
var version_of_this_script = 2
|
||||
var jm = string.format("{\"nlui_driver_version\":\"%s\"}", version_of_this_script)
|
||||
tasmota.publish_result(jm, "RESULT")
|
||||
end
|
||||
|
||||
@@ -354,10 +354,10 @@ def update_berry_driver(cmd, idx, payload, payload_json)
|
||||
print("Scucessfully written nspanel-lovelace-ui berry driver")
|
||||
var s = load('autoexec.be')
|
||||
if s == true
|
||||
var jm = string.format("{\"berry_update\":\"%s\"}", "succeeded")
|
||||
var jm = string.format("{\"nlui_driver_update\":\"%s\"}", "succeeded")
|
||||
tasmota.publish_result(jm, "RESULT")
|
||||
else
|
||||
var jm = string.format("{\"berry_update\":\"%s\"}", "failed")
|
||||
var jm = string.format("{\"nlui_driver_update\":\"%s\"}", "failed")
|
||||
tasmota.publish_result(jm, "RESULT")
|
||||
end
|
||||
|
||||
@@ -405,4 +405,4 @@ def send_cmd2(cmd, idx, payload, payload_json)
|
||||
tasmota.resp_cmnd_done()
|
||||
end
|
||||
|
||||
tasmota.add_cmd('CustomSend', send_cmd2)
|
||||
tasmota.add_cmd('CustomSend', send_cmd2)
|
||||
|
||||
Reference in New Issue
Block a user