mirror of
https://github.com/esphome/esphome.git
synced 2025-10-26 20:53:50 +00:00
Bump ruff from 0.9.2 to 0.11.0 (#8409)
This commit is contained in:
@@ -34,13 +34,10 @@ def validate_connections(config):
|
||||
raise cv.Invalid(
|
||||
"Connections can only be used if the proxy is set to active"
|
||||
)
|
||||
else:
|
||||
if config[CONF_ACTIVE]:
|
||||
conf = config.copy()
|
||||
conf[CONF_CONNECTIONS] = [
|
||||
CONNECTION_SCHEMA({}) for _ in range(MAX_CONNECTIONS)
|
||||
]
|
||||
return conf
|
||||
elif config[CONF_ACTIVE]:
|
||||
conf = config.copy()
|
||||
conf[CONF_CONNECTIONS] = [CONNECTION_SCHEMA({}) for _ in range(MAX_CONNECTIONS)]
|
||||
return conf
|
||||
return config
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user