[safe_mode] Mark SafeModeComponent and SafeModeTrigger as final (#14282)
This commit is contained in:
1 parent
d52f8c9c6f
commit
962cbfb9d8
2 files changed
+2
-2
No files matched your search
@@ -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