cleanup
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user