1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Raise minimum python version to 3.8 (#3176)

This commit is contained in:
Jesse Hills
2022-02-10 21:55:11 +13:00
committed by GitHub
parent ad6c5ff11d
commit 40e06c9819
18 changed files with 253 additions and 180 deletions

View File

@@ -225,11 +225,11 @@ def _validate(config):
if CONF_MANUAL_IP in config:
use_address = str(config[CONF_MANUAL_IP][CONF_STATIC_IP])
elif CONF_NETWORKS in config:
ips = set(
ips = {
str(net[CONF_MANUAL_IP][CONF_STATIC_IP])
for net in config[CONF_NETWORKS]
if CONF_MANUAL_IP in net
)
}
if len(ips) > 1:
raise cv.Invalid(
"Must specify use_address when using multiple static IP addresses."