[number] Reduce NumberCall size by 4 bytes on 32-bit platforms

This commit is contained in:
J. Nick Koston
2025-11-28 21:15:09 -06:00
parent bc50be6053
commit 4e379ab235
+2 -2
View File
@@ -8,7 +8,7 @@ namespace esphome::number {
class Number;
enum NumberOperation {
enum NumberOperation : uint8_t {
NUMBER_OP_NONE,
NUMBER_OP_SET,
NUMBER_OP_INCREMENT,
@@ -38,8 +38,8 @@ class NumberCall {
float limit);
Number *const parent_;
NumberOperation operation_{NUMBER_OP_NONE};
optional<float> value_;
NumberOperation operation_{NUMBER_OP_NONE};
bool cycle_;
};