|
ESPHome 2025.12.0-dev
|
#include <number_traits.h>
Public Member Functions | |
| void | set_min_value (float min_value) |
| float | get_min_value () const |
| void | set_max_value (float max_value) |
| float | get_max_value () const |
| void | set_step (float step) |
| float | get_step () const |
| void | set_mode (NumberMode mode) |
| NumberMode | get_mode () const |
Public Member Functions inherited from esphome::EntityBase_DeviceClass | |
| ESPDEPRECATED("Use get_device_class_ref() instead for better performance (avoids string copy). Will be removed in " "ESPHome 2026.5.0", "2025.11.0") std void | set_device_class (const char *device_class) |
| Get the device class, using the manual override if set. | |
| StringRef | get_device_class_ref () const |
| Get the device class as StringRef. | |
Public Member Functions inherited from esphome::EntityBase_UnitOfMeasurement | |
| ESPDEPRECATED("Use get_unit_of_measurement_ref() instead for better performance (avoids string copy). Will be " "removed in ESPHome 2026.5.0", "2025.11.0") std void | set_unit_of_measurement (const char *unit_of_measurement) |
| Get the unit of measurement, using the manual override if set. | |
| StringRef | get_unit_of_measurement_ref () const |
| Get the unit of measurement as StringRef. | |
Protected Attributes | |
| float | min_value_ = NAN |
| float | max_value_ = NAN |
| float | step_ = NAN |
| NumberMode | mode_ {NUMBER_MODE_AUTO} |
Protected Attributes inherited from esphome::EntityBase_DeviceClass | |
| const char * | device_class_ {nullptr} |
| Device class override. | |
Protected Attributes inherited from esphome::EntityBase_UnitOfMeasurement | |
| const char * | unit_of_measurement_ {nullptr} |
| Unit of measurement override. | |
Definition at line 15 of file number_traits.h.
|
inline |
Definition at line 21 of file number_traits.h.
|
inline |
Definition at line 19 of file number_traits.h.
|
inline |
Definition at line 29 of file number_traits.h.
|
inline |
Definition at line 25 of file number_traits.h.
|
inline |
Definition at line 20 of file number_traits.h.
|
inline |
Definition at line 18 of file number_traits.h.
|
inline |
Definition at line 28 of file number_traits.h.
|
inline |
Definition at line 24 of file number_traits.h.
|
protected |
Definition at line 33 of file number_traits.h.
|
protected |
Definition at line 32 of file number_traits.h.
|
protected |
Definition at line 35 of file number_traits.h.
|
protected |
Definition at line 34 of file number_traits.h.