mirror of
https://github.com/esphome/esphome.git
synced 2025-11-18 07:45:56 +00:00
Sun support (#531)
* Sun * Add sun support * Lint * Updates * Fix elevation * Lint * Update mqtt_climate.cpp
This commit is contained in:
@@ -294,8 +294,6 @@ void HighFrequencyLoopRequester::stop() {
|
||||
bool HighFrequencyLoopRequester::is_high_frequency() { return high_freq_num_requests > 0; }
|
||||
|
||||
float clamp(float val, float min, float max) {
|
||||
if (min > max)
|
||||
std::swap(min, max);
|
||||
if (val < min)
|
||||
return min;
|
||||
if (val > max)
|
||||
|
||||
Reference in New Issue
Block a user