[switch] Use C++17 nested namespace syntax (#14241)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-02-23 20:49:15 -05:00
1 parent 30cc51eac9
commit 843d06df3f
6 files changed
+16 -28

No files matched your search

+2 -4
View File
@@ -3,8 +3,7 @@
#include "esphome/core/controller_registry.h"
#include "esphome/core/log.h"
namespace esphome {
namespace switch_ {
namespace esphome::switch_ {
static const char *const TAG = "switch";
@@ -107,5 +106,4 @@ void log_switch(const char *tag, const char *prefix, const char *type, Switch *o
}
}
} // namespace switch_
} // namespace esphome
} // namespace esphome::switch_