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 1a7e736 commit 3cccd2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/BalboaGL/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def valid_uart(uart):
cv.Optional(CONF_UPDATE_INTERVAL, default="100ms"): cv.All(
cv.update_interval, cv.Range(max=cv.TimePeriod(milliseconds=9000))
),
cv.Required(CONF_RX_PIN): cv.int_range(),
cv.Required(CONF_TX_PIN): cv.int_range(),
# Optionally override the supported ClimateTraits.
cv.Optional(CONF_SUPPORTS, default={}): cv.Schema(
{
Expand All @@ -53,8 +55,6 @@ 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 3cccd2f

Please sign in to comment.