ESPHome 2026.5.1
Loading...
Searching...
No Matches
list_entities.h
Go to the documentation of this file.
1#pragma once
2
4#ifdef USE_WEBSERVER
8#ifdef USE_ESP32
10#endif
11} // namespace esphome::web_server_idf
12
13namespace esphome::web_server {
14
15#if !defined(USE_ESP32) && defined(USE_ARDUINO)
16class DeferredUpdateEventSource;
17#endif
18class WebServer;
19
21 public:
22#ifdef USE_ESP32
24#elif defined(USE_ARDUINO)
26#endif
27
28// Entity overrides (generated from entity_types.h).
29// Implementations live in list_entities.cpp.
30// NOLINTBEGIN(bugprone-macro-parentheses)
31#define ENTITY_TYPE_(type, singular, plural, count, upper) bool on_##singular(type *obj) override;
32#define ENTITY_CONTROLLER_TYPE_(type, singular, plural, count, upper, callback) \
33 ENTITY_TYPE_(type, singular, plural, count, upper)
35#undef ENTITY_TYPE_
36#undef ENTITY_CONTROLLER_TYPE_
37 // NOLINTEND(bugprone-macro-parentheses)
38 bool completed() { return this->state_ == IteratorState::NONE; }
39
40 protected:
42#ifdef USE_ESP32
44#elif USE_ARDUINO
46#endif
47};
48
49} // namespace esphome::web_server
50#endif
DeferredUpdateEventSource * events_
esphome::web_server_idf::AsyncEventSource * events_
ListEntitiesIterator(const WebServer *ws, esphome::web_server_idf::AsyncEventSource *es)
This class allows users to create a web server with their ESP nodes.
Definition web_server.h:191