Adjust units in lcn (#84365)

pull/84377/head
epenet 2022-12-21 14:38:00 +01:00 committed by GitHub
parent 8619bdeec6
commit 55133b3a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ from homeassistant.const import (
CONF_HOST,
CONF_STATE,
CONF_UNIT_OF_MEASUREMENT,
TIME_SECONDS,
)
from homeassistant.core import HomeAssistant, ServiceCall
import homeassistant.helpers.config_validation as cv
@ -330,7 +329,7 @@ class LockKeys(LcnServiceCall):
),
vol.Required(CONF_STATE): is_states_string,
vol.Optional(CONF_TIME, default=0): cv.positive_int,
vol.Optional(CONF_TIME_UNIT, default=TIME_SECONDS): vol.All(
vol.Optional(CONF_TIME_UNIT, default="S"): vol.All(
vol.Upper, vol.In(TIME_UNITS)
),
}