Skip to content

Commit

Permalink
Fix preheating icon
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Apr 22, 2024
1 parent d980a48 commit 2f2b5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hive_local_thermostat/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def process_update(self, mqtt_data) -> None:
new_value = ""

if self.entity_description.running_state:
self._attr_icon = self.entity_description.icons_by_state.get(new_value, ICON_UNKNOWN)
if new_value == "":
new_value = "preheating"
self._attr_icon = self.entity_description.icons_by_state.get(new_value, ICON_UNKNOWN)

if self.entity_description.device_class == SensorDeviceClass.TEMPERATURE:
new_value = show_temp(self.hass, new_value, self.entity_description.native_unit_of_measurement, PRECISION_TENTHS)
Expand Down

0 comments on commit 2f2b5ab

Please sign in to comment.