[button] Convert to C++17 nested namespace style (#12233)

Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
J. Nick Koston
2025-12-01 17:50:29 -05:00
committed by GitHub
co-authored by Keith Burzinski
parent d332edfaca
commit 96f28f0ab4
3 changed files with 6 additions and 12 deletions
+2 -4
View File
@@ -1,8 +1,7 @@
#include "button.h"
#include "esphome/core/log.h"
namespace esphome {
namespace button {
namespace esphome::button {
static const char *const TAG = "button";
@@ -26,5 +25,4 @@ void Button::press() {
}
void Button::add_on_press_callback(std::function<void()> &&callback) { this->press_callback_.add(std::move(callback)); }
} // namespace button
} // namespace esphome
} // namespace esphome::button