cogito/_stuff/starter-components-main/components/empty_light/empty_light.cpp

28 lines
No EOL
559 B
C++

#include "esphome/core/log.h"
#include "empty_light.h"
namespace esphome {
namespace empty_light {
static const char *TAG = "empty_light.light";
void EmptyLightOutput::setup() {
}
light::LightTraits EmptyLightOutput::get_traits() {
auto traits = light::LightTraits();
traits.set_supported_color_modes({light::ColorMode::RGB});
return traits;
}
void EmptyLightOutput::write_state(light::LightState *state) {
}
void EmptyLightOutput::dump_config(){
ESP_LOGCONFIG(TAG, "Empty light");
}
} //namespace empty_light
} //namespace esphome