From 3cccd2fc81596156275922bf86ab3febd92a63c6 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Sat, 7 Oct 2023 17:46:02 +0100 Subject: [PATCH] require pins --- components/BalboaGL/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/BalboaGL/climate.py b/components/BalboaGL/climate.py index 48db9b8..79bfb60 100644 --- a/components/BalboaGL/climate.py +++ b/components/BalboaGL/climate.py @@ -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( { @@ -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(), } ), }