mirror of
https://github.com/esphome/esphome.git
synced 2025-11-18 15:55:46 +00:00
[api] Use C++17 nested namespace syntax (#9856)
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
#include "api_pb2.h"
|
||||
|
||||
#ifdef USE_API_SERVICES
|
||||
namespace esphome {
|
||||
namespace api {
|
||||
namespace esphome::api {
|
||||
|
||||
class UserServiceDescriptor {
|
||||
public:
|
||||
@@ -74,6 +73,5 @@ template<typename... Ts> class UserServiceTrigger : public UserServiceBase<Ts...
|
||||
void execute(Ts... x) override { this->trigger(x...); } // NOLINT
|
||||
};
|
||||
|
||||
} // namespace api
|
||||
} // namespace esphome
|
||||
} // namespace esphome::api
|
||||
#endif // USE_API_SERVICES
|
||||
|
||||
Reference in New Issue
Block a user