23 lines
No EOL
600 B
C++
23 lines
No EOL
600 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/output/float_output.h"
|
|
#include "esphome/components/light/light_output.h"
|
|
|
|
namespace esphome {
|
|
namespace empty_light {
|
|
|
|
class EmptyLightOutput : public light::LightOutput, public Component {
|
|
public:
|
|
void setup() override;
|
|
light::LightTraits get_traits() override;
|
|
void set_output(output::FloatOutput *output) { output_ = output; }
|
|
void write_state(light::LightState *state) override;
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
output::FloatOutput *output_;
|
|
};
|
|
|
|
} //namespace empty_light
|
|
} //namespace esphome
|