fix clang

This commit is contained in:
Tomasz Duda 2024-07-24 19:38:03 +02:00
parent 4ae6b8bcbf
commit 94ce0576cf
2 changed files with 4 additions and 2 deletions

View file

@ -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.

View file

@ -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.