Skip to content

Commit

Permalink
0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gvigroux committed Jun 19, 2024
1 parent e7dfc7e commit a56601b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions custom_components/hon/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def __init__(self,hass, coordinator, entry, appliance) -> None:

#Not working for Farenheit
self._attr_temperature_unit = UnitOfTemperature.CELSIUS # 'tempUnit': '0'
#self._attr_target_temperature_step = PRECISION_WHOLE

self._enable_turn_on_off_backwards_compatibility = False
self._attr_fan_modes = [] #[FAN_OFF, FAN_LOW, FAN_MEDIUM, FAN_HIGH, FAN_AUTO]
Expand All @@ -200,7 +199,11 @@ def __init__(self,hass, coordinator, entry, appliance) -> None:

# Set Min / Max temperatures
temp_range = parameters.get('tempSel')
self._att_target_temperature_step = float(temp_range.step)

self._attr_target_temperature_step = PRECISION_WHOLE
if isinstance(temp_range.step, float):
self._att_target_temperature_step = temp_range.step

if isinstance(temp_range, HonParameterRange):
self._att_min_temp = temp_range.min
self._att_max_temp = temp_range.max
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://github.com/gvigroux/hon",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/gvigroux/hon/issues",
"version": "0.7.3"
"version": "0.7.4"
}

0 comments on commit a56601b

Please sign in to comment.