mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	| @@ -504,6 +504,7 @@ def parse_args(argv): | ||||
|             "version", | ||||
|             "clean", | ||||
|             "dashboard", | ||||
|             "vscode", | ||||
|         ], | ||||
|     ) | ||||
|  | ||||
| @@ -686,7 +687,7 @@ def run_esphome(argv): | ||||
|     CORE.dashboard = args.dashboard | ||||
|  | ||||
|     setup_log(args.verbose, args.quiet) | ||||
|     if args.deprecated_argv_suggestion is not None: | ||||
|     if args.deprecated_argv_suggestion is not None and args.command != "vscode": | ||||
|         _LOGGER.warning( | ||||
|             "Calling ESPHome with the configuration before the command is deprecated " | ||||
|             "and will be removed in the future. " | ||||
|   | ||||
| @@ -137,6 +137,18 @@ WIFI_NETWORK_STA = WIFI_NETWORK_BASE.extend( | ||||
| ) | ||||
|  | ||||
|  | ||||
| def validate(config, item_config): | ||||
|     if ( | ||||
|         (CONF_NETWORKS in item_config) | ||||
|         and (item_config[CONF_NETWORKS] == []) | ||||
|         and (CONF_AP not in item_config) | ||||
|     ): | ||||
|         if "esp32_improv" not in config: | ||||
|             raise ValueError( | ||||
|                 "Please specify at least an SSID or an Access Point to create." | ||||
|             ) | ||||
|  | ||||
|  | ||||
| def _validate(config): | ||||
|     if CONF_PASSWORD in config and CONF_SSID not in config: | ||||
|         raise cv.Invalid("Cannot have WiFi password without SSID!") | ||||
| @@ -157,9 +169,7 @@ def _validate(config): | ||||
|         config[CONF_NETWORKS] = cv.ensure_list(WIFI_NETWORK_STA)(network) | ||||
|  | ||||
|     if (CONF_NETWORKS not in config) and (CONF_AP not in config): | ||||
|         raise cv.Invalid( | ||||
|             "Please specify at least an SSID or an Access Point " "to create." | ||||
|         ) | ||||
|         config[CONF_NETWORKS] = [] | ||||
|  | ||||
|     if config.get(CONF_FAST_CONNECT, False): | ||||
|         networks = config.get(CONF_NETWORKS, []) | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| MAJOR_VERSION = 1 | ||||
| MINOR_VERSION = 19 | ||||
| PATCH_VERSION = "0b3" | ||||
| PATCH_VERSION = "0b4" | ||||
| __short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}" | ||||
| __version__ = f"{__short_version__}.{PATCH_VERSION}" | ||||
|  | ||||
|   | ||||
| @@ -11,4 +11,4 @@ ifaddr==0.1.7 | ||||
| platformio==5.1.1 | ||||
| esptool==2.8 | ||||
| click==7.1.2 | ||||
| esphome-dashboard==20210611.0 | ||||
| esphome-dashboard==20210614.1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user