mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	fix clang
This commit is contained in:
		| @@ -141,7 +141,7 @@ struct ClimateDeviceRestoreState { | |||||||
|       float target_temperature_low; |       float target_temperature_low; | ||||||
|       float target_temperature_high; |       float target_temperature_high; | ||||||
|     }; |     }; | ||||||
|   }; |   } __attribute__((packed)); | ||||||
|   float target_humidity; |   float target_humidity; | ||||||
|  |  | ||||||
|   /// Convert this struct to a climate call that can be performed. |   /// Convert this struct to a climate call that can be performed. | ||||||
|   | |||||||
| @@ -37,7 +37,9 @@ class RealTimeClock : public PollingComponent { | |||||||
|  |  | ||||||
|   void call_setup() override; |   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: |  protected: | ||||||
|   /// Report a unix epoch as current time. |   /// Report a unix epoch as current time. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user