Skip to content

Commit

Permalink
Merge pull request #197 from MislavMandaric/fix/deprecation-fixes
Browse files Browse the repository at this point in the history
Deprecation fixes
  • Loading branch information
MislavMandaric authored Nov 5, 2022
2 parents 5e1ca9a + f72c0e7 commit c2a3497
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/vaillant_vsmart/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def handle_token_update(token: Token) -> None:

hass.data[DOMAIN][entry.entry_id] = coordinator

hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

return True

Expand Down
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
3 changes: 2 additions & 1 deletion custom_components/vaillant_vsmart/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"domain": "vaillant_vsmart",
"name": "Vaillant vSMART",
"version": "0.6.2",
"integration_type": "hub",
"iot_class": "cloud_polling",
"documentation": "https://github.com/MislavMandaric/home-assistant-vaillant-vsmart",
"issue_tracker": "https://github.com/MislavMandaric/home-assistant-vaillant-vsmart/issues",
Expand All @@ -15,4 +16,4 @@
"requirements": [
"vaillant-netatmo-api==0.9.1"
]
}
}
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.11"
}

0 comments on commit c2a3497

Please sign in to comment.