Skip to content

Commit

Permalink
enlever le code mort
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienLD committed Feb 18, 2023
1 parent e381588 commit 5c47f31
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/hilo/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,15 @@ async def async_setup_entry(


class HiloClimate(HiloEntity, ClimateEntity):
_attr_hvac_modes = [HVACMode.HEAT, HVACMode.OFF]
_attr_hvac_actions = [HVACAction.HEATING, HVACAction.IDLE]
_attr_hvac_modes = [HVACMode.HEAT]
_attr_temperature_unit: str = TEMP_CELSIUS
_attr_precision: float = PRECISION_TENTHS
_attr_supported_features: int = ClimateEntityFeature.TARGET_TEMPERATURE

def __init__(self, hilo: Hilo, device):
super().__init__(hilo, device=device, name=device.name)
self._attr_unique_id = f"{slugify(device.name)}-climate"
self.operations = [HVACMode.HEAT, HVACMode.OFF]
self.operations = [HVACMode.HEAT]
self._has_operation = False
self._temperature_entity = None
LOG.debug(f"Setting up Climate entity: {self._attr_name}")
Expand All @@ -84,7 +83,7 @@ def set_hvac_mode(self, hvac_mode):

@property
def hvac_mode(self):
return self._device.hvac_mode
return HVACMode.HEAT

@property
def hvac_action(self):
Expand Down

0 comments on commit 5c47f31

Please sign in to comment.