Hdmi issue,console turns on and off

Hi,I have an original Xbox one,I just changed the hard drive [purchased from ebay],everything is working fine,boots,plays games etc, I have noticed that if the console is turned off and I unplug the hdmi cable the light flashes on the xbox button and the console keeps trying to turn itself on off.
Anyone have any ideas whats wrong?