ESPHome
2024.11.0
|
#include <entity_base.h>
Public Member Functions | |
std::string | get_unit_of_measurement () |
Get the unit of measurement, using the manual override if set. More... | |
void | set_unit_of_measurement (const char *unit_of_measurement) |
Manually set the unit of measurement. More... | |
Protected Attributes | |
const char * | unit_of_measurement_ {nullptr} |
Unit of measurement override. More... | |
Definition at line 77 of file entity_base.h.
std::string esphome::EntityBase_UnitOfMeasurement::get_unit_of_measurement | ( | ) |
Get the unit of measurement, using the manual override if set.
Definition at line 87 of file entity_base.cpp.
void esphome::EntityBase_UnitOfMeasurement::set_unit_of_measurement | ( | const char * | unit_of_measurement | ) |
Manually set the unit of measurement.
Definition at line 92 of file entity_base.cpp.
|
protected |
Unit of measurement override.
Definition at line 85 of file entity_base.h.