mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00:00
Fix fan fixture: use C++17 namespace style
This commit is contained in:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user