mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Fix fan oscillation trait not being used (#1048)
This commit is contained in:
parent
26d6738abb
commit
53986279d7
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ namespace fan {
|
|||
class FanTraits {
|
||||
public:
|
||||
FanTraits() = default;
|
||||
FanTraits(bool oscillation, bool speed) : oscillation_(false), speed_(speed) {}
|
||||
FanTraits(bool oscillation, bool speed) : oscillation_(oscillation), speed_(speed) {}
|
||||
|
||||
/// Return if this fan supports oscillation.
|
||||
bool supports_oscillation() const { return this->oscillation_; }
|
||||
|
|
Loading…
Reference in a new issue