Skip to content

Commit

Permalink
Use native unit of measurement for Dyson temp sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperslits committed Apr 6, 2022
1 parent 86ea320 commit c777eb8
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 c777eb8

Please sign in to comment.