Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick+github@koston.org> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
17 lines
380 B
C++
17 lines
380 B
C++
#pragma once
|
|
#include "esphome/core/defines.h"
|
|
#ifdef USE_ZIGBEE
|
|
#ifdef USE_NRF52
|
|
#include "zigbee_zephyr.h"
|
|
#endif
|
|
namespace esphome::zigbee {
|
|
|
|
template<typename... Ts> class FactoryResetAction : public Action<Ts...>, public Parented<ZigbeeComponent> {
|
|
public:
|
|
void play(const Ts &...x) override { this->parent_->factory_reset(); }
|
|
};
|
|
|
|
} // namespace esphome::zigbee
|
|
|
|
#endif
|