mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 06:36:45 +00:00
[time] fix clang-tidy (#9292)
This commit is contained in:
parent
9b3ece4caf
commit
60eac6ea07
@ -40,7 +40,7 @@ class RealTimeClock : public PollingComponent {
|
|||||||
/// Get the current time as the UTC epoch since January 1st 1970.
|
/// Get the current time as the UTC epoch since January 1st 1970.
|
||||||
time_t timestamp_now() { return ::time(nullptr); }
|
time_t timestamp_now() { return ::time(nullptr); }
|
||||||
|
|
||||||
void add_on_time_sync_callback(std::function<void()> callback) {
|
void add_on_time_sync_callback(std::function<void()> &&callback) {
|
||||||
this->time_sync_callback_.add(std::move(callback));
|
this->time_sync_callback_.add(std::move(callback));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user