1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 16:51:52 +00:00

[light] Use zero-copy set_effect overload in JSON schema parsing

This commit is contained in:
J. Nick Koston
2026-01-04 18:05:48 -10:00
parent 80ab9485e0
commit 690cf1aec9

View File

@@ -160,7 +160,7 @@ void LightJSONSchema::parse_json(LightState &state, LightCall &call, JsonObject
if (root[ESPHOME_F("effect")].is<const char *>()) {
const char *effect = root[ESPHOME_F("effect")];
call.set_effect(effect);
call.set_effect(effect, strlen(effect));
}
if (root[ESPHOME_F("effect_index")].is<uint32_t>()) {