I think it's fantastic that smaller-to-midsized towns are bringing EV buses into service, but I'll mention my perennial bugbear again: all of these towns had dedicated trolley service under a century ago. The lines were torn up and replaced with less frequent, traffic encumbered bus routes. Hamden, for example, had three lines between it and New Haven[1]. [1]: http://www.hamdenhistoricalsociety.org/trolleys.html
Trolleys have a fixed route, which is not ideal. Fixed routes is why you see buses going down the road empty, or with one person on them.
Imagine if a bus had on demand stops, rather than stopping at 50 empty stops to get from point a to b. Those 49 extra stops are why nobody uses buses. It literally takes 4 flipping hours to go as what it takes 20 minutes by car, all while on a mostly empty bus, taking a fixed route, with fixed stops. Maybe it's better in other parts of the country, but in every city I've lived in, including San Jose, the nobody uses the buses, because nobody has that kind of time.
Trolleys for congested down town areas, sure.