Samsung TV Reconnect issue

My Samsung smart TV wants to reconnect all the time, like I have to reconfigure it by conforming and entering the code again, is there any simple fix ? for now I’ve disabled it but I kinda would like to control it from my Home Assistant app and so on…