ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
ld6002b_switch.h
Go to the documentation of this file.
1#pragma once
2
4#include "../ld6002b.h"
5
6namespace esphome::ld6002b {
7
8class LD6002BSwitch : public switch_::Switch, public Parented<LD6002BComponent> {
9 public:
11
12 protected:
13 void write_state(bool state) override;
14
16};
17
18} // namespace esphome::ld6002b
Helper class to easily give an object a parent of type T.
Definition helpers.h:1907
void write_state(bool state) override
Base class for all switches.
Definition switch.h:38
bool state
The current reported state of the binary sensor.
Definition switch.h:55
uint16_t type