If there is both a heat pump and a Tesla, which one has priority for charging?

If there is both a heat pump and a Tesla, which one has priority for charging?

Users can adjust the load priority by dragging on the Load Control page. The device with a higher priority will be allocated power first.