This commit is contained in:
s-hadinger 2023-09-14 23:43:05 +02:00 committed by GitHub
parent e5916337ef
commit 04e0d23aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class Matter_Plugin_Device : Matter_Plugin
import json
var val
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)}'
end
end