Skip to content

Commit

Permalink
Add missing await in Minecraft Server (#133670)
Browse files Browse the repository at this point in the history
  • Loading branch information
elmurato authored Dec 20, 2024
1 parent 92195ff commit 233395c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/minecraft_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up Minecraft Server from a config entry."""

# 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.
api = MinecraftServer(
Expand Down

0 comments on commit 233395c

Please sign in to comment.