From 5b79191949af524fb15597f8e27627fda1552f2b Mon Sep 17 00:00:00 2001 From: Mark Parker Date: Sat, 15 Jan 2022 10:48:13 +0000 Subject: [PATCH] Issue Boost service doesn't work without explicit temperature_delta #216 --- custom_components/wiser/climate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/wiser/climate.py b/custom_components/wiser/climate.py index 4d28c0f..35d88a5 100755 --- a/custom_components/wiser/climate.py +++ b/custom_components/wiser/climate.py @@ -360,6 +360,10 @@ def unique_id(self): @callback async def async_boost_heating(self, time_period: int, temperature_delta = 0, temperature = 0) -> None: """Boost heating for room""" + # If neither temperature_delta or temperature set then use config boost temp. Issue #216 + if temperature_delta == 0 and temperature == 0: + temperature_delta = self._data.boost_temp + if temperature_delta > 0: _LOGGER.info(f"Boosting heating for {self._room.name} by {temperature_delta}C for {time_period}m ") await self.hass.async_add_executor_job(