original_docstring: Unload a SimpliSafe config entry.
docstring: Unload a SimpliSafe config entry.
docstring_tokens: Unload a SimpliSafe config entry .
code: async def async_unload_entry(hass, entry):
      """Unload a SimpliSafe config entry."""
      tasks = [
          hass.config_entries.async_forward_entry_unload(entry, component)
          for component in ("alarm_control_panel", "lock")
      ]
  
      await asyncio.gather(*tasks)
  
      hass.data[DOMAIN][DATA_CLIENT].pop(entry.entry_id)
      remove_listener = hass.data[DOMAIN][DATA_LISTENER].pop(entry.entry_id)
      remove_listener()
  
      return True
code_tokens: async def async_unload_entry ( hass , entry ) : tasks = [ hass . config_entries . async_forward_entry_unload ( entry , component ) for component in ( "alarm_control_panel" , "lock" ) ] await asyncio . gather ( * tasks ) hass . data [ DOMAIN ] [ DATA_CLIENT ] . pop ( entry . entry_id ) remove_listener = hass . data [ DOMAIN ] [ DATA_LISTENER ] . pop ( entry . entry_id ) remove_listener ( ) return True
short_docstring: Unload a SimpliSafe config entry.
short_docstring_tokens: Unload a SimpliSafe config entry .
comment: """Unload a SimpliSafe config entry."""