Filing in another state

When I sell a vacation home in another stated do I need to file a tax return in that state?