From 76382ebb351d557f1880717b3a37bbcbe4e735a5 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Fri, 26 Jan 2024 18:38:36 +0100 Subject: [PATCH] issue #325 - restore self-regulation errors after restart (#366) * issue #325 - creates regulation_algo in post_init only * Remove github pages deployment --------- Co-authored-by: Jean-Marc Collin --- .github/workflows/testus.yaml | 11 +++++------ .../versatile_thermostat/thermostat_climate.py | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/testus.yaml b/.github/workflows/testus.yaml index 35dc86f..7446040 100644 --- a/.github/workflows/testus.yaml +++ b/.github/workflows/testus.yaml @@ -42,9 +42,8 @@ jobs: - name: Generate HTML Coverage Report run: coverage html - - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./htmlcov + # - name: Deploy to GitHub Pages + # uses: peaceiris/actions-gh-pages@v3 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # publish_dir: ./htmlcov diff --git a/custom_components/versatile_thermostat/thermostat_climate.py b/custom_components/versatile_thermostat/thermostat_climate.py index a938d07..5fdac39 100644 --- a/custom_components/versatile_thermostat/thermostat_climate.py +++ b/custom_components/versatile_thermostat/thermostat_climate.py @@ -430,7 +430,8 @@ class ThermostatOverClimate(BaseThermostat): ) # init auto_regulation_mode - self.choose_auto_regulation_mode(self._auto_regulation_mode) + # Issue 325 - do only once (in post_init and not here) + # self.choose_auto_regulation_mode(self._auto_regulation_mode) @overrides def restore_specific_previous_state(self, old_state: State):