[binary_sensor] Modernize to C++17 nested namespaces and remove redundant qualifications (#11929)

This commit is contained in:
J. Nick Koston
2025-11-15 22:21:06 -06:00
committed by GitHub
parent fc546ca3f6
commit ea2b4c3e25
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