mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-18 20:23:27 +02:00
e80bd8ed3d
Co-authored-by: Maurits <maurits@vloop.nl> Co-authored-by: mauritskorse <mauritskorse@gmail.com> Co-authored-by: Daniel Dunn <dannydunn@eternityforest.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
63 lines
1.5 KiB
C++
63 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/core/component_iterator.h"
|
|
#include "esphome/core/defines.h"
|
|
namespace esphome {
|
|
namespace web_server {
|
|
|
|
class WebServer;
|
|
|
|
class ListEntitiesIterator : public ComponentIterator {
|
|
public:
|
|
ListEntitiesIterator(WebServer *web_server);
|
|
#ifdef USE_BINARY_SENSOR
|
|
bool on_binary_sensor(binary_sensor::BinarySensor *binary_sensor) override;
|
|
#endif
|
|
#ifdef USE_COVER
|
|
bool on_cover(cover::Cover *cover) override;
|
|
#endif
|
|
#ifdef USE_FAN
|
|
bool on_fan(fan::Fan *fan) override;
|
|
#endif
|
|
#ifdef USE_LIGHT
|
|
bool on_light(light::LightState *light) override;
|
|
#endif
|
|
#ifdef USE_SENSOR
|
|
bool on_sensor(sensor::Sensor *sensor) override;
|
|
#endif
|
|
#ifdef USE_SWITCH
|
|
bool on_switch(switch_::Switch *a_switch) override;
|
|
#endif
|
|
#ifdef USE_BUTTON
|
|
bool on_button(button::Button *button) override;
|
|
#endif
|
|
#ifdef USE_TEXT_SENSOR
|
|
bool on_text_sensor(text_sensor::TextSensor *text_sensor) override;
|
|
#endif
|
|
#ifdef USE_CLIMATE
|
|
bool on_climate(climate::Climate *climate) override;
|
|
#endif
|
|
#ifdef USE_NUMBER
|
|
bool on_number(number::Number *number) override;
|
|
#endif
|
|
#ifdef USE_TEXT
|
|
bool on_text(text::Text *text) override;
|
|
#endif
|
|
#ifdef USE_SELECT
|
|
bool on_select(select::Select *select) override;
|
|
#endif
|
|
#ifdef USE_LOCK
|
|
bool on_lock(lock::Lock *a_lock) override;
|
|
#endif
|
|
#ifdef USE_ALARM_CONTROL_PANEL
|
|
bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) override;
|
|
#endif
|
|
|
|
protected:
|
|
WebServer *web_server_;
|
|
};
|
|
|
|
} // namespace web_server
|
|
} // namespace esphome
|