mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Use default icon for demo button entity (#96961)
This commit is contained in:
parent
b7bcc1eae4
commit
e9a63b7501
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user