From b2f81eb57c3048b343c50d76cbd628f515045624 Mon Sep 17 00:00:00 2001 From: oarcher Date: Fri, 31 May 2024 04:04:57 +0200 Subject: [PATCH] updated test --- esphome/components/modem/__init__.py | 8 -------- tests/test5.1.yaml | 4 ---- 2 files changed, 12 deletions(-) diff --git a/esphome/components/modem/__init__.py b/esphome/components/modem/__init__.py index ca2778da8b..4805c50677 100644 --- a/esphome/components/modem/__init__.py +++ b/esphome/components/modem/__init__.py @@ -111,13 +111,5 @@ async def to_code(config): cg.add(var.set_rx_pin(getattr(gpio_num_t, f"GPIO_NUM_{config[CONF_RX_PIN]}"))) cg.add(var.set_tx_pin(getattr(gpio_num_t, f"GPIO_NUM_{config[CONF_TX_PIN]}"))) - if pwr_pin := config.get(CONF_POWER_PIN, None): - cg.add(var.set_power_pin(getattr(gpio_num_t, f"GPIO_NUM_{pwr_pin}"))) - if flight_pin := config.get(CONF_FLIGHT_PIN, None): - cg.add(var.set_flight_pin(getattr(gpio_num_t, f"GPIO_NUM_{flight_pin}"))) - if pin_status := config.get(CONF_STATUS_PIN, None): - cg.add(var.set_status_pin(getattr(gpio_num_t, f"GPIO_NUM_{pin_status}"))) - if pin_dtr := config.get(CONF_DTR_PIN, None): - cg.add(var.set_dtr_pin(getattr(gpio_num_t, f"GPIO_NUM_{pin_dtr}"))) await cg.register_component(var, config) diff --git a/tests/test5.1.yaml b/tests/test5.1.yaml index 08f4df3e57..979a113cd6 100644 --- a/tests/test5.1.yaml +++ b/tests/test5.1.yaml @@ -16,10 +16,6 @@ modem: ready: modem_ready rx_pin: 26 tx_pin: 27 - power_pin: 4 - flight_pin: 25 - status_pin: 34 - dtr_pin: 32 model: SIM7600 apn: orange username: orange