Add friendly name to ZHA identify button (#80446)

This commit is contained in:
TheJulianJES 2022-10-17 01:57:24 +02:00 committed by GitHub
parent 9eb4faf037
commit b4a203c3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 181 additions and 180 deletions

View file

@ -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

View file

@ -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