[api] Use C++17 nested namespace syntax (#9856)

This commit is contained in:
J. Nick Koston
2025-07-24 07:15:42 +00:00
committed by GitHub
parent 705ea4ebaa
commit c74f12be98
27 changed files with 62 additions and 124 deletions
+2 -4
View File
@@ -7,8 +7,7 @@
#ifdef HAS_PROTO_MESSAGE_DUMP
namespace esphome {
namespace api {
namespace esphome::api {
// Helper function to append a quoted string, handling empty StringRef
static inline void append_quoted_string(std::string &out, const StringRef &ref) {
@@ -2067,7 +2066,6 @@ void UpdateCommandRequest::dump_to(std::string &out) const {
}
#endif
} // namespace api
} // namespace esphome
} // namespace esphome::api
#endif // HAS_PROTO_MESSAGE_DUMP