mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 02:04:13 +01:00
Avoid sensor padding. (#4638)
Co-authored-by: Your Name <you@example.com>
This commit is contained in:
parent
4faa9d109e
commit
79f861f012
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,6 @@ class Sensor : public EntityBase {
|
|||
CallbackManager<void(float)> raw_callback_; ///< Storage for raw state callbacks.
|
||||
CallbackManager<void(float)> callback_; ///< Storage for filtered state callbacks.
|
||||
|
||||
bool has_state_{false};
|
||||
Filter *filter_list_{nullptr}; ///< Store all active filters.
|
||||
|
||||
optional<std::string> unit_of_measurement_; ///< Unit of measurement override
|
||||
|
@ -169,6 +168,7 @@ class Sensor : public EntityBase {
|
|||
optional<std::string> device_class_; ///< Device class override
|
||||
optional<StateClass> state_class_{STATE_CLASS_NONE}; ///< State class override
|
||||
bool force_update_{false}; ///< Force update mode
|
||||
bool has_state_{false};
|
||||
};
|
||||
|
||||
} // namespace sensor
|
||||
|
|
Loading…
Reference in a new issue