mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Use "Button" label to name Matter event (#119768)
This commit is contained in:
parent
8af5748716
commit
71a9ba25dc
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user