mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Check for empty lists in KNX address configuration (#90249)
This commit is contained in:
parent
970036b328
commit
52a94dd2ac
@ -101,7 +101,11 @@ def ga_validator(value: Any) -> str | int:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
ga_list_validator = vol.All(cv.ensure_list, [ga_validator])
|
ga_list_validator = vol.All(
|
||||||
|
cv.ensure_list,
|
||||||
|
[ga_validator],
|
||||||
|
vol.IsTrue("value must be a group address or a list containing group addresses"),
|
||||||
|
)
|
||||||
|
|
||||||
ia_validator = vol.Any(
|
ia_validator = vol.Any(
|
||||||
vol.All(str, str.strip, cv.matches_regex(IndividualAddress.ADDRESS_RE.pattern)),
|
vol.All(str, str.strip, cv.matches_regex(IndividualAddress.ADDRESS_RE.pattern)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user