A system may include a first heat exchanger, a pumping device, and a valve. The pumping device may be in fluid communication with the first heat exchanger. The valve may receive a fluid from the pumping device and may be movable between a first position allowing the fluid through a first flow path and a second position to allow the fluid to flow through a second flow path. The first heat exchanger may be in heat transfer relation with an energy storage device such that heat may be extracted from the energy storage device when the valve is in the first position. Heat may be transferred from the first heat exchanger to the energy storage device when the valve is in the second position.