mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 13:12:22 +01:00
Fix fan oscillation trait not being used (#1048)
This commit is contained in:
@@ -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_; }
|
||||||
|
Reference in New Issue
Block a user