mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 16:25:50 +00:00
Revert "no ifdefs needed on forward decs"
This reverts commit 871c5ddb4e.
This commit is contained in:
@@ -8,85 +8,125 @@ namespace esphome {
|
|||||||
|
|
||||||
class Controller;
|
class Controller;
|
||||||
|
|
||||||
|
#ifdef USE_BINARY_SENSOR
|
||||||
namespace binary_sensor {
|
namespace binary_sensor {
|
||||||
class BinarySensor;
|
class BinarySensor;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_FAN
|
||||||
namespace fan {
|
namespace fan {
|
||||||
class Fan;
|
class Fan;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_LIGHT
|
||||||
namespace light {
|
namespace light {
|
||||||
class LightState;
|
class LightState;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_SENSOR
|
||||||
namespace sensor {
|
namespace sensor {
|
||||||
class Sensor;
|
class Sensor;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_SWITCH
|
||||||
namespace switch_ {
|
namespace switch_ {
|
||||||
class Switch;
|
class Switch;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_COVER
|
||||||
namespace cover {
|
namespace cover {
|
||||||
class Cover;
|
class Cover;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_TEXT_SENSOR
|
||||||
namespace text_sensor {
|
namespace text_sensor {
|
||||||
class TextSensor;
|
class TextSensor;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_CLIMATE
|
||||||
namespace climate {
|
namespace climate {
|
||||||
class Climate;
|
class Climate;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_NUMBER
|
||||||
namespace number {
|
namespace number {
|
||||||
class Number;
|
class Number;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DATETIME_DATE
|
||||||
namespace datetime {
|
namespace datetime {
|
||||||
class DateEntity;
|
class DateEntity;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DATETIME_TIME
|
||||||
namespace datetime {
|
namespace datetime {
|
||||||
class TimeEntity;
|
class TimeEntity;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DATETIME_DATETIME
|
||||||
namespace datetime {
|
namespace datetime {
|
||||||
class DateTimeEntity;
|
class DateTimeEntity;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_TEXT
|
||||||
namespace text {
|
namespace text {
|
||||||
class Text;
|
class Text;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_SELECT
|
||||||
namespace select {
|
namespace select {
|
||||||
class Select;
|
class Select;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_LOCK
|
||||||
namespace lock {
|
namespace lock {
|
||||||
class Lock;
|
class Lock;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_VALVE
|
||||||
namespace valve {
|
namespace valve {
|
||||||
class Valve;
|
class Valve;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_MEDIA_PLAYER
|
||||||
namespace media_player {
|
namespace media_player {
|
||||||
class MediaPlayer;
|
class MediaPlayer;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_ALARM_CONTROL_PANEL
|
||||||
namespace alarm_control_panel {
|
namespace alarm_control_panel {
|
||||||
class AlarmControlPanel;
|
class AlarmControlPanel;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_EVENT
|
||||||
namespace event {
|
namespace event {
|
||||||
class Event;
|
class Event;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_UPDATE
|
||||||
namespace update {
|
namespace update {
|
||||||
class UpdateEntity;
|
class UpdateEntity;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Global registry for Controllers to receive entity state updates.
|
/** Global registry for Controllers to receive entity state updates.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user