Merge pull request #1914 from esphome/bump-1.19.0b4

1.19.0b4
This commit is contained in:
Jesse Hills 2021-06-15 20:47:38 +12:00 committed by GitHub
commit 035be87a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 6 deletions

View file

@ -504,6 +504,7 @@ def parse_args(argv):
"version", "version",
"clean", "clean",
"dashboard", "dashboard",
"vscode",
], ],
) )
@ -686,7 +687,7 @@ def run_esphome(argv):
CORE.dashboard = args.dashboard CORE.dashboard = args.dashboard
setup_log(args.verbose, args.quiet) 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( _LOGGER.warning(
"Calling ESPHome with the configuration before the command is deprecated " "Calling ESPHome with the configuration before the command is deprecated "
"and will be removed in the future. " "and will be removed in the future. "

View file

@ -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): def _validate(config):
if CONF_PASSWORD in config and CONF_SSID not in config: if CONF_PASSWORD in config and CONF_SSID not in config:
raise cv.Invalid("Cannot have WiFi password without SSID!") 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) 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):
raise cv.Invalid( config[CONF_NETWORKS] = []
"Please specify at least an SSID or an Access Point " "to create."
)
if config.get(CONF_FAST_CONNECT, False): if config.get(CONF_FAST_CONNECT, False):
networks = config.get(CONF_NETWORKS, []) networks = config.get(CONF_NETWORKS, [])

View file

@ -2,7 +2,7 @@
MAJOR_VERSION = 1 MAJOR_VERSION = 1
MINOR_VERSION = 19 MINOR_VERSION = 19
PATCH_VERSION = "0b3" PATCH_VERSION = "0b4"
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}" __short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__ = f"{__short_version__}.{PATCH_VERSION}" __version__ = f"{__short_version__}.{PATCH_VERSION}"

View file

@ -11,4 +11,4 @@ ifaddr==0.1.7
platformio==5.1.1 platformio==5.1.1
esptool==2.8 esptool==2.8
click==7.1.2 click==7.1.2
esphome-dashboard==20210611.0 esphome-dashboard==20210614.1