}
if (this.connectorsStatus.get(connectorId)?.start === false) {
this.runInAsyncScope(
- this.internalStartConnector.bind(this) as (this: this, ...args: any[]) => unknown,
+ this.internalStartConnector.bind(this) as (
+ this: AutomaticTransactionGenerator,
+ ...args: any[]
+ ) => void,
this,
connectorId
);
this.stopConnector(connectorId);
break;
}
- if (!this.chargingStation.isInAcceptedState()) {
+ if (this.chargingStation.isInAcceptedState() === false) {
logger.error(
this.logPrefix(connectorId) +
' entered in transaction loop while the charging station is not in accepted state'
this.stopConnector(connectorId);
break;
}
- if (!this.chargingStation.isChargingStationAvailable()) {
+ if (this.chargingStation.isChargingStationAvailable() === false) {
logger.info(
this.logPrefix(connectorId) +
' entered in transaction loop while the charging station is unavailable'
this.stopConnector(connectorId);
break;
}
- if (!this.chargingStation.isConnectorAvailable(connectorId)) {
+ if (this.chargingStation.isConnectorAvailable(connectorId) === false) {
logger.info(
`${this.logPrefix(
connectorId