File tree 1 file changed +9
-4
lines changed
src/app/codegen-data-model
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -289,13 +289,18 @@ CHIP_ERROR CodegenDataModel::WriteAttribute(const InteractionModel::WriteAttribu
289
289
return *err;
290
290
}
291
291
292
- // All the global attributes that we do not have metadata for are
293
- // read-only (i.e. cannot write atribute_list/event_list/accepted_cmds/generated_cmds)
294
- //
295
- // so if no metadata available, we wil lreturn an error
296
292
const EmberAfAttributeMetadata ** attributeMetadata = std::get_if<const EmberAfAttributeMetadata *>(&metadata);
297
293
if (attributeMetadata == nullptr )
298
294
{
295
+ // All the global attributes that we do not have metadata for are
296
+ // read-only. Specifically only the following list-based attributes match the
297
+ // "global attributes not in metadata" (see GlobalAttributes.h :: GlobalAttributesNotInMetadat):
298
+ // - AttributeList
299
+ // - EventList
300
+ // - AcceptedCommands
301
+ // - GeneratedCommands
302
+ //
303
+ // Given the above, UnsupportedWrite should be correct (attempt to write to a read-only list)
299
304
return CHIP_IM_GLOBAL_STATUS (UnsupportedWrite);
300
305
}
301
306
You can’t perform that action at this time.
0 commit comments