mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 15:04:54 +01:00
updated test
This commit is contained in:
parent
0f0c0a79c3
commit
b2f81eb57c
2 changed files with 0 additions and 12 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue