1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #252 - Comfort profile says "away" instead of "Away"

This commit is contained in:
Jon Ziebell 2020-02-22 10:36:01 -05:00
parent 78fc04c836
commit 4819d1f600

View File

@ -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';