mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 15:35:59 -07:00
Apply suggestions from code review
This commit is contained in:
@@ -26,8 +26,8 @@ template<typename... X> class TemplatableStringValue : public TemplatableValue<s
|
||||
private:
|
||||
// Helper to convert value to string - handles the case where value is already a string
|
||||
template<typename T> static std::string value_to_string(T &&val) {
|
||||
return to_string(std::forward<T>(val));
|
||||
} // NOLINT
|
||||
return to_string(std::forward<T>(val)); // NOLINT
|
||||
}
|
||||
|
||||
// Overloads for string types - needed because std::to_string doesn't support them
|
||||
static std::string value_to_string(char *val) {
|
||||
|
||||
Reference in New Issue
Block a user