mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Add friendly name to ZHA identify button (#80446)
This commit is contained in:
parent
9eb4faf037
commit
b4a203c3c7
@ -109,6 +109,7 @@ class ZHAIdentifyButton(ZHAButton):
|
|||||||
|
|
||||||
_attr_device_class: ButtonDeviceClass = ButtonDeviceClass.UPDATE
|
_attr_device_class: ButtonDeviceClass = ButtonDeviceClass.UPDATE
|
||||||
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
||||||
|
_attr_name = "Identify"
|
||||||
_command_name = "identify"
|
_command_name = "identify"
|
||||||
|
|
||||||
def get_args(self) -> list[Any]:
|
def get_args(self) -> list[Any]:
|
||||||
@ -118,7 +119,7 @@ class ZHAIdentifyButton(ZHAButton):
|
|||||||
|
|
||||||
|
|
||||||
class ZHAAttributeButton(ZhaEntity, ButtonEntity):
|
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_name: str
|
||||||
_attribute_value: Any = None
|
_attribute_value: Any = None
|
||||||
|
@ -183,7 +183,7 @@ async def test_get_inovelli_actions(hass, device_inovelli):
|
|||||||
{
|
{
|
||||||
"device_id": inovelli_reg_device.id,
|
"device_id": inovelli_reg_device.id,
|
||||||
"domain": Platform.BUTTON,
|
"domain": Platform.BUTTON,
|
||||||
"entity_id": "button.inovelli_vzm31_sn_identifybutton",
|
"entity_id": "button.inovelli_vzm31_sn_identify",
|
||||||
"metadata": {"secondary": True},
|
"metadata": {"secondary": True},
|
||||||
"type": "press",
|
"type": "press",
|
||||||
},
|
},
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user