Skip to content

Commit 0852af0

Browse files
authored
Merge pull request #113 from jasperslits/native_unit
Use native unit of measurement for Dyson temp sensor
2 parents 86ea320 + c777eb8 commit 0852af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/dyson_local/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class DysonTemperatureSensor(DysonSensorEnvironmental):
222222
_SENSOR_TYPE = "temperature"
223223
_SENSOR_NAME = "Temperature"
224224
_attr_device_class = SensorDeviceClass.TEMPERATURE
225-
_attr_unit_of_measurement = TEMP_CELSIUS
225+
native_unit_of_measurement = TEMP_CELSIUS
226226

227227
@environmental_property
228228
def temperature_kelvin(self) -> int:

0 commit comments

Comments
 (0)