From 55133b3a27f28f1bf8e6393dcb0dc1b4dbe3cf24 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 21 Dec 2022 14:38:00 +0100 Subject: [PATCH] Adjust units in lcn (#84365) --- homeassistant/components/lcn/services.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/lcn/services.py b/homeassistant/components/lcn/services.py index e46328069e1..08dd5d711a8 100644 --- a/homeassistant/components/lcn/services.py +++ b/homeassistant/components/lcn/services.py @@ -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) ), }