Add missing await in Minecraft Server (#133670)

This commit is contained in:
elmurato 2024-12-20 17:58:31 +01:00 committed by GitHub
parent 92195ff77d
commit 233395c181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(