Skip to content

Commit

Permalink
Fix tests for 2025.1 (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r authored Dec 25, 2024
1 parent 939a754 commit 4f5b999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/simple_integration/sensor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Platform for sensor integration."""
from homeassistant.const import TEMP_CELSIUS
from homeassistant.const import UnitOfTemperature
from homeassistant.helpers.entity import Entity


Expand Down Expand Up @@ -33,4 +33,4 @@ def state(self):
@property
def unit_of_measurement(self):
"""Return the unit of measurement."""
return TEMP_CELSIUS
return UnitOfTemperature.CELSIUS

0 comments on commit 4f5b999

Please sign in to comment.