1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-06 19:00:59 +01:00

Wireguard keepalive remove uint16 type (#5430)

This commit is contained in:
Guillermo Ruffino 2023-09-26 20:25:00 -03:00 committed by Jesse Hills
parent b30bab8c1b
commit 7dabbb65d0
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -9,6 +9,7 @@ from esphome.const import (
CONF_REBOOT_TIMEOUT, CONF_REBOOT_TIMEOUT,
) )
from esphome.components import time from esphome.components import time
from esphome.core import TimePeriod
CONF_NETMASK = "netmask" CONF_NETMASK = "netmask"
CONF_PRIVATE_KEY = "private_key" CONF_PRIVATE_KEY = "private_key"
@ -59,9 +60,9 @@ CONFIG_SCHEMA = cv.Schema(
cv.Optional(CONF_PEER_ALLOWED_IPS, default=["0.0.0.0/0"]): cv.ensure_list( cv.Optional(CONF_PEER_ALLOWED_IPS, default=["0.0.0.0/0"]): cv.ensure_list(
_cidr_network _cidr_network
), ),
cv.Optional(CONF_PEER_PERSISTENT_KEEPALIVE, default=0): cv.Any( cv.Optional(CONF_PEER_PERSISTENT_KEEPALIVE, default="0s"): cv.All(
cv.positive_time_period_seconds, cv.positive_time_period_seconds,
cv.uint16_t, cv.Range(max=TimePeriod(seconds=65535)),
), ),
cv.Optional( cv.Optional(
CONF_REBOOT_TIMEOUT, default="15min" CONF_REBOOT_TIMEOUT, default="15min"