mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 19:54:14 +01:00
cb2fcaa9b1
* `EntityBase`can stay in flash. * Trying to please the CI. --------- Co-authored-by: Your Name <you@example.com>
12 lines
242 B
C++
12 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
|