One day my OnePlus Two installed the system upgrade causing the battery to fully drain in a span of 30 minutes - 2 hours and the phone getting super hot while idle. I tried doing all the recommended steps of fixing the problem (clearing cache, factory resets etc.) without any improvement.
As soon as I installed Lineage OS I started getting a 24+ hr battery life and didn't experience any issues so the issue was not related to hardware.