mirror of
https://github.com/esphome/esphome.git
synced 2026-09-26 14:30:23 +00:00
[clang-tidy] Concatenate nested namespaces (1/7: components a-c) (#16294)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#include "binary_sensor_map.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace binary_sensor_map {
|
||||
namespace esphome::binary_sensor_map {
|
||||
|
||||
static const char *const TAG = "binary_sensor_map";
|
||||
|
||||
@@ -138,5 +137,4 @@ void BinarySensorMap::add_channel(binary_sensor::BinarySensor *sensor, float pro
|
||||
};
|
||||
this->channels_.push_back(sensor_channel);
|
||||
}
|
||||
} // namespace binary_sensor_map
|
||||
} // namespace esphome
|
||||
} // namespace esphome::binary_sensor_map
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace esphome {
|
||||
namespace binary_sensor_map {
|
||||
namespace esphome::binary_sensor_map {
|
||||
|
||||
enum BinarySensorMapType {
|
||||
BINARY_SENSOR_MAP_TYPE_GROUP,
|
||||
@@ -96,5 +95,4 @@ class BinarySensorMap : public sensor::Sensor, public Component {
|
||||
float bayesian_predicate_(bool sensor_state, float prior, float prob_given_true, float prob_given_false);
|
||||
};
|
||||
|
||||
} // namespace binary_sensor_map
|
||||
} // namespace esphome
|
||||
} // namespace esphome::binary_sensor_map
|
||||
|
||||
Reference in New Issue
Block a user