mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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
|
clusters.FixedLabel.Attributes.LabelList
|
||||||
):
|
):
|
||||||
for label in labels:
|
for label in labels:
|
||||||
if label.label == "Label":
|
if label.label in ["Label", "Button"]:
|
||||||
label_value: str = label.value
|
label_value: str = label.value
|
||||||
# in the case the label is only the label id, prettify it a bit
|
# in the case the label is only the label id, prettify it a bit
|
||||||
if label_value.isnumeric():
|
if label_value.isnumeric():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user