Those stocks will run out eventually. Huawei is probably betting on the sanctions being resolved through negotiations and the Chinese government making concessions on trade.
However, I wouldn't count on this happening since the U.S. knows very well the power of being able to spy on adversaries and allies using network and telecom equipment. I don't believe Trump will back down on Huwawei no matter what the Chinese government offers.