The age of the unit shapes the decision
A heat pump still within its expected working life is usually worth repairing, even for something major like a compressor or reversing valve. An old unit facing that same repair is a different question, because the next part to fail is probably close behind, and it may not be the part that just got fixed.







