[number] Reduce NumberCall size by 4 bytes on 32-bit platforms (#12178)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2025-11-28 21:57:36 -06:00
committed by GitHub
parent 5fa4ff754c
commit 2174795b27

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,9 +38,9 @@ class NumberCall {
float limit);
Number *const parent_;
NumberOperation operation_{NUMBER_OP_NONE};
optional<float> value_;
bool cycle_;
NumberOperation operation_{NUMBER_OP_NONE};
bool cycle_{false};
};
} // namespace esphome::number