ESPHome  2024.12.2
switch.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "esphome/core/log.h"
6 
7 namespace esphome {
8 namespace opentherm {
9 
10 class OpenthermSwitch : public switch_::Switch, public Component {
11  protected:
12  void write_state(bool state) override;
13 
14  public:
15  void setup() override;
16  void dump_config() override;
17 };
18 
19 } // namespace opentherm
20 } // namespace esphome
Base class for all switches.
Definition: switch.h:39
void write_state(bool state) override
Definition: switch.cpp:8
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
bool state
The current reported state of the binary sensor.
Definition: switch.h:53