Skip to content

Commit

Permalink
fix: attribute not found due to missing default
Browse files Browse the repository at this point in the history
Fixes: #91
  • Loading branch information
jcwillox committed Jan 13, 2025
1 parent f6cf250 commit d5d8b41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/climate_template/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5d8b41

Please sign in to comment.