1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 04:12:23 +01:00

Add deprecated attribute to some deprecated types/methods (#2185)

This commit is contained in:
Oxan van Leeuwen
2021-08-23 20:48:12 +02:00
committed by GitHub
parent 71237e2f76
commit 1c1ad32610
6 changed files with 19 additions and 10 deletions

View File

@@ -289,6 +289,7 @@ void APIConnection::fan_command(const FanCommandRequest &msg) {
// Prefer level
call.set_speed(msg.speed_level);
} else if (msg.has_speed) {
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
call.set_speed(fan::speed_enum_to_level(static_cast<fan::FanSpeed>(msg.speed), traits.supported_speed_count()));
}
if (msg.has_direction)