mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 04:48:27 +02: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