ESPHome  2024.12.0
switch_binary_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../switch.h"
6 
7 namespace esphome {
8 namespace switch_ {
9 
11  public:
12  void set_source(Switch *source) { source_ = source; }
13  void setup() override;
14  void dump_config() override;
15  float get_setup_priority() const override { return setup_priority::DATA; }
16 
17  protected:
19 };
20 
21 } // namespace switch_
22 } // namespace esphome
Base class for all switches.
Definition: switch.h:39
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base class for all binary_sensor-type classes.
Definition: binary_sensor.h:37