1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-01 00:08:15 +00:00

clang-format

This commit is contained in:
Edward Firmo 2024-12-09 19:41:21 +01:00
parent 17919fdf9a
commit fa437896a1
3 changed files with 4 additions and 8 deletions

View File

@ -18,9 +18,7 @@ void ADCSensor::set_sample_count(uint8_t sample_count) {
} }
} }
float ADCSensor::get_setup_priority() const { float ADCSensor::get_setup_priority() const { return setup_priority::DATA; }
return setup_priority::DATA;
}
} // namespace adc } // namespace adc
} // namespace esphome } // namespace esphome

View File

@ -50,9 +50,7 @@ float ADCSensor::sample() {
return raw / 1024.0f; return raw / 1024.0f;
} }
std::string ADCSensor::unique_id() { std::string ADCSensor::unique_id() { return get_mac_address() + "-adc"; }
return get_mac_address() + "-adc";
}
} // namespace adc } // namespace adc
} // namespace esphome } // namespace esphome