Skip to content

Commit

Permalink
Merge pull request #4 from cappadanna/master
Browse files Browse the repository at this point in the history
TEMP_CELSIUS fix
  • Loading branch information
kayjei authored Jan 8, 2025
2 parents cc7ad71 + dda00e6 commit f1d6b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/badtemp_karlskrona/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from homeassistant.helpers.entity import Entity
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import (PLATFORM_SCHEMA)
from homeassistant.const import (TEMP_CELSIUS)
from homeassistant.const import (UnitOfTemperature)
from homeassistant.util import Throttle

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -105,7 +105,7 @@ def name(self):
@property
def temperature_unit(self):
"""Return the unit of measurement."""
return TEMP_CELSIUS
return UnitOfTemperature.CELSIUS

@property
def state(self):
Expand Down

0 comments on commit f1d6b5c

Please sign in to comment.