mirror of
https://github.com/esphome/esphome.git
synced 2024-12-03 20:24:14 +01:00
13 lines
242 B
C++
13 lines
242 B
C++
|
#include "string_ref.h"
|
||
|
|
||
|
namespace esphome {
|
||
|
|
||
|
#ifdef USE_JSON
|
||
|
|
||
|
// NOLINTNEXTLINE(readability-identifier-naming)
|
||
|
void convertToJson(const StringRef &src, JsonVariant dst) { dst.set(src.c_str()); }
|
||
|
|
||
|
#endif // USE_JSON
|
||
|
|
||
|
} // namespace esphome
|