Change WoL to be secondary on device info (#123591)
This commit is contained in:
parent
401e36b885
commit
b19758ff71
1 changed files with 2 additions and 5 deletions
|
@ -15,8 +15,6 @@ from homeassistant.core import HomeAssistant
|
|||
from homeassistant.helpers import device_registry as dr
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@ -62,9 +60,8 @@ class WolButton(ButtonEntity):
|
|||
self._attr_unique_id = dr.format_mac(mac_address)
|
||||
self._attr_device_info = dr.DeviceInfo(
|
||||
connections={(dr.CONNECTION_NETWORK_MAC, self._attr_unique_id)},
|
||||
identifiers={(DOMAIN, self._attr_unique_id)},
|
||||
manufacturer="Wake on LAN",
|
||||
name=name,
|
||||
default_manufacturer="Wake on LAN",
|
||||
default_name=name,
|
||||
)
|
||||
|
||||
async def async_press(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue