mirror of
https://github.com/esphome/esphome.git
synced 2025-09-10 23:32:23 +01:00
Remove double scheduling from addressable lights (#1963)
This commit is contained in:
@@ -50,13 +50,11 @@ class PartitionLightOutput : public light::AddressableLight {
|
||||
}
|
||||
}
|
||||
light::LightTraits get_traits() override { return this->segments_[0].get_src()->get_traits(); }
|
||||
void loop() override {
|
||||
if (this->should_show_()) {
|
||||
for (auto seg : this->segments_) {
|
||||
seg.get_src()->schedule_show();
|
||||
}
|
||||
this->mark_shown_();
|
||||
void write_state(light::LightState *state) override {
|
||||
for (auto seg : this->segments_) {
|
||||
seg.get_src()->schedule_show();
|
||||
}
|
||||
this->mark_shown_();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user