mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 14:13:51 +00:00
fixed
This commit is contained in:
@@ -35,7 +35,7 @@ fan::FanTraits CopyFan::get_traits() {
|
|||||||
traits.set_speed(base.supports_speed());
|
traits.set_speed(base.supports_speed());
|
||||||
traits.set_supported_speed_count(base.supported_speed_count());
|
traits.set_supported_speed_count(base.supported_speed_count());
|
||||||
traits.set_direction(base.supports_direction());
|
traits.set_direction(base.supports_direction());
|
||||||
traits.set_supported_preset_modes(&source_->preset_modes_);
|
traits.set_supported_preset_modes(&base.supported_preset_modes());
|
||||||
return traits;
|
return traits;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ class CopyFan : public fan::Fan, public Component {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void control(const fan::FanCall &call) override;
|
void control(const fan::FanCall &call) override;
|
||||||
|
;
|
||||||
|
|
||||||
fan::Fan *source_;
|
fan::Fan *source_;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user