Skip to content

Commit

Permalink
Merge pull request #119 from robbinjanssen/rja/fix-deprecation-warning
Browse files Browse the repository at this point in the history
Fix deprecation warning for TEMP_CELSIUS
  • Loading branch information
robbinjanssen committed Jan 9, 2024
2 parents 22fc7df + 4d445cf commit 186a10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/ojmicroline_thermostat/climate.py
Expand Up @@ -16,7 +16,7 @@
PRESET_NONE,
)
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 import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
Expand Down Expand Up @@ -99,7 +99,7 @@ class OJMicrolineThermostat(
_attr_supported_features = (
ClimateEntityFeature.PRESET_MODE | ClimateEntityFeature.TARGET_TEMPERATURE
)
_attr_temperature_unit = TEMP_CELSIUS
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_attr_has_entity_name = True
_attr_name = None

Expand Down

0 comments on commit 186a10a

Please sign in to comment.