mirror of
https://github.com/esphome/esphome.git
synced 2026-02-26 05:53:12 -07:00
Merge branch 'safe-mode-mark-final' into integration
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
namespace esphome::safe_mode {
|
||||
|
||||
class SafeModeTrigger : public Trigger<> {
|
||||
class SafeModeTrigger final : public Trigger<> {
|
||||
public:
|
||||
explicit SafeModeTrigger(SafeModeComponent *parent) {
|
||||
parent->add_on_safe_mode_callback([this]() { trigger(); });
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace esphome::safe_mode {
|
||||
constexpr uint32_t RTC_KEY = 233825507UL;
|
||||
|
||||
/// SafeModeComponent provides a safe way to recover from repeated boot failures
|
||||
class SafeModeComponent : public Component {
|
||||
class SafeModeComponent final : public Component {
|
||||
public:
|
||||
bool should_enter_safe_mode(uint8_t num_attempts, uint32_t enable_time, uint32_t boot_is_good_after);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user