mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 08:50:22 +00:00
[clang-tidy] Concatenate nested namespaces (1/7: components a-c) (#16294)
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
|
||||
#define BME280_ERROR_WRONG_CHIP_ID "Wrong chip ID or no response"
|
||||
|
||||
namespace esphome {
|
||||
namespace bme280_base {
|
||||
namespace esphome::bme280_base {
|
||||
|
||||
static const char *const TAG = "bme280.sensor";
|
||||
|
||||
@@ -355,5 +354,4 @@ uint16_t BME280Component::read_u16_le_(uint8_t a_register) {
|
||||
}
|
||||
int16_t BME280Component::read_s16_le_(uint8_t a_register) { return this->read_u16_le_(a_register); }
|
||||
|
||||
} // namespace bme280_base
|
||||
} // namespace esphome
|
||||
} // namespace esphome::bme280_base
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/components/sensor/sensor.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace bme280_base {
|
||||
namespace esphome::bme280_base {
|
||||
|
||||
/// Internal struct storing the calibration values of an BME280.
|
||||
struct BME280CalibrationData {
|
||||
@@ -109,5 +108,4 @@ class BME280Component : public PollingComponent {
|
||||
} error_code_{NONE};
|
||||
};
|
||||
|
||||
} // namespace bme280_base
|
||||
} // namespace esphome
|
||||
} // namespace esphome::bme280_base
|
||||
|
||||
Reference in New Issue
Block a user