diff --git a/js/beestat/runtime_sensor.js b/js/beestat/runtime_sensor.js index 992275d..bb5c981 100644 --- a/js/beestat/runtime_sensor.js +++ b/js/beestat/runtime_sensor.js @@ -125,7 +125,7 @@ beestat.runtime_sensor.get_data = function(thermostat_id, range) { data.x.push(current_m.clone()); // Without this series the chart will jump to the nearest value if there is a chunk of missing data. - data.series.dummy.push(70); + data.series.dummy.push(beestat.temperature(70)); data.metadata.series.dummy.active = true; if (runtime_sensors[current_m.valueOf()] !== undefined) { diff --git a/js/beestat/runtime_thermostat.js b/js/beestat/runtime_thermostat.js index 50005f1..0252d48 100644 --- a/js/beestat/runtime_thermostat.js +++ b/js/beestat/runtime_thermostat.js @@ -165,7 +165,7 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range) { data.x.push(current_m.clone()); // Without this series the chart will jump to the nearest value if there is a chunk of missing data. - data.series.dummy.push(70); + data.series.dummy.push(beestat.temperature(70)); data.metadata.series.dummy.active = true; var runtime_thermostat = runtime_thermostats[