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:
@@ -7,7 +7,7 @@ namespace dynamic_lamp {
|
||||
|
||||
class DynamicLamp : public output::FloatOutput, public Parented<DynamicLampComponent> {
|
||||
public:
|
||||
DynamicLamp(DynamicLampComponent *parent, DynamicLamp lamp) : parent_(parent), lamp_(lamp) {}
|
||||
DynamicLamp(DynamicLampComponent *parent, DynamicLampIdx lamp) : parent_(parent), lamp_(lamp) {}
|
||||
|
||||
protected:
|
||||
void write_state(float state) override;
|
||||
|
Reference in New Issue
Block a user