Revert "performance improvement for the condition_set_light_api"
This reverts commit 639758ab5211c82d70b1462e6eaf8fc3f4754c40.