Avoid sensor padding. (#4638)

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
Fabian 2023-03-31 06:29:17 +02:00 committed by GitHub
parent 4faa9d109e
commit 79f861f012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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