Skip to content

Commit

Permalink
pass gpio as optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Hervé Couplet committed May 30, 2023
1 parent 086a1bb commit 07d569a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/comfoair/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ class ComfoNumConvs(Enum):
CONFIG_SCHEMA = cv.All(
cv.Schema({
cv.GenerateID(): cv.declare_id(Comfoair),
cv.Required(CONF_RX_PIN): pins.internal_gpio_input_pin_number,
cv.Required(CONF_TX_PIN): pins.internal_gpio_output_pin_number,
cv.Optional(CONF_RX_PIN, default=GPIO_NUM_21): pins.internal_gpio_input_pin_number,
cv.Optional(CONF_TX_PIN, default=GPIO_NUM_25): pins.internal_gpio_output_pin_number,
})
.extend(GEN_SENSORS_SCHEMA)
.extend(GEN_TEXTSENSORS_SCHEMA)
Expand Down

0 comments on commit 07d569a

Please sign in to comment.