[clang-tidy] Concatenate nested namespaces (1/7: components a-c) (#16294)

This commit is contained in:
Jonathan Swoboda
2026-05-07 14:21:39 -04:00
committed by GitHub
parent 71193e2b2c
commit 06bd92c388
259 changed files with 520 additions and 1037 deletions
@@ -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