sprintf escape % fix

This commit is contained in:
openshwprojects
2022-10-06 14:56:59 +02:00
committed by GitHub
parent eafd942352
commit 5b1f4e6dbf

View File

@ -1350,7 +1350,7 @@ int http_fn_ha_cfg(http_request_t *request) {
hass_print_unique_id(request," - unique_id: \"%s\"\n", ENTITY_LIGHT,i);
hprintf128(request," name: \"%s %i\"\n",shortDeviceName,i);
hprintf128(request," rgb_command_template: \"{{ '#%02x%02x%02x0000' | format(red, green, blue)}}\"\n");
hprintf128(request," rgb_command_template: \"{{ '#%%02x%%02x%%02x0000' | format(red, green, blue)}}\"\n");
hprintf128(request," rgb_state_topic: \"cmnd/%s/led_basecolor_rgb\"\n",clientId);
hprintf128(request," rgb_command_topic: \"cmnd/%s/led_basecolor_rgb\"\n",clientId);
hprintf128(request," command_topic: \"cmnd/%s/led_enableAll\"\n",clientId);