9 enum ESPDEPRECATED(
"LegacyFanDirection members are deprecated, use FanDirection instead.",
10 "2022.2") LegacyFanDirection {
15 class ESPDEPRECATED("FanState is deprecated, use Fan instead.", "2022.2") FanState :
public Fan,
public Component {
20 FanTraits get_traits()
override {
return this->traits_; }
22 void set_traits(
const FanTraits &traits) { this->traits_ = traits; }
24 void setup()
override;
25 float get_setup_priority()
const override;
28 void control(
const FanCall &call)
override { this->publish_state(); }
Implementation of SPI Controller mode.
enum ESPDEPRECATED("LegacyFanDirection members are deprecated, use FanDirection instead.", "2022.2") LegacyFanDirection