1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 15:12:21 +01:00
Files
esphome/esphome/components/dynamic_lamp/output/dynamic_lamp_output.h

21 lines
467 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, DynamicLamp lamp) : parent_(parent), lamp_(lamp) {}
protected:
void write_state(float state) override;
DynamicLampComponent *parent_;
DynamicLampIdx lamp_;
float state_;
};
} // namespace dynamic_lamp
} // namespace esphome