Skip to content

Commit

Permalink
require pins
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Oct 7, 2023
1 parent 16a6968 commit 1a7e736
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/BalboaGL/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
from esphome.const import (
CONF_ID,
CONF_HARDWARE_UART,
CONF_BAUD_RATE,
CONF_UPDATE_INTERVAL,
CONF_MODE,
CONF_FAN_MODE,
CONF_SWING_MODE,
CONF_RX_PIN,
CONF_TX_PIN,
)
from esphome.core import CORE, coroutine

Expand Down Expand Up @@ -52,6 +53,8 @@ def valid_uart(uart):
cv.ensure_list(climate.validate_climate_fan_mode),
cv.Optional(CONF_SWING_MODE, default=DEFAULT_SWING_MODES):
cv.ensure_list(climate.validate_climate_swing_mode),
cv.Required(CONF_RX_PIN): cv.int_range(),
cv.Required(CONF_TX_PIN): cv.int_range(),
}
),
}
Expand Down

0 comments on commit 1a7e736

Please sign in to comment.