ESPHome
2024.10.3
|
#include <entity_base.h>
Public Member Functions | |
std::string | get_device_class () |
Get the device class, using the manual override if set. More... | |
void | set_device_class (const char *device_class) |
Manually set the device class. More... | |
Protected Attributes | |
const char * | device_class_ {nullptr} |
Device class override. More... | |
Definition at line 66 of file entity_base.h.
std::string esphome::EntityBase_DeviceClass::get_device_class | ( | ) |
Get the device class, using the manual override if set.
Definition at line 78 of file entity_base.cpp.
void esphome::EntityBase_DeviceClass::set_device_class | ( | const char * | device_class | ) |
Manually set the device class.
Definition at line 85 of file entity_base.cpp.
|
protected |
Device class override.
Definition at line 74 of file entity_base.h.