std::string get_device_class()
Get the device class, using the manual override if set.
void set_device_class(const char *device_class)
Manually set the device class.
const char * device_class_
Device class override.
std::string get_unit_of_measurement()
Get the unit of measurement, using the manual override if set.
const char * unit_of_measurement_
Unit of measurement override.
void set_unit_of_measurement(const char *unit_of_measurement)
Manually set the unit of measurement.
void set_object_id(const char *object_id)
bool has_own_name() const
const char * object_id_c_str_
uint32_t get_object_id_hash()
const StringRef & get_name() const
void set_entity_category(EntityCategory entity_category)
std::string get_icon() const
bool is_disabled_by_default() const
EntityCategory entity_category_
void set_name(const char *name)
void set_icon(const char *icon)
void set_disabled_by_default(bool disabled_by_default)
virtual uint32_t hash_base()
The hash_base() function has been deprecated.
bool disabled_by_default_
std::string get_object_id() const
EntityCategory get_entity_category() const
void set_internal(bool internal)
StringRef is a reference to a string owned by something else.
Providing packet encoding functions for exchanging data with a remote host.
@ ENTITY_CATEGORY_DIAGNOSTIC