mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +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 {
|
class FanTraits {
|
||||||
public:
|
public:
|
||||||
FanTraits() = default;
|
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.
|
/// Return if this fan supports oscillation.
|
||||||
bool supports_oscillation() const { return this->oscillation_; }
|
bool supports_oscillation() const { return this->oscillation_; }
|
||||||
|
|
Loading…
Reference in a new issue