You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
600 B
23 lines
600 B
#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
|