ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
3#ifdef USE_ZIGBEE
4#ifdef USE_ESP32
5#include "zigbee_esp32.h"
6#endif
7#ifdef USE_NRF52
8#include "zigbee_zephyr.h"
9#endif
10namespace esphome::zigbee {
11
12template<typename... Ts> class FactoryResetAction : public Action<Ts...>, public Parented<ZigbeeComponent> {
13 public:
14 void play(const Ts &...x) override { this->parent_->factory_reset(); }
15};
16
17} // namespace esphome::zigbee
18
19#endif
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
void play(const Ts &...x) override
Definition automation.h:14
uint16_t x
Definition tt21100.cpp:5