1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-16 14:55:50 +00:00

[ai] simplify namespace syntax (#11824)

This commit is contained in:
Thomas Rupprecht
2025-11-11 00:33:34 +01:00
committed by GitHub
parent e46300828e
commit 40e2976ba2

View File

@@ -172,8 +172,7 @@ This document provides essential context for AI models interacting with this pro
* **C++ Class Pattern:** * **C++ Class Pattern:**
```cpp ```cpp
namespace esphome { namespace esphome::my_component {
namespace my_component {
class MyComponent : public Component { class MyComponent : public Component {
public: public:
@@ -189,8 +188,7 @@ This document provides essential context for AI models interacting with this pro
int param_{0}; int param_{0};
}; };
} // namespace my_component } // namespace esphome::my_component
} // namespace esphome
``` ```
* **Common Component Examples:** * **Common Component Examples:**