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