mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix #1908 mutating input parameter
This commit is contained in:
		| @@ -169,6 +169,7 @@ def _validate(config): | |||||||
|         config[CONF_NETWORKS] = cv.ensure_list(WIFI_NETWORK_STA)(network) |         config[CONF_NETWORKS] = cv.ensure_list(WIFI_NETWORK_STA)(network) | ||||||
|  |  | ||||||
|     if (CONF_NETWORKS not in config) and (CONF_AP not in config): |     if (CONF_NETWORKS not in config) and (CONF_AP not in config): | ||||||
|  |         config = config.copy() | ||||||
|         config[CONF_NETWORKS] = [] |         config[CONF_NETWORKS] = [] | ||||||
|  |  | ||||||
|     if config.get(CONF_FAST_CONNECT, False): |     if config.get(CONF_FAST_CONNECT, False): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user