1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 16:25:50 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
J. Nick Koston
99acc62c3b [lock] Modernize to C++17 nested namespaces 2025-11-18 14:51:37 -06:00
3 changed files with 6 additions and 12 deletions

View File

@@ -4,8 +4,7 @@
#include "esphome/core/automation.h"
#include "esphome/core/component.h"
namespace esphome {
namespace lock {
namespace esphome::lock {
template<typename... Ts> class LockAction : public Action<Ts...> {
public:
@@ -72,5 +71,4 @@ class LockUnlockTrigger : public Trigger<> {
}
};
} // namespace lock
} // namespace esphome
} // namespace esphome::lock

View File

@@ -3,8 +3,7 @@
#include "esphome/core/controller_registry.h"
#include "esphome/core/log.h"
namespace esphome {
namespace lock {
namespace esphome::lock {
static const char *const TAG = "lock";
@@ -108,5 +107,4 @@ LockCall &LockCall::set_state(const std::string &state) {
}
const optional<LockState> &LockCall::get_state() const { return this->state_; }
} // namespace lock
} // namespace esphome
} // namespace esphome::lock

View File

@@ -7,8 +7,7 @@
#include "esphome/core/preferences.h"
#include <initializer_list>
namespace esphome {
namespace lock {
namespace esphome::lock {
class Lock;
@@ -177,5 +176,4 @@ class Lock : public EntityBase {
ESPPreferenceObject rtc_;
};
} // namespace lock
} // namespace esphome
} // namespace esphome::lock