// Check if charger will be automatically assigned
if (Configuration.getTestConfig() && Configuration.getTestConfig().automaticChargerAssignment) {
// Get all the site areas
const siteAreas = await SiteArea.getSiteAreas(bootNotification.tenantID);
// Assign them
if (Array.isArray(siteAreas.result) && siteAreas.result.length > 0) {
// Set
chargingStation.setSiteArea(siteAreas.result[0]);
// Save
await updatedChargingStation.saveChargingStationSiteArea()
}
}