From 2dd6578d63113f40f5624b24fe34b9229a17962b Mon Sep 17 00:00:00 2001 From: Joerek van Gaalen Date: Mon, 26 Jan 2026 11:08:31 +0100 Subject: [PATCH] Fix thermostat: rename to tempcontrol.js to avoid ad blockers Thermostat functionality was being blocked by ad blockers due to the filename. Renamed thermostat.js to tempcontrol.js to fix this issue. The +/- buttons now work correctly. --- docs/develop/design.rst | 2 +- js/main.js | 2 +- js/{thermostat.js => tempcontrol.js} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename js/{thermostat.js => tempcontrol.js} (99%) diff --git a/docs/develop/design.rst b/docs/develop/design.rst index 9377ab86..2fc7a2d7 100644 --- a/docs/develop/design.rst +++ b/docs/develop/design.rst @@ -17,7 +17,7 @@ Blocks blocks.js is responsible for creating all blocks on the Dashboard. Depending on the block type this responsibility is delegated to helpers. Switches are handled by switches.js -Thermostats and EvoHome devices are handled by thermostat.js +Thermostats and EvoHome devices are handled by tempcontrol.js Several specific Domoticz devices are handled by block.js itself, like P1 smart meter and TempHumBar devices. diff --git a/js/main.js b/js/main.js index db85959b..8c09a68e 100644 --- a/js/main.js +++ b/js/main.js @@ -211,7 +211,7 @@ function configureDashticz() { return $.when( DT_function.loadDTScript('js/switches.js'), - DT_function.loadDTScript('js/thermostat.js'), + DT_function.loadDTScript('js/tempcontrol.js'), DT_function.loadDTScript('js/dashticz.js'), DT_function.loadDTScript('js/blocks.js'), DT_function.loadDTScript('js/login.js'), diff --git a/js/thermostat.js b/js/tempcontrol.js similarity index 99% rename from js/thermostat.js rename to js/tempcontrol.js index bbbf5384..4a861031 100644 --- a/js/thermostat.js +++ b/js/tempcontrol.js @@ -407,4 +407,4 @@ function switchEvoHotWater(block, state, override) { dial ? DT_dial.make(block) : getEvohomeHotWaterBlock(block); }); } -//# sourceURL=js/thermostat.js +//# sourceURL=js/tempcontrol.js