In one sentence, explain the meaning of the metaphor in the following sentence.

The shabby blanket that wrapped around me, was a warm hug from an old friend

The shabby blanket symbolizes comfort and familiarity like the embrace of a cherished companion.