ESPHome  2024.3.2
dfrobot_sen0395_switch.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include "../dfrobot_sen0395.h"
7 
8 namespace esphome {
9 namespace dfrobot_sen0395 {
10 
11 class DfrobotSen0395Switch : public switch_::Switch, public Component, public Parented<DfrobotSen0395Component> {};
12 
14  public:
15  void write_state(bool state) override;
16 };
17 
19  public:
20  void write_state(bool state) override;
21 };
22 
24  public:
25  void write_state(bool state) override;
26 };
27 
29  public:
30  void write_state(bool state) override;
31 };
32 
33 } // namespace dfrobot_sen0395
34 } // namespace esphome
Base class for all switches.
Definition: switch.h:39
virtual void write_state(bool state)=0
Write the given state to hardware.
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
bool state
The current reported state of the binary sensor.
Definition: switch.h:53
Helper class to easily give an object a parent of type T.
Definition: helpers.h:515