diff --git a/esphome/core/entity_base.h b/esphome/core/entity_base.h index 86d695add8..60db74e616 100644 --- a/esphome/core/entity_base.h +++ b/esphome/core/entity_base.h @@ -48,7 +48,7 @@ class EntityBase { void set_icon(const char *icon); // Get/set this entity's device id - const uint32_t get_device_uid() const { return this->device_uid_; } + uint32_t get_device_uid() const { return this->device_uid_; } void set_device_uid(const uint32_t device_uid) { this->device_uid_ = device_uid; } protected: