69 std::string get_device_class();
71 void set_device_class(
const char *device_class);
74 const char *device_class_{
nullptr};
80 std::string get_unit_of_measurement();
82 void set_unit_of_measurement(
const char *unit_of_measurement);
85 const char *unit_of_measurement_{
nullptr};
bool has_own_name() const
void set_disabled_by_default(bool disabled_by_default)
virtual uint32_t hash_base()
The hash_base() function has been deprecated.
void set_internal(bool internal)
bool disabled_by_default_
StringRef is a reference to a string owned by something else.
void set_name(const char *name)
void set_object_id(const char *object_id)
std::string get_object_id() const
std::string get_icon() const
EntityCategory entity_category_
EntityCategory get_entity_category() const
Implementation of SPI Controller mode.
void set_icon(const char *icon)
const char * object_id_c_str_
bool is_disabled_by_default() const
uint32_t get_object_id_hash()
void set_entity_category(EntityCategory entity_category)
const StringRef & get_name() const