Skip to content

Commit

Permalink
Merge pull request #83 from Necroneco/master
Browse files Browse the repository at this point in the history
Replace deprecated constants
  • Loading branch information
banto6 authored Jan 29, 2024
2 parents 062e256 + 8295bef commit 0d28201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/haier/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from homeassistant.components.climate import ClimateEntity, ClimateEntityFeature, HVACMode, FAN_MIDDLE, FAN_HIGH, \
FAN_MEDIUM, FAN_LOW, SWING_OFF, SWING_VERTICAL, SWING_HORIZONTAL, SWING_BOTH, FAN_OFF, FAN_AUTO
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import TEMP_CELSIUS, Platform
from homeassistant.const import UnitOfTemperature, Platform
from homeassistant.helpers.typing import HomeAssistantType

from . import async_register_entity
Expand All @@ -30,7 +30,7 @@ class HaierClimate(HaierAbstractEntity, ClimateEntity):

def __init__(self, coordinator: DeviceCoordinator, device: HaierDevice, attribute: HaierAttribute):
super().__init__(coordinator, device, attribute)
self._attr_temperature_unit = TEMP_CELSIUS
self._attr_temperature_unit = UnitOfTemperature.CELSIUS
self._attr_hvac_modes = [
HVACMode.OFF,
HVACMode.AUTO,
Expand Down

0 comments on commit 0d28201

Please sign in to comment.