From 4f5b99993115aa155f4f536e439789867e403aef Mon Sep 17 00:00:00 2001 From: Artem Sorokin Date: Thu, 26 Dec 2024 02:37:01 +0300 Subject: [PATCH] Fix tests for 2025.1 (#207) --- custom_components/simple_integration/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/simple_integration/sensor.py b/custom_components/simple_integration/sensor.py index 25c05dd..556ec0a 100644 --- a/custom_components/simple_integration/sensor.py +++ b/custom_components/simple_integration/sensor.py @@ -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 @@ -33,4 +33,4 @@ def state(self): @property def unit_of_measurement(self): """Return the unit of measurement.""" - return TEMP_CELSIUS + return UnitOfTemperature.CELSIUS