[binary_sensor] Modernize to C++17 nested namespaces and remove redundant qualifications

This commit is contained in:
J. Nick Koston
2025-11-15 21:32:46 -06:00
parent 1df996601d
commit 6d03afecd0
6 changed files with 18 additions and 37 deletions

View File

@@ -6,9 +6,7 @@
#include <initializer_list>
namespace esphome {
namespace binary_sensor {
namespace esphome::binary_sensor {
class BinarySensor;
void log_binary_sensor(const char *tag, const char *prefix, const char *type, BinarySensor *obj);
@@ -70,5 +68,4 @@ class BinarySensorInitiallyOff : public BinarySensor {
bool has_state() const override { return true; }
};
} // namespace binary_sensor
} // namespace esphome
} // namespace esphome::binary_sensor