From 6a4955e7c0223dba89e1cc4bf2b96a21a0bba341 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 3 Mar 2021 21:11:06 -0500 Subject: [PATCH] Fixed system type changer not labeling detected values --- js/component/modal/change_system_type.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/component/modal/change_system_type.js b/js/component/modal/change_system_type.js index d74e0c7..8566291 100644 --- a/js/component/modal/change_system_type.js +++ b/js/component/modal/change_system_type.js @@ -65,7 +65,7 @@ beestat.component.modal.change_system_type.prototype.decorate_contents_ = functi let button_group = new beestat.component.button_group(); options[key].forEach(function(system_type) { let text = system_type.charAt(0).toUpperCase() + system_type.slice(1); - if (thermostat.system_type.detected[key] === system_type) { + if (thermostat.system_type.detected[key].equipment === system_type) { text += ' [Detected]'; }