From 4819d1f600969463ea32b0510008e0df4c31f2d8 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sat, 22 Feb 2020 10:36:01 -0500 Subject: [PATCH] Fixed #252 - Comfort profile says "away" instead of "Away" --- js/beestat/runtime_thermostat.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/beestat/runtime_thermostat.js b/js/beestat/runtime_thermostat.js index abd5b71..3bd97ff 100644 --- a/js/beestat/runtime_thermostat.js +++ b/js/beestat/runtime_thermostat.js @@ -277,7 +277,9 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range) { case 'sleep': case 'away': this_calendar_event = 'calendar_event_' + runtime_thermostat.climate.toLowerCase(); - this_calendar_event_name = runtime_thermostat.climate; + this_calendar_event_name = + runtime_thermostat.climate.charAt(0).toUpperCase() + + runtime_thermostat.climate.slice(1); break; default: this_calendar_event = 'calendar_event_custom';