You are my sunshine! Which figurative device is used?

You are my sunshine! Which figurative device is used?

Explanation

"You are my sunshine" compares a person to sunshine, implying warmth and happiness without using "like" or "as."

This is a metaphor, as it directly equates the person to sunshine.