mirror of
https://github.com/esphome/esphome.git
synced 2025-09-24 06:02:21 +01:00
Add datetime entities (#6513)
This commit is contained in:
@@ -63,6 +63,9 @@ class ComponentIterator {
|
||||
#ifdef USE_DATETIME_TIME
|
||||
virtual bool on_time(datetime::TimeEntity *time) = 0;
|
||||
#endif
|
||||
#ifdef USE_DATETIME_DATETIME
|
||||
virtual bool on_datetime(datetime::DateTimeEntity *datetime) = 0;
|
||||
#endif
|
||||
#ifdef USE_TEXT
|
||||
virtual bool on_text(text::Text *text) = 0;
|
||||
#endif
|
||||
@@ -132,6 +135,9 @@ class ComponentIterator {
|
||||
#ifdef USE_DATETIME_TIME
|
||||
DATETIME_TIME,
|
||||
#endif
|
||||
#ifdef USE_DATETIME_DATETIME
|
||||
DATETIME_DATETIME,
|
||||
#endif
|
||||
#ifdef USE_TEXT
|
||||
TEXT,
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user