She wasn't being a 'brat' she Lost her mind. te think Zuko was the only one badly affected da the family drama? She had nobody but Ozai- who corrupted her into being a weapon. She had no love. She's also only 14.
Zuko had her committed to a mental institution, and in the recente graphic novels "the Promise" and now "the search-part 1" Zuko saw to it that she was well cared for. In fact, in "the cerca part 1, Zuko has her released from the institution to unisciti him in searching for THEIR mother. Unfortunately we see her still behaving "badly" and having delusional conversations with Ursa.