Skip to content

Commit

Permalink
Merge pull request #113 from jasperslits/native_unit
Browse files Browse the repository at this point in the history
Use native unit of measurement for Dyson temp sensor
  • Loading branch information
Kakise authored Apr 6, 2022
2 parents 86ea320 + c777eb8 commit 0852af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/dyson_local/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class DysonTemperatureSensor(DysonSensorEnvironmental):
_SENSOR_TYPE = "temperature"
_SENSOR_NAME = "Temperature"
_attr_device_class = SensorDeviceClass.TEMPERATURE
_attr_unit_of_measurement = TEMP_CELSIUS
native_unit_of_measurement = TEMP_CELSIUS

@environmental_property
def temperature_kelvin(self) -> int:
Expand Down

0 comments on commit 0852af0

Please sign in to comment.