Add friendly name to ZHA identify button (#80446)

This commit is contained in:
TheJulianJES authored and GitHub committed 2022-10-16 19:57:24 -04:00
1 parent 9eb4faf037
commit b4a203c3c7
3 files changed
+181 -180

No files matched your search

+2 -1
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
+1 -1
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