diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_buttons.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_buttons.yaml index 924f2a0..e5c914d 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_buttons.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_buttons.yaml @@ -121,9 +121,9 @@ script: {"domain", "touch"}, {"type", "button"}, {"action", action.c_str()}, - {"button_id", to_string(button)}, - {"count", to_string(count)}, - {"position", to_string(id(button_press_position))} + {"button_id", std::to_string(button)}, + {"count", std::to_string(count)}, + {"position", std::to_string(id(button_press_position))} }); ESP_LOGI("core_hw_buttons", "Button %" PRIu8 " action: '%s'", button, action.c_str()); if (action == "click") { diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_touch.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_touch.yaml index fd55da3..cf90e54 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_touch.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_touch.yaml @@ -396,7 +396,7 @@ tx_ultimate_easy: {"domain", "touch"}, {"type", "multi_touch"}, {"action", "release"}, - {"position", to_string(touch.x)} + {"position", std::to_string(touch.x)} }); ESP_LOGI("core_hw_touch", "Multi-touch released"); touch_on_multi_touch_release->execute(); @@ -430,7 +430,7 @@ tx_ultimate_easy: {"type", "swipe"}, {"action", swipe_direction.c_str()}, {"swipe-direction", swipe_direction.c_str()}, - {"position", to_string(touch.x)} + {"position", std::to_string(touch.x)} }); ESP_LOGI("core_hw_touch", "Multi-touch released"); touch_on_multi_touch_release->execute(); @@ -450,7 +450,7 @@ tx_ultimate_easy: {"type", "swipe"}, {"action", swipe_direction.c_str()}, {"swipe-direction", swipe_direction.c_str()}, - {"position", to_string(touch.x)} + {"position", std::to_string(touch.x)} }); ESP_LOGI("core_hw_touch", "Swipe %s", swipe_direction.c_str()); touch_swipe_right->execute();