1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-13 00:32:20 +01:00

[nextion] Add optional device info storage configuration (#9366)

This commit is contained in:
Edward Firmo
2025-07-07 19:04:01 +02:00
committed by GitHub
parent 8147d117a0
commit e88b8d10ec
4 changed files with 23 additions and 3 deletions

View File

@@ -1457,10 +1457,12 @@ class Nextion : public NextionBase, public PollingComponent, public uart::UARTDe
optional<nextion_writer_t> writer_;
optional<float> brightness_;
#ifdef USE_NEXTION_CONFIG_DUMP_DEVICE_INFO
std::string device_model_;
std::string firmware_version_;
std::string serial_number_;
std::string flash_size_;
#endif // USE_NEXTION_CONFIG_DUMP_DEVICE_INFO
void remove_front_no_sensors_();