import asyncio


async def async_unload_entry(hass, entry):
  """Unload a config entry."""

  unload_ok = all(
      await asyncio.gather(
          *[hass.config_entries.async_forward_entry_unload(entry, "sensor")]
      )
  )

  return unload_ok