mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:25:35 +00:00
20 lines
436 B
C++
20 lines
436 B
C++
#pragma once
|
|
#include "esphome/core/defines.h"
|
|
#ifdef USE_ZIGBEE
|
|
#ifdef USE_ESP32
|
|
#include "zigbee_esp32.h"
|
|
#endif
|
|
#ifdef USE_NRF52
|
|
#include "zigbee_zephyr.h"
|
|
#endif
|
|
namespace esphome::zigbee {
|
|
|
|
template<typename... Ts> class FactoryResetAction final : public Action<Ts...>, public Parented<ZigbeeComponent> {
|
|
public:
|
|
void play(const Ts &...x) override { this->parent_->factory_reset(); }
|
|
};
|
|
|
|
} // namespace esphome::zigbee
|
|
|
|
#endif
|