Coerce to tuple before asserting the sequence (#58672)

This commit is contained in:
Erik Montnemery
2021-10-30 16:50:24 +02:00
committed by GitHub
parent 18ebdbed3e
commit 56f746fd39
4 changed files with 7 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
CONF_NEIGHBORS, DEFAULT_NEIGHBORS
): cv.positive_int,
vol.Optional(CONF_MIN_SIZE, DEFAULT_MIN_SIZE): vol.Schema(
vol.All(vol.ExactSequence([int, int]), vol.Coerce(tuple))
vol.All(vol.Coerce(tuple), vol.ExactSequence([int, int]))
),
}
),