Skip to content

Commit

Permalink
fix bug in hvac modes introduced in #336 (#348)
Browse files Browse the repository at this point in the history
* fix bug in hvac modes introduced in #336

* Update atlantic_electrical_heater.py

remove unnecessary map
  • Loading branch information
vlebourl authored Jan 16, 2021
1 parent 740f40f commit 93f34a9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
MAP_REVERSE_PRESET_MODES = {v: k for k, v in MAP_PRESET_MODES.items()}

MAP_HVAC_MODES = {HVAC_MODE_HEAT: PRESET_COMFORT, HVAC_MODE_OFF: PRESET_OFF}
MAP_REVERSE_HVAC_MODES = {v: k for k, v in MAP_HVAC_MODES.items()}


class AtlanticElectricalHeater(TahomaDevice, ClimateEntity):
Expand All @@ -58,7 +57,7 @@ def hvac_mode(self) -> str:
@property
def hvac_modes(self) -> List[str]:
"""Return the list of available hvac operation modes."""
return [*MAP_REVERSE_HVAC_MODES]
return [*MAP_HVAC_MODES]

@property
def preset_mode(self) -> Optional[str]:
Expand Down

0 comments on commit 93f34a9

Please sign in to comment.