setConfig (config) {
		this.config = {
			lang: config.lang ?? "en",
			...this.defaults,
			...config
		};

		// Set properly maxNumberOfDays and max Entries properties according to config and value ranges allowed in the documentation
		const maxEntriesLimit = ["daily", "forecast"].includes(this.config.type) ? 7 : this.config.type === "hourly" ? 48 : 0;
		if (this.config.hasOwnProperty("maxNumberOfDays") && !isNaN(parseFloat(this.config.maxNumberOfDays))) {
			const daysFactor = ["daily", "forecast"].includes(this.config.type) ? 1 : this.config.type === "hourly" ? 24 : 0;
			this.config.maxEntries = Math.max(1, Math.min(Math.round(parseFloat(this.config.maxNumberOfDays)) * daysFactor, maxEntriesLimit));
			this.config.maxNumberOfDays = Math.ceil(this.config.maxEntries / Math.max(1, daysFactor));
		}
		this.config.maxEntries = Math.max(1, Math.min(this.config.maxEntries, maxEntriesLimit));

		if (!this.config.type) {
			Log.error("type not configured and could not resolve it");
		}

		this.fetchLocation();
	}
Overrides method for setting config to check if endpoint is correct for hourly
@param {object} config The configuration object