1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-18 16:50:28 +01:00
esphome/esphome/components/dynamic_lamp/output/dynamic_lamp_output.h

21 lines
470 B
C++

#pragma once
#include "../dynamic_lamp.h"
namespace esphome {
namespace dynamic_lamp {
class DynamicLamp : public output::FloatOutput, public Parented<DynamicLampComponent> {
public:
DynamicLamp(DynamicLampComponent *parent, DynamicLampIdx lamp) : parent_(parent), lamp_(lamp) {}
protected:
void write_state(float state) override;
DynamicLampComponent *parent_;
DynamicLampIdx lamp_;
float state_;
};
} // namespace dynamic_lamp
} // namespace esphome