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

This commit is contained in:
Oxan van Leeuwen authored and GitHub committed 2021-08-24 06:48:12 +12:00
1 parent 71237e2f76
commit 1c1ad32610
6 files changed
+19 -10

No files matched your search

@@ -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)