Matter improve error message for MtrUpdate (#19644)

This commit is contained in:
s-hadinger 2023-10-02 22:00:55 +02:00 committed by GitHub
parent 86deee4e85
commit 2ad6353a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1596,7 +1596,7 @@ class Matter_Device
for k: payload_json.keys()
var cleaned_command_idx = tasmota.find_list_i(uc, k)
if (cleaned_command_idx == nil)
tasmota.resp_cmnd_str(f"Invalid command '{payload_json[k]}'")
tasmota.resp_cmnd_str(f"Invalid attribute '{k}'")
return
end
cmd_cleaned[uc[cleaned_command_idx]] = payload_json[k]

View File

@ -4769,7 +4769,7 @@ be_local_closure(Matter_Device_MtrUpdate, /* name */
/* K14 */ be_nested_str_weak(consolidate_update_commands),
/* K15 */ be_nested_str_weak(keys),
/* K16 */ be_nested_str_weak(find_list_i),
/* K17 */ be_nested_str_weak(Invalid_X20command_X20_X27_X25s_X27),
/* K17 */ be_nested_str_weak(Invalid_X20attribute_X20_X27_X25s_X27),
/* K18 */ be_nested_str_weak(stop_iteration),
/* K19 */ be_nested_str_weak(update_virtual),
/* K20 */ be_nested_str_weak(state_json),
@ -4869,7 +4869,7 @@ be_local_closure(Matter_Device_MtrUpdate, /* name */
0x8C341B01, // 0055 GETMET R13 R13 K1
0x603C0018, // 0056 GETGBL R15 G24
0x58400011, // 0057 LDCONST R16 K17
0x9444080B, // 0058 GETIDX R17 R4 R11
0x5C441600, // 0058 MOVE R17 R11
0x7C3C0400, // 0059 CALL R15 2
0x7C340400, // 005A CALL R13 2
0xA8040001, // 005B EXBLK 1 1