ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
dfrobot_sen0395_switch.h
Go to the documentation of this file.
1#pragma once
2
5
7
9
10class DfrobotSen0395Switch : public switch_::Switch, public Component, public Parented<DfrobotSen0395Component> {};
11
13 public:
14 void write_state(bool state) override;
15};
16
18 public:
19 void write_state(bool state) override;
20};
21
23 public:
24 void write_state(bool state) override;
25};
26
28 public:
29 void write_state(bool state) override;
30};
31
32} // namespace esphome::dfrobot_sen0395
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
Base class for all switches.
Definition switch.h:38
bool state
The current reported state of the binary sensor.
Definition switch.h:55