Welcome @Eddie4, glad you’re here. Its come up in a couple of threads… I’ll see if I can find them and tag you as there was quite a bit of useful discussion.
My take on this is it’s my private business, so I keep it private. If they’re been vocally anti-gun, I may decline the invitation, and depending on the circumstances I may, or may not, tell them why. I may say “I’d like to attend, however, you’ve been clear that you don’t feel comfortable having firearms in your home, and I don’t feel comfortable being unable to provide protection for myself and my family, so we won’t be able to attend.” It can open up an opportunity for conversation.
If there were some reason I would be staying with them, and would have to leave firearms in their home (say, I had to go to a federal office), I’d be more likely to discuss it.