[template] Use C++17 nested namespace syntax (#12346)
This commit is contained in:
1 parent
f015130f2e
commit
3d5d89ff00
35 files changed
+70
-140
No files matched your search
@@ -1,8 +1,7 @@
|
||||
#include "template_binary_sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace template_ {
|
||||
namespace esphome::template_ {
|
||||
|
||||
static const char *const TAG = "template.binary_sensor";
|
||||
|
||||
@@ -23,5 +22,4 @@ void TemplateBinarySensor::loop() {
|
||||
|
||||
void TemplateBinarySensor::dump_config() { LOG_BINARY_SENSOR("", "Template Binary Sensor", this); }
|
||||
|
||||
} // namespace template_
|
||||
} // namespace esphome
|
||||
} // namespace esphome::template_
|
||||
@@ -4,8 +4,7 @@
|
||||
#include "esphome/core/template_lambda.h"
|
||||
#include "esphome/components/binary_sensor/binary_sensor.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace template_ {
|
||||
namespace esphome::template_ {
|
||||
|
||||
class TemplateBinarySensor final : public Component, public binary_sensor::BinarySensor {
|
||||
public:
|
||||
@@ -21,5 +20,4 @@ class TemplateBinarySensor final : public Component, public binary_sensor::Binar
|
||||
TemplateLambda<bool> f_;
|
||||
};
|
||||
|
||||
} // namespace template_
|
||||
} // namespace esphome
|
||||
} // namespace esphome::template_
|
||||
Reference in new issue
Block a user