refactor: factor out more charging station options handling code
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStation.ts
index 6b83b1364e6e6add5472eaf533e0e97a643c2c96..3c51180449c688eb99d476927aec92c8e4e35908 100644 (file)
@@ -253,11 +253,6 @@ export class ChargingStation extends EventEmitter {
 
     this.add()
 
-    if (options?.autoStart != null) {
-      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
-      this.stationInfo!.autoStart = options.autoStart
-    }
-
     if (this.stationInfo?.autoStart === true) {
       this.start()
     }