I had a similar thought when shopping for my eBike (see my other thread - "are eBike bans actually enforced").
Fahrer makes covers that would completely conceal an external battery - look at the universal summer or the tube design.
We offer e-Bike battery protection suitable for BOSCH PowerPack 300, 400 & 500 Classic+ , BOSCH Power Pack Active-/Performance Line, Yamaha PW Series and integrated down tube batteries.
www.fahrer-berlin.de
Also, you can make a simple homemade frame bag that does not have a bottom, and is designed so the battery is effectively encapsulated inside the frame bag.
The frame bag is the most basic piece of bike luggage; here’s how to plan, design, and construct a simple frame bag for bikepackng and bike touring...
bikepacking.com
Combine a Fahrer cover with a frame bag and your battery is effectively concealed.
In the event you cause an accident or hit a pedestrian on an eBike, the fact that you have an integrated battery is not going to cause the police officer to overlook that you have an Ebike in a place where you shouldn't. However, I do have one question:
I also have a bike with an external Yamaha battery, and was wondering if I have a fall off the bike, if I need to get the battery inspected that it is safe to continue riding? I have read that any damage to the battery creates unsafe use and charging. I would assume that an integrated battery is better protected in the event of a spill off the bike.