mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 05:33:53 +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_supported_speed_count(base.supported_speed_count());
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ class CopyFan : public fan::Fan, public Component {
|
||||
|
||||
protected:
|
||||
void control(const fan::FanCall &call) override;
|
||||
;
|
||||
|
||||
fan::Fan *source_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user