Skip to content

Commit

Permalink
Merge pull request #8 from AzonInc/dev
Browse files Browse the repository at this point in the history
Remove default
  • Loading branch information
AzonInc authored Aug 11, 2024
2 parents a365747 + 49f2448 commit a676a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tcs_intercom/binary_sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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])
Expand Down

0 comments on commit a676a66

Please sign in to comment.