Flashes are the battery charge chip signaling error. Just connecting d+ d- together doesn't make bme think charging is happening.. However, having all pins properly connected and then disconnecting gnd or +5V might make the charger chip immediately stop charging, but enough voltage to remain for several minutes to make bme think there's external power available.