Skip to content

Commit

Permalink
fix: Replaces temperature constant with temperature enum
Browse files Browse the repository at this point in the history
  • Loading branch information
MislavMandaric committed Nov 5, 2022
1 parent aacd662 commit 8042aa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/vaillant_vsmart/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
PRESET_HOME,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from vaillant_netatmo_api import ApiException, SetpointMode, SystemMode
Expand Down Expand Up @@ -77,7 +77,7 @@ def supported_features(self) -> int:
def temperature_unit(self) -> str:
"""Return the measurement unit for all temperature values."""

return TEMP_CELSIUS
return UnitOfTemperature.CELSIUS

@property
def current_temperature(self) -> float:
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Vaillant vSMART",
"homeassistant": "2022.1"
"homeassistant": "2022.8"
}

0 comments on commit 8042aa3

Please sign in to comment.