Glad to hear all is well!My dealer updated my bike to the latest editions of everything. He thought they came from the factory updated. The sensor needed an adjustment also and now my bike is running great again.
The eBike should always leave the OEM's assembler with the latest software version. BUT... there is always some amount of time that will elapse between assembly/programming, and the eBike making it into your hands. Sometimes you'll still have the latest version when you first get the bike, other times there will be an update available.
During our Certification trainings, we always encourage shops to update new eBikes for this very reason.