[uart][usb_uart] Implement runtime settings update (#16990)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
Clyde Stubbs
2026-07-08 13:30:49 -04:00
committed by GitHub
co-authored by Claude Opus 4.8 Keith Burzinski
parent e7933a5387
commit ce46895270
13 changed files with 534 additions and 419 deletions
@@ -37,6 +37,9 @@ class MockUARTComponent : public uart::UARTComponent {
MOCK_METHOD(bool, peek_byte, (uint8_t * data), (override));
MOCK_METHOD(uart::UARTFlushResult, flush, (), (override));
MOCK_METHOD(void, check_logger_conflict, (), (override));
#if defined(USE_ESP8266) || defined(USE_ESP32)
void load_settings(bool dump_config) override {}
#endif // defined(USE_ESP8266) || defined(USE_ESP32)
};
class TestableMitsubishiCN105 : public MitsubishiCN105 {
+3
View File
@@ -32,6 +32,9 @@ class MockUARTComponent : public UARTComponent {
MOCK_METHOD(size_t, available, (), (override));
MOCK_METHOD(UARTFlushResult, flush, (), (override));
MOCK_METHOD(void, check_logger_conflict, (), (override));
#if defined(USE_ESP8266) || defined(USE_ESP32)
MOCK_METHOD(void, load_settings, (bool dump_config), (override));
#endif
};
} // namespace esphome::uart::testing