diff --git a/main/endpoint/hass.c b/main/endpoint/hass.c index a0058d32..bab10301 100644 --- a/main/endpoint/hass.c +++ b/main/endpoint/hass.c @@ -144,7 +144,7 @@ no_speech:; if (hir.has_speech) { hir.ok ? war.fn_ok(hir.speech) : war.fn_err(hir.speech); } else { - hir.ok ? war.fn_ok("success") : war.fn_err("error"); + hir.ok ? war.fn_ok("Success") : war.fn_err("Error"); } if (lvgl_port_lock(lvgl_lock_timeout)) { @@ -156,7 +156,7 @@ no_speech:; lv_label_set_text(lbl_ln5, hir.speech); } else { lv_label_set_text_static(lbl_ln4, "Command status:"); - lv_label_set_text(lbl_ln5, hir.ok ? "#008000 Success!" : "#ff0000 Error!"); + lv_label_set_text(lbl_ln5, hir.ok ? "Success!" : "Error"); } lvgl_port_unlock(); } @@ -357,10 +357,10 @@ static void hass_post(const char *data) lv_obj_remove_event_cb(lbl_ln4, cb_btn_cancel); if (http_status == 200) { lv_label_set_text_static(lbl_ln4, "Command status:"); - lv_label_set_text(lbl_ln5, ok ? "#008000 Success!" : "#ff0000 No Matching HA Intent"); + lv_label_set_text(lbl_ln5, ok ? "Success!" : "No Matching HA Intent"); } else { lv_label_set_text_static(lbl_ln4, "Error contacting HASS:"); - lv_label_set_text_fmt(lbl_ln5, "#ff0000 HTTP %d", http_status); + lv_label_set_text_fmt(lbl_ln5, "HTTP %d", http_status); } lvgl_port_unlock();