The problem with waps is they do like to feed on bees, larvae and honey
Yellow jackets can be very persistent in wanting to enter the hive, but the bees are usually a little ahead of them in building up their numbers and are able to defend the hive entrance.
If the hive is a little weaker or you find many wasps are easily gaining access to the hive (I wouldn't worry about the odd occasional wasp briefly sneaking in), you might consider reducing the entrance down to make it easier for the bees to defend.
In situations where it feels like a hive is really under attack, or it becomes impossible to perform inspections without large gangs of wasps appearing, wasp traps can gradually reduce the wasp numbers around your hive. I'm not proud of this, and dislike using them, so it's only something I've used reluctantly in situations where I felt it would prevent bees from suffering.
The trap in the video above is simply a water bottle top cut off and placed back into the bottle upside-down. This creates a funnel entrance into the center of the bottle. Any wasp that enters will have difficulty finding this entrance again. As the transparent bottle lets light in through the sides, this is where they search for an exit.
The bottle can be baited with a fermenting sugar or meat so wasps will be attracted but not bees.