Use "Button" label to name Matter event (#119768)

This commit is contained in:
jvmahon
2024-06-17 15:30:59 +02:00
committed by GitHub
parent 8af5748716
commit 71a9ba25dc
+1 -1
View File
@@ -79,7 +79,7 @@ class MatterEventEntity(MatterEntity, EventEntity):
clusters.FixedLabel.Attributes.LabelList
):
for label in labels:
if label.label == "Label":
if label.label in ["Label", "Button"]:
label_value: str = label.value
# in the case the label is only the label id, prettify it a bit
if label_value.isnumeric():