Bump wakeonlan to 3.1.0 (#146655)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
epenet 2025-06-13 15:58:44 +02:00 committed by GitHub
parent a8201009f3
commit ff17d79e73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 7 deletions

View File

@ -76,10 +76,10 @@ class SamsungTVEntity(CoordinatorEntity[SamsungTVDataUpdateCoordinator], Entity)
def _wake_on_lan(self) -> None: def _wake_on_lan(self) -> None:
"""Wake the device via wake on lan.""" """Wake the device via wake on lan."""
send_magic_packet(self._mac, ip_address=self._host) send_magic_packet(self._mac, ip_address=self._host) # type: ignore[arg-type]
# If the ip address changed since we last saw the device # If the ip address changed since we last saw the device
# broadcast a packet as well # broadcast a packet as well
send_magic_packet(self._mac) send_magic_packet(self._mac) # type: ignore[arg-type]
async def async_turn_off(self, **kwargs: Any) -> None: async def async_turn_off(self, **kwargs: Any) -> None:
"""Turn the device off.""" """Turn the device off."""

View File

@ -38,7 +38,7 @@
"getmac==0.9.5", "getmac==0.9.5",
"samsungctl[websocket]==0.7.1", "samsungctl[websocket]==0.7.1",
"samsungtvws[async,encrypted]==2.7.2", "samsungtvws[async,encrypted]==2.7.2",
"wakeonlan==2.1.0", "wakeonlan==3.1.0",
"async-upnp-client==0.44.0" "async-upnp-client==0.44.0"
], ],
"ssdp": [ "ssdp": [

View File

@ -52,7 +52,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
) )
await hass.async_add_executor_job( await hass.async_add_executor_job(
partial(wakeonlan.send_magic_packet, mac_address, **service_kwargs) partial(wakeonlan.send_magic_packet, mac_address, **service_kwargs) # type: ignore[arg-type]
) )
hass.services.async_register( hass.services.async_register(

View File

@ -5,5 +5,5 @@
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/wake_on_lan", "documentation": "https://www.home-assistant.io/integrations/wake_on_lan",
"iot_class": "local_push", "iot_class": "local_push",
"requirements": ["wakeonlan==2.1.0"] "requirements": ["wakeonlan==3.1.0"]
} }

2
requirements_all.txt generated
View File

@ -3059,7 +3059,7 @@ vultr==0.1.2
# homeassistant.components.samsungtv # homeassistant.components.samsungtv
# homeassistant.components.wake_on_lan # homeassistant.components.wake_on_lan
wakeonlan==2.1.0 wakeonlan==3.1.0
# homeassistant.components.wallbox # homeassistant.components.wallbox
wallbox==0.9.0 wallbox==0.9.0

View File

@ -2518,7 +2518,7 @@ vultr==0.1.2
# homeassistant.components.samsungtv # homeassistant.components.samsungtv
# homeassistant.components.wake_on_lan # homeassistant.components.wake_on_lan
wakeonlan==2.1.0 wakeonlan==3.1.0
# homeassistant.components.wallbox # homeassistant.components.wallbox
wallbox==0.9.0 wallbox==0.9.0