Skip to content

Commit

Permalink
Adding radiator icon
Browse files Browse the repository at this point in the history
  • Loading branch information
valleedelisle committed Dec 24, 2021
1 parent 8d2b481 commit 3870e18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/hilo/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ def set_hvac_mode(self, hvac_mode):
def hvac_mode(self):
return self._device.hvac_mode

@property
def icon(self):
if self._device.hvac_mode == HVAC_MODE_HEAT:
return "mdi:radiator"
return "mdi:radiator-disabled"

async def async_set_temperature(self, **kwargs):
if ATTR_TEMPERATURE in kwargs:
LOG.info(
Expand Down

0 comments on commit 3870e18

Please sign in to comment.