mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 15:12:21 +01:00
[api] Use C++17 nested namespace syntax (#9856)
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
#ifdef USE_API_SERVICES
|
||||
#include "user_services.h"
|
||||
#endif
|
||||
namespace esphome {
|
||||
namespace api {
|
||||
namespace esphome::api {
|
||||
|
||||
#ifdef USE_API_SERVICES
|
||||
template<typename T, typename... Ts> class CustomAPIDeviceService : public UserServiceBase<Ts...> {
|
||||
@@ -222,6 +221,5 @@ class CustomAPIDevice {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace api
|
||||
} // namespace esphome
|
||||
} // namespace esphome::api
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user