MacOS terminal switches computer name from “macbook-pro” to “huawei_p_smart”: should I worry?
No. Your router tells your mac how to name itself and the Mac will take the name assigned to the router. Then you might decide to process those names or change terminal or decide to change your router setup.

OS X computer name not matching what shows on terminal

This is common that many DHCP servers don’t ask Mac what their name is or don’t record it uniformly. Apple OS provides many “names” for your Mac which complicates things as well. What happened is your Mac asked the router for an address and name and it assigned the old name from an old device that previously used the address your router assigned.
You would need to patch the router or log in to the router and follow the vendor guide to assign a Mac name to your MAC address for the name to be one that makes sense, I believe.