the door is opening and closing on every frame despite my Player not moving out or in the trigger and even when it sits within the trigger.
Is it possible that the trigger collider is a child of this hinge object? That could cause the collider to move out of the player when the hinge opens, triggering OnTriggerExit, which would cause it to rotate back into the player, triggering OnTriggerEnter again, and so on.
Note: You should not be modifying the Transform when using 2D physics, only Rigidbody2D move and they write to the Transform. If this moves but you don’t want a Dynamic collision response then use a Kinematic body-type.