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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user