mirror of
https://github.com/esphome/esphome.git
synced 2026-08-25 07:36:19 +00:00
20 lines
579 B
C++
20 lines
579 B
C++
#pragma once
|
|
|
|
#include "esphome/core/entity_includes.h"
|
|
|
|
namespace esphome {
|
|
|
|
class Controller {
|
|
public:
|
|
// Controller virtual methods (generated from entity_types.h)
|
|
// NOLINTBEGIN(bugprone-macro-parentheses)
|
|
#define ENTITY_TYPE_(type, singular, plural, count, upper) // no controller callback
|
|
#define ENTITY_CONTROLLER_TYPE_(type, singular, plural, count, upper, callback) virtual void on_##callback(type *obj){};
|
|
#include "esphome/core/entity_types.h"
|
|
#undef ENTITY_TYPE_
|
|
#undef ENTITY_CONTROLLER_TYPE_
|
|
// NOLINTEND(bugprone-macro-parentheses)
|
|
};
|
|
|
|
} // namespace esphome
|