Add friendly name to ZHA identify button (#80446)
parent
9eb4faf037
commit
b4a203c3c7
|
@ -109,6 +109,7 @@ class ZHAIdentifyButton(ZHAButton):
|
|||
|
||||
_attr_device_class: ButtonDeviceClass = ButtonDeviceClass.UPDATE
|
||||
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
||||
_attr_name = "Identify"
|
||||
_command_name = "identify"
|
||||
|
||||
def get_args(self) -> list[Any]:
|
||||
|
@ -118,7 +119,7 @@ class ZHAIdentifyButton(ZHAButton):
|
|||
|
||||
|
||||
class ZHAAttributeButton(ZhaEntity, ButtonEntity):
|
||||
"""Defines a ZHA button, which stes value to an attribute."""
|
||||
"""Defines a ZHA button, which writes a value to an attribute."""
|
||||
|
||||
_attribute_name: str
|
||||
_attribute_value: Any = None
|
||||
|
|
|
@ -183,7 +183,7 @@ async def test_get_inovelli_actions(hass, device_inovelli):
|
|||
{
|
||||
"device_id": inovelli_reg_device.id,
|
||||
"domain": Platform.BUTTON,
|
||||
"entity_id": "button.inovelli_vzm31_sn_identifybutton",
|
||||
"entity_id": "button.inovelli_vzm31_sn_identify",
|
||||
"metadata": {"secondary": True},
|
||||
"type": "press",
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue