Skip to content

Commit

Permalink
extra pin config
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Oct 7, 2023
1 parent 3cccd2f commit 7db035c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/BalboaGL/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
DEFAULT_FAN_MODES = ["OFF"]
DEFAULT_SWING_MODES = ["OFF"]

CONF_ENABLE_PIN = "enable_pin"
CONF_PANEL_SELECT_PIN = "panel_select_pin"

BalboaGL = cg.global_ns.class_(
"BalboaGL", climate.Climate, cg.PollingComponent
)
Expand All @@ -46,6 +49,8 @@ def valid_uart(uart):
),
cv.Required(CONF_RX_PIN): cv.int_range(),
cv.Required(CONF_TX_PIN): cv.int_range(),
cv.Required(CONF_PANEL_SELECT_PIN): cv.int_range(),
cv.Optional(CONF_ENABLE_PIN): cv.int_range(),
# Optionally override the supported ClimateTraits.
cv.Optional(CONF_SUPPORTS, default={}): cv.Schema(
{
Expand Down

0 comments on commit 7db035c

Please sign in to comment.