(A) Every person operating an electric personal assistive mobility device upon a sidewalk or roadway has all the rights and is subject to all the duties applicable to a pedestrian.
(B) Nothing in this section shall be deemed to limit or preempt the authority of any home rule or non-home rule unit of local government from regulating or prohibiting the use of electric personal assistive mobility devices.
(625 ILCS 5/11-1005.1)