From 04e0d23aba1d7fd60064bf84ee367e56e0c1401b Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Thu, 14 Sep 2023 23:43:05 +0200 Subject: [PATCH] Fix typo --- .../berry_matter/src/embedded/Matter_Plugin_1_Device.be | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Device.be index 4edba45e0..d4d3a7ae4 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Device.be @@ -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