1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00

refactor: update DynamicLamp constructor to use DynamicLampIdx for improved clarity

This commit is contained in:
Oliver Kleinecke
2025-02-15 21:45:51 +01:00
parent eb7e4eb44b
commit 22d0deb61f

View File

@@ -7,7 +7,7 @@ namespace dynamic_lamp {
class DynamicLamp : public output::FloatOutput, public Parented<DynamicLampComponent> { class DynamicLamp : public output::FloatOutput, public Parented<DynamicLampComponent> {
public: public:
DynamicLamp(DynamicLampComponent *parent, DynamicLamp lamp) : parent_(parent), lamp_(lamp) {} DynamicLamp(DynamicLampComponent *parent, DynamicLampIdx lamp) : parent_(parent), lamp_(lamp) {}
protected: protected:
void write_state(float state) override; void write_state(float state) override;