[clang-tidy] Concatenate nested namespaces (6/7: components t-z) (#16305)

This commit is contained in:
Jonathan Swoboda authored and GitHub committed 2026-05-08 01:13:38 +00:00
1 parent ded83812f4
commit 6ffcb821ca
226 files changed
+458 -903

No files matched your search

@@ -1,7 +1,6 @@
#include "tm1638_key.h"
namespace esphome {
namespace tm1638 {
namespace esphome::tm1638 {
void TM1638Key::keys_update(uint8_t keys) {
bool pressed = keys & (1 << key_code_);
@@ -9,5 +8,4 @@ void TM1638Key::keys_update(uint8_t keys) {
this->publish_state(pressed);
}
} // namespace tm1638
} // namespace esphome
} // namespace esphome::tm1638
@@ -3,8 +3,7 @@
#include "esphome/components/binary_sensor/binary_sensor.h"
#include "../tm1638.h"
namespace esphome {
namespace tm1638 {
namespace esphome::tm1638 {
class TM1638Key : public binary_sensor::BinarySensor, public KeyListener {
public:
@@ -15,5 +14,4 @@ class TM1638Key : public binary_sensor::BinarySensor, public KeyListener {
uint8_t key_code_{0};
};
} // namespace tm1638
} // namespace esphome
} // namespace esphome::tm1638