ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
rf_switch.h
Go to the documentation of this file.
1#pragma once
2
4#include "../at581x.h"
5
6namespace esphome::at581x {
7
8class RFSwitch : public switch_::Switch, public Parented<AT581XComponent> {
9 protected:
10 void write_state(bool state) override;
11};
12
13} // namespace esphome::at581x
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
void write_state(bool state) override
Definition rf_switch.cpp:5
Base class for all switches.
Definition switch.h:38
bool state
The current reported state of the binary sensor.
Definition switch.h:55