From 53986279d714108e7096407e8891b73afc7046b0 Mon Sep 17 00:00:00 2001 From: Jim Persson Date: Tue, 19 May 2020 00:14:20 +0200 Subject: [PATCH] Fix fan oscillation trait not being used (#1048) --- esphome/components/fan/fan_traits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/fan/fan_traits.h b/esphome/components/fan/fan_traits.h index 67b0e33e88..c46adbf013 100644 --- a/esphome/components/fan/fan_traits.h +++ b/esphome/components/fan/fan_traits.h @@ -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_; }