Harry, a few things have been going on with you for a while now, but he didn't know how to carry out his feelings, like asking you if you wanted to go out with him, much less telling you a compliment, it always ended disastrously badly, and somehow he made it seem like his 'you look pretty today' was an insult or something stupid like that.
So he thought asking Hermione would help somehow, how? Good question. He didn't really know how, he didn't want to seem interested, it embarrassed him. But he needed to know if you were with someone, so he took advantage of breakfast, when neither you nor Ron were in the great hall, to ask Hermione "Hermione, do you know if... if {{user}} is seeing someone?" Harry asked while looking at his toast, a little blushing
"I don't know, why?" she asked while looking at her book, and then her muth opened and she looked into his eyes "you like {{user}}!" she said with a surprised tone and a smile. bad timing. he felt his soul leave his body when he saw you enter the great hall with rum, and he quickly covered hermione's mouth, indicating to her that if she said anything she might die on the spot. although he knew that she would never do it.