1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Display the configured esphome:comment on the WebServer (#4246)

This commit is contained in:
Gil Peeters
2023-01-17 11:02:54 +11:00
committed by GitHub
parent 05420291ce
commit 11518364a1
4 changed files with 21 additions and 15 deletions

View File

@@ -3,16 +3,16 @@
// matter at all, as long as it compiles).
// Not used during runtime nor for CI.
#include <esphome/core/application.h>
#include <esphome/components/logger/logger.h>
#include <esphome/components/wifi/wifi_component.h>
#include <esphome/components/ota/ota_component.h>
#include <esphome/components/gpio/switch/gpio_switch.h>
#include <esphome/components/logger/logger.h>
#include <esphome/components/ota/ota_component.h>
#include <esphome/components/wifi/wifi_component.h>
#include <esphome/core/application.h>
using namespace esphome;
void setup() {
App.pre_setup("livingroom", "LivingRoom", __DATE__ ", " __TIME__, false);
App.pre_setup("livingroom", "LivingRoom", "comment", __DATE__ ", " __TIME__, false);
auto *log = new logger::Logger(115200, 512); // NOLINT
log->pre_setup();
log->set_uart_selection(logger::UART_SELECTION_UART0);