Use default icon for demo button entity (#96961)

This commit is contained in:
Franck Nijhof 2023-07-20 23:02:59 +02:00 committed by GitHub
parent b7bcc1eae4
commit e9a63b7501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,6 @@ async def async_setup_entry(
DemoButton(
unique_id="push",
device_name="Push",
icon="mdi:gesture-tap-button",
),
]
)
@ -39,11 +38,9 @@ class DemoButton(ButtonEntity):
self,
unique_id: str,
device_name: str,
icon: str,
) -> None:
"""Initialize the Demo button entity."""
self._attr_unique_id = unique_id
self._attr_icon = icon
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, unique_id)},
name=device_name,