diff --git a/lib/libesp32/berry_matter/tools/vendor_to_c.be b/lib/libesp32/berry_matter/tools/vendor_to_c.be
index bff47fb42..924f7e9f9 100644
--- a/lib/libesp32/berry_matter/tools/vendor_to_c.be
+++ b/lib/libesp32/berry_matter/tools/vendor_to_c.be
@@ -8,7 +8,7 @@ f.close()
for elt: j["vendorInfo"]
- print(string.format(' { 0x%04X, "%s"},', elt['vendorID'], elt['vendorName']))
+ print(format(' { 0x%04X, "%s"},', elt['vendorID'], elt['vendorName']))
end
diff --git a/lib/libesp32/berry_tasmota/solidify_all.be b/lib/libesp32/berry_tasmota/solidify_all.be
index 8f2575595..bf2ebfc6a 100755
--- a/lib/libesp32/berry_tasmota/solidify_all.be
+++ b/lib/libesp32/berry_tasmota/solidify_all.be
@@ -46,7 +46,7 @@ def parse_file(fname, prefix_out)
# output solidified
var fname_h = string.split(fname, '.be')[0] + '.h' # take whatever is before the first '.be'
var fout = open(prefix_out + "solidified_" + fname_h, "w")
- fout.write(string.format("/* Solidification of %s */\n", fname_h))
+ fout.write(format("/* Solidification of %s */\n", fname_h))
fout.write("/********************************************************************\\\n")
fout.write("* Generated code, don't edit *\n")
fout.write("\\********************************************************************/\n")
diff --git a/lib/libesp32/berry_tasmota/src/embedded/autoconf_module.be b/lib/libesp32/berry_tasmota/src/embedded/autoconf_module.be
index 42d573306..9620d358a 100644
--- a/lib/libesp32/berry_tasmota/src/embedded/autoconf_module.be
+++ b/lib/libesp32/berry_tasmota/src/embedded/autoconf_module.be
@@ -23,7 +23,7 @@ autoconf_module.init = def (m)
if string.find(dir[i], ".autoconf") > 0 # does the file contain '*.autoconf', >0 to skip `.autoconf`
if entry != nil
# we have multiple configuration files, not allowed
- tasmota.log(string.format("CFG: multiple autoconf files found, aborting ('%s' + '%s')", entry, dir[i]), 2)
+ tasmota.log(format("CFG: multiple autoconf files found, aborting ('%s' + '%s')", entry, dir[i]), 2)
self._error = true
return nil
end
@@ -88,24 +88,23 @@ autoconf_module.init = def (m)
# Load templates from Github
#####################################################################################################
def load_templates()
- import string
import json
try
- var url = string.format("https://raw.githubusercontent.com/tasmota/autoconf/main/%s_manifest.json", tasmota.arch())
- tasmota.log(string.format("CFG: loading '%s'", url), 3)
+ var url = format("https://raw.githubusercontent.com/tasmota/autoconf/main/%s_manifest.json", tasmota.arch())
+ tasmota.log(format("CFG: loading '%s'", url), 3)
# load the template
var cl = webclient()
cl.begin(url)
var r = cl.GET()
if r != 200
- tasmota.log(string.format("CFG: return_code=%i", r), 2)
+ tasmota.log(format("CFG: return_code=%i", r), 2)
return nil
end
var s = cl.get_string()
cl.close()
# convert to json
var j = json.load(s)
- tasmota.log(string.format("CFG: loaded '%s'", str(j)), 3)
+ tasmota.log(format("CFG: loaded '%s'", str(j)), 3)
var t = j.find("files")
if isinstance(t, list)
@@ -114,7 +113,7 @@ autoconf_module.init = def (m)
return nil
except .. as e, m
- tasmota.log(string.format("CFG: exception '%s' - '%s'", e, m), 2)
+ tasmota.log(format("CFG: exception '%s' - '%s'", e, m), 2)
return nil
end
end
@@ -143,8 +142,8 @@ autoconf_module.init = def (m)
var cur_module_display = cur_module ? string.tr(self.get_current_module_name(), "_", " ") : self._error ? "<Error: apply new or remove>" : "<None>"
webserver.content_send("
")
webserver.content_send("