From bc1e573dfda1144befa336811f652fc96bb02022 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 11 Feb 2020 06:39:18 -0500 Subject: [PATCH] =?UTF-8?q?Fixed=20dummy=20series=20being=20too=20high=20f?= =?UTF-8?q?or=20=C2=B0C=20users.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/beestat/runtime_sensor.js | 2 +- js/beestat/runtime_thermostat.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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[