mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 14:29:21 -04:00
Use probatio.Port for the port validator (#183737)
This commit is contained in:
@@ -194,7 +194,7 @@ gps = probatio.ExactSequence([latitude, longitude])
|
||||
sun_event = probatio.All(
|
||||
probatio.Lower, probatio.Any(SUN_EVENT_SUNSET, SUN_EVENT_SUNRISE)
|
||||
)
|
||||
port = probatio.All(probatio.Coerce(int), probatio.Range(min=1, max=65535))
|
||||
port = probatio.Port()
|
||||
|
||||
|
||||
def path(value: Any) -> str:
|
||||
|
||||
Reference in New Issue
Block a user