mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Change WoL to be secondary on device info (#123591)
This commit is contained in:
parent
401e36b885
commit
b19758ff71
@ -15,8 +15,6 @@ from homeassistant.core import HomeAssistant
|
|||||||
from homeassistant.helpers import device_registry as dr
|
from homeassistant.helpers import device_registry as dr
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
from .const import DOMAIN
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@ -62,9 +60,8 @@ class WolButton(ButtonEntity):
|
|||||||
self._attr_unique_id = dr.format_mac(mac_address)
|
self._attr_unique_id = dr.format_mac(mac_address)
|
||||||
self._attr_device_info = dr.DeviceInfo(
|
self._attr_device_info = dr.DeviceInfo(
|
||||||
connections={(dr.CONNECTION_NETWORK_MAC, self._attr_unique_id)},
|
connections={(dr.CONNECTION_NETWORK_MAC, self._attr_unique_id)},
|
||||||
identifiers={(DOMAIN, self._attr_unique_id)},
|
default_manufacturer="Wake on LAN",
|
||||||
manufacturer="Wake on LAN",
|
default_name=name,
|
||||||
name=name,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
async def async_press(self) -> None:
|
async def async_press(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user