mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
[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:
co-authored by
Claude Opus 4.8
Keith Burzinski
parent
e7933a5387
commit
ce46895270
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user