Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Oct 29, 2024
1 parent 891eaa2 commit 3e2a687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/hive_local_thermostat/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def process_update(self, mqtt_data) -> None:
if self.entity_description.device_class == SensorDeviceClass.TEMPERATURE:
new_value = show_temp(
self.hass,
new_value,
self.entity_description.native_unit_of_measurement,
cast(float, new_value),
self.entity_description.native_unit_of_measurement or UnitOfTemperature.CELSIUS,
PRECISION_TENTHS,
)

Expand Down

0 comments on commit 3e2a687

Please sign in to comment.