This commit is contained in:
J. Nick Koston
2025-05-13 21:22:30 -05:00
parent edd755323c
commit c8dcebfb3f
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ class DateTimeBase : public EntityBase {
void add_on_state_callback(std::function<void()> &&callback) { this->state_callback_.add(std::move(callback)); }
virtual const char *get_component_type() const override = 0;
const char *get_component_type() const override = 0;
#ifdef USE_TIME
void set_rtc(time::RealTimeClock *rtc) { this->rtc_ = rtc; }

View File

@@ -143,7 +143,7 @@ class Sensor : public EntityBase, public EntityBase_DeviceClass, public EntityBa
*
* @deprecated Do not use for new sensors, a suitable unique ID is automatically generated (2023.4).
*/
virtual std::string unique_id();
std::string unique_id() override;
// Get the component type for this entity
const char *get_component_type() const override;

View File

@@ -65,7 +65,7 @@ class TextSensor : public EntityBase, public EntityBase_DeviceClass {
*
* @deprecated Do not use for new sensors, a suitable unique ID is automatically generated (2023.4).
*/
virtual std::string unique_id();
std::string unique_id() override;
bool has_state();