mirror of https://github.com/arendst/Tasmota.git
Fix typo
This commit is contained in:
parent
e5916337ef
commit
04e0d23aba
|
@ -191,7 +191,7 @@ class Matter_Plugin_Device : Matter_Plugin
|
||||||
import json
|
import json
|
||||||
var val
|
var val
|
||||||
if (val := introspect.get(self, attribute)) != nil
|
if (val := introspect.get(self, attribute)) != nil
|
||||||
if type(val) == 'boot' val = int(val) end # transform bool into 1/0
|
if type(val) == 'bool' val = int(val) end # transform bool into 1/0
|
||||||
ret += f',"{key}":{json.dump(val)}'
|
ret += f',"{key}":{json.dump(val)}'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue