1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-08 21:03:49 +01:00

[tormatic] Fix clang-tidy sign comparison error (#11075)

This commit is contained in:
J. Nick Koston
2025-10-06 13:14:52 -05:00
committed by GitHub
parent 3d82301c3d
commit fdd422c42a

View File

@@ -251,7 +251,7 @@ void Tormatic::stop_at_target_() {
// Read a GateStatus from the unit. The unit only sends messages in response to // Read a GateStatus from the unit. The unit only sends messages in response to
// status requests or commands, so a message needs to be sent first. // status requests or commands, so a message needs to be sent first.
optional<GateStatus> Tormatic::read_gate_status_() { optional<GateStatus> Tormatic::read_gate_status_() {
if (this->available() < sizeof(MessageHeader)) { if (this->available() < static_cast<int>(sizeof(MessageHeader))) {
return {}; return {};
} }