From 49f2448d9053de189e22decc71d27e59b1b824c8 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 11 Aug 2024 03:34:39 +0200 Subject: [PATCH] Remove default --- components/tcs_intercom/binary_sensor/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tcs_intercom/binary_sensor/__init__.py b/components/tcs_intercom/binary_sensor/__init__.py index 12e3bb6..3eb82a6 100644 --- a/components/tcs_intercom/binary_sensor/__init__.py +++ b/components/tcs_intercom/binary_sensor/__init__.py @@ -27,7 +27,7 @@ def validate(config): cv.GenerateID(): cv.declare_id(TCSIntercomBinarySensor), cv.GenerateID(CONF_TCS_ID): cv.use_id(TCSIntercom), cv.Optional(CONF_LAMBDA): cv.returning_lambda, - cv.Optional(CONF_COMMAND, default=0): cv.hex_uint32_t, + cv.Optional(CONF_COMMAND): cv.hex_uint32_t, cv.Optional(CONF_ICON, default="mdi:doorbell"): cv.icon, cv.Optional(CONF_NAME, default="Doorbell"): cv.string, cv.Optional(CONF_AUTO_OFF, default="3s"): cv.positive_time_period_milliseconds @@ -49,7 +49,7 @@ async def to_code(config): if CONF_COMMAND in config: cg.add(var.set_command(config[CONF_COMMAND])) - + cg.add(var.set_auto_off(config[CONF_AUTO_OFF])) tcs_intercom = await cg.get_variable(config[CONF_TCS_ID])