From d5d8b4178b364ebcf42796e3388fdabe0c13a245 Mon Sep 17 00:00:00 2001 From: Josh Willox Date: Tue, 14 Jan 2025 00:42:05 +1100 Subject: [PATCH] fix: attribute not found due to missing default Fixes: #91 --- custom_components/climate_template/climate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/climate_template/climate.py b/custom_components/climate_template/climate.py index 275f388..93ee385 100644 --- a/custom_components/climate_template/climate.py +++ b/custom_components/climate_template/climate.py @@ -212,6 +212,8 @@ def __init__(self, hass: HomeAssistant, config: ConfigType): self._attr_hvac_mode = HVACMode.OFF self._attr_swing_mode = HVACMode.OFF self._attr_target_temperature = DEFAULT_TEMP + self._attr_target_temperature_high = None + self._attr_target_temperature_low = None if (precision := config.get(CONF_PRECISION)) is not None: self._attr_precision = precision