Fix fan fixture: use C++17 namespace style

This commit is contained in:
J. Nick Koston
2026-03-26 15:25:13 -10:00
parent c8d842586a
commit 576b1c3ff0
@@ -3,8 +3,7 @@
#include "esphome/components/fan/fan.h"
#include "esphome/core/component.h"
namespace esphome {
namespace legacy_fan_test {
namespace esphome::legacy_fan_test {
/// Test fan that uses the DEPRECATED FanTraits setters for preset modes.
/// This validates backward compatibility for external components that haven't migrated.
@@ -45,5 +44,4 @@ class LegacyFan : public fan::Fan, public Component {
}
};
} // namespace legacy_fan_test
} // namespace esphome
} // namespace esphome::legacy_fan_test