Update wake_on_lan to use async_add_executor_job (#41528)

This commit is contained in:
J. Nick Koston 2020-10-09 02:29:16 -05:00 committed by GitHub
parent 3267823165
commit 617509413c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ async def async_setup(hass, config):
broadcast_port,
)
await hass.async_add_job(
await hass.async_add_executor_job(
partial(wakeonlan.send_magic_packet, mac_address, **service_kwargs)
)