File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
components/nspanel_lovelace Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -218,13 +218,7 @@ void NSPanelLovelace::exit_reparse_mode() {
218218}
219219
220220void NSPanelLovelace::set_baud_rate_ (int baud_rate) {
221- // hopefully on NSPanel it should always be an ESP32ArduinoUARTComponent instance
222- #ifdef USE_ARDUINO
223- auto *uart = reinterpret_cast <uart::ESP32ArduinoUARTComponent *>(this ->parent_ );
224- #endif
225- #ifdef USE_ESP_IDF
226221 auto *uart = reinterpret_cast <uart::IDFUARTComponent *>(this ->parent_ );
227- #endif
228222 uart->set_baud_rate (baud_rate);
229223 uart->setup ();
230224}
Original file line number Diff line number Diff line change 44
55#include " esphome/components/mqtt/mqtt_client.h"
66#include " esphome/components/uart/uart.h"
7+ #include " esphome/components/uart/uart_component_esp_idf.h"
78#include " esphome/core/automation.h"
89#include " esphome/core/component.h"
910#include " esphome/core/defines.h"
1011
1112#ifdef USE_ARDUINO
12- #include " esphome/components/uart/uart_component_esp32_arduino.h"
1313#include < HTTPClient.h>
1414#endif
1515#ifdef USE_ESP_IDF
16- #include " esphome/components/uart/uart_component_esp_idf.h"
1716#include < esp_http_client.h>
1817#endif
1918
You can’t perform that action at this time.
0 commit comments