mirror of
https://github.com/esphome/esphome.git
synced 2024-12-27 07:51:43 +01:00
fix clang
This commit is contained in:
parent
4ae6b8bcbf
commit
94ce0576cf
2 changed files with 4 additions and 2 deletions
|
@ -141,7 +141,7 @@ struct ClimateDeviceRestoreState {
|
|||
float target_temperature_low;
|
||||
float target_temperature_high;
|
||||
};
|
||||
};
|
||||
} __attribute__((packed));
|
||||
float target_humidity;
|
||||
|
||||
/// Convert this struct to a climate call that can be performed.
|
||||
|
|
|
@ -37,7 +37,9 @@ class RealTimeClock : public PollingComponent {
|
|||
|
||||
void call_setup() override;
|
||||
|
||||
void add_on_time_sync_callback(const std::function<void()> &callback) { this->time_sync_callback_.add(callback); };
|
||||
void add_on_time_sync_callback(std::function<void()> &&callback) {
|
||||
this->time_sync_callback_.add(std::move(callback));
|
||||
};
|
||||
|
||||
protected:
|
||||
/// Report a unix epoch as current time.
|
||||
|
|
Loading…
Reference in a new issue