mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 23:57:06 +00:00
Add missing await in Minecraft Server (#133670)
This commit is contained in:
parent
92195ff77d
commit
233395c181
@ -43,7 +43,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
"""Set up Minecraft Server from a config entry."""
|
"""Set up Minecraft Server from a config entry."""
|
||||||
|
|
||||||
# Workaround to avoid blocking imports from dnspython (https://github.com/rthalley/dnspython/issues/1083)
|
# Workaround to avoid blocking imports from dnspython (https://github.com/rthalley/dnspython/issues/1083)
|
||||||
hass.async_add_executor_job(load_dnspython_rdata_classes)
|
await hass.async_add_executor_job(load_dnspython_rdata_classes)
|
||||||
|
|
||||||
# Create API instance.
|
# Create API instance.
|
||||||
api = MinecraftServer(
|
api = MinecraftServer(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user